Cisco Cisco IOS Software Release 12.2(18)S

다운로드
페이지 20
      MPLS Enhancements to Interfaces MIB
Configuration Examples
15
Cisco IOS Release 12.2(18)S
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 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
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