Wednesday, 20 January 2016

Setting up SNMP on Cisco Routers / Switches

SNMP is a great way of monitoring your network equipment that might not work with some of these modern monitoring solutions that provide you with a fancy client.

The process is pretty simple from the CLI:

enable
configure term

access-list standard mgmt-snmp
1 permit <subnet> <wilcard mask>
10 deny any log

snmp-server community public RO

(use 'RW' for read-write configuration)

exit

copy run start

Now we can setup our SNMP traps - by configuring the snmp server with something like:

snmp-server host 1.2.3.4 version <'1' or '2c'> <your-community-string>

and then defining events we wish to capture:

snmp-server enable traps snmp linkdown linkup coldstart warmstart

0 comments:

Post a Comment