Monday, 18 November 2013

Enabling SNMP in Cisco Routers / Switches for Nagios Monitoring

 Enabling SNMP in Cisco Routers / Switches
Summary

This article will guide your through the steps to enable SNMP in Cisco Routers and Switches

Description

    Telnet to the router/switch

    prompt#telnet testrouter
    Go to the enable mode by specifying the password:

    Router>enable
    Password:
    Router#
    Go into configuration mode:

    Router#configure terminal
    Enter configuration commands, one per line. End
    with CNTL/Z.
    Router(config)#
    Use the command below to add a Read-Only community string:

    Router(config)#snmp-server community public RO
    where "public" is the Read-only community string.
    To add a Read-Write Community string, use the command below:

    Router(config)#snmp-server community private RW
    where "private" is the Read-write community string.
    Exit the configuration mode and save the settings:

    Router(config)#exit
    Router#write memory
    Building configuration...
    [OK]
    Router#
    Test the Configuration with an SNMP Walk from Nagios Server                                           

#snmpwalk -v 1 -c public <Router IP> system                                                
#snmpwalk -v 1 -c public 69.250.150.54 system

No comments:

Post a Comment