Enabling SNMP on Cisco Routers / Switches

This article will help you through the steps to enable SNMP in Cisco Routers / Switches. You will be able to create the corresponding Configlet commands using Network Configuration Manager application. This will help you perform the same operation on multiple devices simultaneously.

If you don't have NCM installed, please click here to download and install the application.

Steps to enable SNMP on Cisco Switches and Routers

  1. Login to the device using SSH / TELNET and go to enable mode.
  2. Go into the config mode.
  3. Router#configure terminal

    Enter configuration commands, one per line. End with CNTL/Z.

    Router(config)#

  4. Use the below command to configure read-only community string
  5. Router(config)#snmp-server community public RO

    (Where "public" is the read community string.)

  6. Use below command to configure the read-write community string
  7. Router(config)#snmp-server community private RW

    (Where "private" is the read-write community string)

  8. Exit the configuration mode
  9. Router(config)#exit

    Copy the running configuration into startup configuration using below command

    Router#write memory

    Building configuration... [OK]

    Router#

The corresponding configlet can be created in NCM application as shown in below screenshot.

Also you can click the below button to download the Configlet as XML and import it into NCM application using file import option.

 
Configlet Name Enable SNMP Cisco
Description This configlet is used to enable SNMP in Cisco Routers / Switches on multiple devices simultaneously.
Execution Mode Script Execution Mode
Configlet Content

configure terminal
snmp-server community $READ-ONLY-COMMUNITY RO
snmp-server community $READ-WRITE-COMMUNITY RW
exit
write memory