On 9 November 2011 06:24, <[email protected]> wrote:
> I just want to know how to redirect my debug information to a log file.
If you are using the standard command-line option parsing routine
(netsnmp_parse_args), then use the command-line option
-Lf /some/file
If you need to done this via your own code, see the 'f' block
within the snmp_log_options() routine (in snmplib/snmp_logging.c)
> And I also want to know is there any way to print only specific debug info
> other than printing the everything.
If you use '-Dtoken' then it will only display the debug messages appropriate
for that token. If you use '-Dall', it will display everything.
The 'f' block of code mentioned above includes a parameter that specifies
this debug token,
Dave
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders