• A Network Switch Mapping Solution

How to enable SNMPv1 and v2c on a Cisco Switch running IOS

This discussion assumes that you are familiar with how to access Command Line Interface (CLI) using a serial cable and terminal program such as TeraTerm.

Background: Cisco does not typically enable SNMP by default. You can enable SNMP v1/v2c with one command in config.

How to enable SNMP from CLI. Please enter these commands in this order (bold):

Switch>enable
Switch#show running-config | include snmp-server (looks for entries beginning with snmp-server - if they exist. Please review them and check with Cisco documentation to find out what they do)
Switch#config term
Switch(config)#snmp-server community public RO (this turns on the snmp server and makes the read-only community name 'public')
Switch(config)#Ctrl-z
Switch#copy running-config startup-config (this copies the current running configuration so that when it's rebooted it comes back)

How to disable all SNMP on a Cisco Switch running IOS

This discussion assumes that you are familiar with how to access Command Line Interface (CLI) using a serial cable and terminal program such as TeraTerm.

Background: Cisco does not typically enable SNMP by default. Turning off SNMP is just as easy as turning it on.

How to disable SNMP from CLI. Please enter these commands in this order (bold):

Switch>enable
Switch#show running-config | include snmp-server (verify there are snmp-server entries, if not then SNMP is not running)
Switch#config term
Switch(config)#no snmp-server
Switch(config)#Ctrl-z
Switch#copy running-config startup-config (this copies the current running configuration so that when it's rebooted it comes back)