Dave, I was not sure what token you were referring to in the mib module so to make things really simple I decided to see if I could get a debug msg out of the agent_trap.c file from the function netsnmp_send_traps function - which has at the very top of the function: DEBUGMSGTL(( "trap", "send_trap %d %d ", trap, specific)); DEBUGMSGOID(("trap", enterprise, enterprise_length)); DEBUGMSG(( "trap", "\n"));
Which is not dependent on any mib module specific information and which should be generated every time I send a trap using send_v2trap(var_list); I used OPTIONS="-Lo -Dtrap And sent a trap - and verified that the trap was sent. And there was no trap debug msg on the output screen or to the log when I used -Lf /tmp/snmp.log -Dtrap. So for some reason I am not able to get any of the DEBUG msgs. Thanks for your help and any info you can give me on how to get this to work. -----Original Message----- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Thursday, May 28, 2009 10:54 AM To: Joan Landry Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Need help with snmp_log() msgs from snmp_agent.c 2009/5/28 Joan Landry <joan.lan...@overturenetworks.com>: > -f -Le -Dhandler:inject -Ddebug or > -f /tmp/snmp.log -Le -Dhandler:inject -Ddebug or -Lo -Dhandler:inject > -Ddebug > yeilded no log file which is as expected.... (Note that the second invocation is invalid - please re-read the meaning of the "-f" flag") > - all msgs went to screen but only had the output from snmp_log msgs > - none from the DEBUG handler:inject so the issue is with the choice of debug flags, not the logging options. Try using a debug token that appears in the MIB module that you are actually wanting to use. Both with -f -Le -D{token} (to check that the debug message is output) and then with -Lf /tmp/snmp.log -D{token} (to check that it's logged to the file) Dave ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ 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