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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to