Difference between revisions of "Debugging output"

From Net-SNMP Wiki
Jump to: navigation, search
m (kk)
 
Line 1: Line 1:
klk;l
+
Options for using -D for DEBUG output
 +
-D token[,token[,token]...]
 +
 
 +
To see every possible output use
 +
-D all
 +
 
 +
The token are not predefined but defined throug usage.
 +
DEBUGMSG(( token, format, ...))
 +
 
 +
To find all existing tokens try
 +
cd net-snmp-<Version>
 +
find . -name "*.c" | xargs grep "DEBUGMSG.*\"" | sed 's/^.*((//;s/,.*$//' | sort -u | grep "^\""
 +
 
 +
for version 5.4.2.1 this returns 1589 tokens.

Revision as of 10:47, 30 March 2010

Options for using -D for DEBUG output

-D token[,token[,token]...]

To see every possible output use

-D all

The token are not predefined but defined throug usage.

DEBUGMSG(( token, format, ...))

To find all existing tokens try

cd net-snmp-<Version>
find . -name "*.c" | xargs grep "DEBUGMSG.*\"" | sed 's/^.*((//;s/,.*$//' | sort -u | grep "^\""

for version 5.4.2.1 this returns 1589 tokens.