SNMP Configuration

    SNMP configuration example

    Technology: Management & Monitoring
    Area: SNMP
    Vendor: Cisco
    Software: 12.X , 15.X, IP Base, IP Services, LAN Base
    Platform: Cisco

    Simple Network Management Protocol allows network administrators to monitor the state of network devices. Devices use SNMP trap messages which are sent to the monitoring server which in turn can graph and analyze state of interfaces, routing protocols events, monitor thresholds for resources like CPU or memory. Another type of SNMP messages are SNMP GET and SET messages. With GET message you can configure the network monitoring servers (SNMP Servers) to pool the devices and retrieve current information like current cpu utilization or interface load. SET message allows to configure particular features of the device from monitoring and management server. Let’s take a look at SNMP configuration example.

    To enable SNMP traps, use below configuration. The, .2 and .3 are IP addresses of SNMP servers to which traps will be sent,  GML@BS is the community string that has to be common on SNMP servers and device.

    Router(config)#snmp-server enable traps
    Router(config)#snmp-server host AVIML@SS cpu
    Router(config)#snmp-server host AVIML@SS memory
    Router(config)#snmp-server host AVIML@SS ospf bgp

    To enable GET and SET messaging from servers you need to configure RO (for GET) and RW (for GET and SET) commands along with communities.

    Router(config)#snmp-server community AVIML@SS RO
    Router(config)#snmp-server community AVIML@SS RW

    We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.