SNMP Configuration On Cisco IOS
In this SNMP Configuration example, we will see how to configure SNMP on Cisco SNMP Agent device. In this part I do not consider necessary what the snmp agent is. You already know that it is the device that we consider to manage with our NMS (Network Management Server).
Managing all the network devices are a very difficult. So managing the network devices in one location is very important in network world. This is done with a standard protocol SNMP. With SNMP you can manage your devices with a NMS remotely and in a central point. And the agent device also sends traps,notifications about alarms or exceeding some threshold values determined before for a good managed network.
Router (config)# snmp-server community public ro Router (config)# snmp-server community ForYou ro Router (config)# snmp-server community WithYourACL rw 10 Router (config)# snmp-server community HidenOne ro view noRouteTable Router (config)# access-list 10 permit 192.168.100.1Above, there are four community strings are defined. The first one can be for eveyone with only read-only access. The second one can be for you only. Here it is important to say that other vendors do not permit more than one read-only community strings.
The third community string above is the read-write one only allowed as the access-list 10. And the last one is the one that can be reached only with a certain user.
After defining community strings, it is time to configure something for SNMP traps that will inform SNMP Server during a trouble. To do this, use the below configuration commands.