I am interested in using snmptrapd just to print received traps for development work, I installed net-snmp 5.2.1 on Win2K Pro. At a DOS command line I run "snmptrapd -Lo" in order to monitor incoming LINK UP/DOWN traps. When the agent sends v1 traps, they are shown correctly in the DOS window, but with a large delay (1 - 30 seconds after multiple traps arrive simultaneously). But when I switch the
Maybe this is a console buffering issue? Try logging to the Windows event log by using: "snmptrapd -Ls0" and then check the Application event log. If you register the service first, it will eliminate the 'The description for Event ID ( 100 )' messages in the log.
agent over to v2c, I get a message "Cannot find TrapOID in TRAP2 PDU" and no trap output. When I switch to v3, I get nothing. I would have expected that all traps would work under the initial installation configuration. I've searched the documents at the net-snmp web site as well as this mail list, but haven't found anything about this problem. I also tried using the previous version of net-snmp, and it works the same way. I'm seeking information on how to configure the installation on Win 2K Pro so v2c and v3 traps will be displayed correctly.
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-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