I am working on a handler and a little unclear on how to extend it.

Looking at rfc2089 section 3.3 to understand the v1 trap fields passed to a 
handler, the
case I am needing to account for now are generic type 6 traps and the 
associated specific
id. The packet nicely breaks out the generic and specific id's so I ran some 
tests from Linux
and Windows hosts and wasn't too sure how to interpret the data.

According to part B, after generating a coldStart, snmpTrapOID.0 is set to 
SNMPv2-MIB::coldStart
and snmpTrapEnterprise.0 should be set to zero, I see 
NET-SNMP-MIB::netSnmpAgentOIDs.10.

When generating an enterprise specific trap such as the case with:
` snmptrap -v 1 -c public localhost "" "" 6 23 ""` I see the expected 
snmpTrapOID.0 value of
SNMPv2-SMI::enterprises.3.1.1.0.23 yet snmpTrapEnterprise.0 is set to 
SNMPv2-SMI::enterprises.3.1.1.

Can anyone shed light on the logic here so I can key off of enterprise specific 
traps? Am I correct in
assuming that I can focus solely on the snmpTrapOID.0 and if it does not map to 
a standard trap
its enterprise specific and the specific id is simply the last id?

Thanks,
jlc

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
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