Configuring SNMP Agents
Configuring SNMP Agents 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 a trap server:
Run the following commands from the command prompt:
#configure terminal
#snmp-server host <Trap server IP> <Trap community string> snmp (example: snmp-server host 192.168.1.24 public snmp)
#end
#copy running-config startup-config