Re: Filtering trap types for a specific snmp-server

From: Pavel Bykov (slidersv@gmail.com)
Date: Sun Jan 18 2009 - 08:50:20 ARST


If you look at DOCCD, it says that "by default, all of the traps are sent to
host". Logically, you need to disable traps you DON'T WANT to send.
But it didn't work for me that way either... :(

On Fri, Jan 16, 2009 at 12:23 AM, Hobbs <deadheadblues@gmail.com> wrote:

> 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
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Pavel Bykov
----------------
Don't forget to help stopping the braindumps, use of which reduces value of
your certifications. Sign the petition at http://www.stopbraindumps.com/

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