Re: Capturing BGP State Changes

Scott Baker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 03/15/2011 02:26 AM, Dave Shield wrote:
>> >From what I can tell it's sending six OIDs in that trap? Can I catch any
>> > of them, or does it have to be a specific one (first/last?).
> The varbind list of an SNMPv2 notification will *always* contain the following:
> 
>     sysUpTime.0 varbind
>     snmpTrapOID.0 varbind
> 
> as the first two entried,  followed by the list of varbind specified in
> the MIB definition for that trap.
>    (and possibly by additional varbind added by the notification sender).
> 
> The "traphandle" directive is matched against the value of the second
> varbind - snmpTrapOID.0,  which indicates which trap has been received.
> 
> 
>> > I have my snmptrapd.conf configured as follows:
>> >
>> > traphandle BGP4-MIB::bgpPeerState                  /tmp/handler.pl
> In the trap you listed, you should be matching against
> 
>     CISCO-SMI::ciscoMgmt.187.0.1

Thank you for the clear and concise explanation. I now have my snmptrapd
capturing BGP events! Thanks!

-- 
Scott Baker - Canby Telcom
System Administrator - RHCE - 503.266.8253

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.