Cisco Cisco IOS Software Release 12.2(25)S

ページ / 18
      MPLS Enhancements to the Interfaces MIB
Configuration Examples for MPLS Enhancements to Interfaces MIB
14
Cisco IOS Release: Multiple releases (see the Feature History table)
Verifying That the SNMP Agent Has Been Enabled
To verify that the SNMP agent has been enabled, perform the following steps:
Step 1
Access the router through a Telnet session: 
Prompt# telnet xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx represents the IP address of the target device.
Step 2
Enter privileged EXEC mode:
Router# enable
Step 3
Display the running configuration and look for SNMP information:
Router# show running-configuration
...
...
snmp-server community public RO
If you see any snmp-server statements, SNMP has been enabled on the router. 
Configuration Examples for MPLS Enhancements to Interfaces 
MIB
The following example shows how to enable an SNMP agent:
Router# configure terminal
Router(config)# snmp-server community 
In the following example, SNMPv1 and SNMPv2C are enabled. The configuration permits any SNMP 
manager to access all objects with read-only permissions using the community string public. 
Router(config)# snmp-server community public
 
In the following example, read-only access is allowed for all objects to members of access list 4 that 
specify the comaccess community string. No other SNMP managers have access to any objects. 
Router(config)# snmp-server community comaccess ro 4
Additional References
The following sections provide references related to MPLS Enhancements to Interfaces MIB.