Filtering trap types for a specific snmp-server

From: Hobbs (deadheadblues@gmail.com)
Date: Thu Jan 15 2009 - 21:23:25 ARST


Hello,

I am working on some snmp stuff and I thought we could limit the traps we
send to specific servers by putting the name of trap at the end of the
snmp-server host command. However, while testing this it doesn't seem to
work the way I expected it. I only want to send BGP traps to 2.2.2.2 yet
below OSPF traps are also getting sent.

R8 has the following SNMP config:

R8#sho run | inc snmp
snmp-server enable traps bgp
snmp-server enable traps ospf state-change
snmp-server host 2.2.2.2 public bgp

R8#debug snmp packets
SNMP packet debugging is on
R8#clear ip ospf process
Reset ALL OSPF processes? [no]: yes

*Mar 2 00:52:10.817: SNMP: Queuing packet to 2.2.2.2
*Mar 2 00:52:10.817: SNMP: V1 Trap, ent ospfTrap.2, addr 192.168.78.8,
gentrap 6, spectrap 16
 ospfGeneralGroup.1 = 192.168.78.8
 ospfIfEntry.1 = 192.168.8.8
 ospfIfEntry.2 = 0
 ospfIfEntry.12 = 7

There's much more SNMP packets regarding OSPF after this.

Why are OSPF traps sent if I did not enable them for the server 2.2.2.2?

Am I misunderstanding the way this is supposed to work?

thanks,

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sun Mar 01 2009 - 09:43:38 ARST