Posts

Showing posts from April, 2012

SNMP

Send the SNMP traps, Community "Public" to the NMS Server:
(config)#snmp-server host 192.168.1.1 traps [Public | Private]

If you need to define the VERSION and the COMMUNITY STRING:
(config)#snmp-server host 192.168.1.100 traps version 2c cisco

To define RO and RW COMMUNITY:
(config)#snmp-server community TST-RO ro <--- READ ONLY COMMUNITY STRING
(config)#snmp-server community TST-RW rw <--- RE-WRITE COMMUNITY STRING

Specify the TRAPS TYPE:
(config)#snmp-server enable traps [mac-notification | bgp | pim | ...] <--- FIRST ENABLE TRAPS OF A TYPE
(config)#snmp-server host 192.168.1.100 traps version 2c cisco [mac-notification | bgp | pim | ...] <--- SEND TRAPS

When the traps contain MAC Address Add/Remove notifications, have in mind the QUANTITY, so control it with:
(config)#mac address-table notification change history-size 150 <--- LIMIT THE TABLE CAPACITY TO 150
(config)#mac address-table notification change interval 1800 <--- SEND TRAP EVERY 30 MINUTES (1800 sec…