Hi Terry.

Colliton, Terry (Terry)** CTR ** wrote:
Attached is an Ethereal saved file that contains some of the v2c traps received that the snmptrapd had the error on.

Using the packet you sent me I was able to reproduce the error and I finally figured out why you are getting the 'Cannot find TrapOID in TRAP2 PDU' error.


The first OID passed in an SNMP v2 trap is the uptime and the second is SNMPv2-MIB::snmpTrapOID.0. In the packet you sent me, it is sending SNMPv2-MIB::snmpTrapOID (without the trailing .0). The function snmp_input() in snmptrapd_handlers.c outputs the error because it is trying to find an OID that matches SNMPv2-MIB::snmpTrapOID.0.

What device is sending the trap?

Net-SNMP could be change to allow either snmpTrapOID or snmpTrapOID.0, but I'm not sure if that is something that should be done. Hopefully someone else can answer that question.

Alex


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ 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