Configuring SNMP Agent in Cisco Devices

For configuring SNMP agents in Cisco devices, you need to log into the device and switch to privileged mode.

Use the following set of commands listed below to enable SNMP:

To enable SNMP:

From the command prompt, run the following commands:
 
#configure terminal
#snmp-server community <community_string> rw/ro (example: snmp-server community public ro)
#end
#copy running-config startup-config

 

To enable trap:

Again, from the command prompt, run the following commands:

#configure terminal
#snmp-server enable traps snmp authentication
#end
#copy running-config startup-config

 

To set OpManager Plus as host:

Run the following commands from the command prompt:
 
#configure terminal
#snmp-server host <OpManager Plus server running system's IP> <Trap community string> snmp (example: snmp-server host 192.168.9.58 public snmp)
#end
#copy running-config startup-config

 

For more information, visit CISCO.

fBack to Top