How to Configure SNMP on Cisco IOS Router or Switch?

SNMP protocol helps network administrators to manage, monitor the state of network devices. The network device send some information’s to the NMS server to trace graphics who permit to analyzing the CPU, memory, I/O, Etc. The following case is to enable SNMP client on the Cisco Router is snmp community, followed by the community name and send it trap to specific host.

Step-1: Enable SNMP with the following command:

Router(config)#snmp-server community <community-string> ro
Router(config)#snmp-server community <community-string> rw
Router(config)#snmp-server community public rw

Here community-string is the actual community string. The “ro” means read-only and “rw” for read-write.

Step-2: Use the snmpserver host commandto specify which host or hosts receive SNMP

Router(config)#snmp-server host <ip-address> <version > <community-string>

Here “ip-address” is the IP address of the SNMP management station and “community-string” is the actual community string.

Step-3: Enable the Router to send Simple Network Management Protocol traps or informs (SNMPnotifications), use the snmp-server enable traps global configuration command. After this command is executed, SNMP traps will be sent automatically to the SNMP management station configured in the previous step.

Router(config)#snmp-server enable traps

This command turns on all the varieties of traps. You can also turn on specific traps, by appending them to the above command, one trap variant at time. Some allow for further specificity. For example

Router(config)#snmp-server enable traps frame-relay
Router(config)#snmp-server enable traps envmon temperature
Router(config)#snmp-server enable traps bgp
Router(config)#snmp-server enable traps snmp

Case Summary in point a (Used IOS Version 15.X and SNMP Version 2):

Router(config)#snmp-server community GreenZone rw
Router(config)#snmp-server host  version 2c GreenZone
Router(config)#snmp-server enable traps



You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *