On Wed, 2005-05-18 at 12:21, Shobana Sampath wrote:
> I tried adding the 0 to the MIB oid
> (1.3.6.1.4.1.9.9.120.2.0.3.0) for the trap, but get
> the same error:
> Cannot find TrapOID in TRAP2 PDU
That's because you're setting your OID as the *name*
of the second varbind - not the *value*.
I'll reformat your packet dump:
30 82 00 51
02 01 01
04 00
A7 82 00 48
02 02 72 29
02 01 00
02 01 00
30 82 00 3A
30 82 00 0D
06 09 2B 06 01 04 01 09 09 78 02
05 00
This OID should be sysUpTime.0, with a corresponding
value (not NULL)
30 82 00 10
06 0C 2B 06 01 04 01 09 09 78 02 00 03 00
05 00
This OID should be snmpTrapOID.0, with a *value* of
.1.3.6.1.4.1.9.9.120.2.0.3.0
30 82 00 11
06 0C 2B 06 01 04 01 09 09 78 01 02 04 00
02 01 02
That's why snmptrapd is complaining that it
> Cannot find TrapOID in TRAP2 PDU
Because the varbind isn't there!
Dave
-------------------------------------------------------
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=7412&alloc_id=16344&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders