2015年9月11日 星期五

Cisco enable and disable snmp

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. Turning on SNMP v1/v2c is done with one command in config.

How to do it from CLI. Please enter these commands in this order (italics):

enable
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)
config term
snmp-server community public RO (this turns on the snmp server and makes the read-only community name 'public')
copy running-config startup-config (this copies the current running configuration so that when it's rebooted it comes back)
exit

How to disable 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 do it from CLI. Please enter these commands in this order (italics):

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

沒有留言:

張貼留言