It now receives the PDU but says:
Cannot find TrapOID in TRAP2 PDU
What did you use to send the test trap? If you used
snmptrap, what was the command you used?
I did not use snmptrap to send the trap, I am using my own SNMP server application for our product. I placed the custom MIBs in the snmp\share\mibs directory, is there anything else I need to do besides that?
Maybe the trap you are sending is not correct? In snmptrapd_handlers.c I see:
/* * v2c/v3 notifications *should* have snmpTrapOID as the * second varbind, so we can go straight there. * But check, just to make sure */
and if it can't find it, it logs: "Cannot find TrapOID in TRAP2 PDU".
Can you try sending a V2 trap from something else to see if it logs correctly? You could configure snmpd.exe to send traps by configuring it with 'trap2sink 192.168.1.1 public' for example.
Alex
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
