Hello Coders,

I would like to use the -D<token> option to dump traces to learn about the
code and to see the code path. Is there a better option to get the traces
for a snmpget command or any other snmp command processing at the agent?

I have tried to add new token using the macro  

   DEBUGMSGTL(("Test", "handle_pdu, asp = %8p\n",
                asp));

For example, I added this to agent/snmp_agent.c : handle_pdu() function.
I can see existing traces using the following arg to -D option.


snmpd -f -Le -Dsnmp_agent,verbose:asp,Test


But not my trace above. Is there anything else I need to do to tell
agent to dump my trace?

Thanks in advance for your response!

-- 
Murali Karicheri
Linux Kernel, Keystone

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to