e the more sophisticated command suggested by "net-snmp-config
--debug-tokens":
find NET-SNMP-SOURCE-DIR -name "*.c" -print | xargs grep DEBUGMSGT |
grep \" | cut -f 2 -d\" | sort -u
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
On Thu, 2006-02-09 at 16:40 +0100, H. McManus wrote:
> Is there a list of valid tokens anywhere?
http://www.freesnmp.com/net-snmp/faqs/#tokens
> I've discovered mib_init and ALL
"ALL" isn't strictly a debug token.
It's a special-case that turns on *everything*
> If the answer to this questi
Hello,
The SNMPD manpage says for the -D option that you follow it with a list of
tokens.
Is there a list of valid tokens anywhere? I've discovered mib_init and ALL -
are there any more listed anywhere?
If the answer to this question is "use the source luke", can I get an
indication of which
Bruce> Of the two, I find the ":" more intuitive.
Yes - that's the style that Robert and I had come to an agreement on.
(Relatively painlessly, for us!)
The 'token/subtoken' form is much older, and basically comes directly
from the mibgroup source filestructure. I don't think there's any
great
DS>If you look at Richard's list, you should be able to see the two
heirarchical forms - one using tokens of the form:
DS> helper:baby_steps
DS> helper:cache_handler
DS> helper:debug
etc
DS>and one using:
DS> host/hr_device
DS> host/hr_disk
DS> host/hr_filesys
d.
If you look at Richard's list, you should be able to see the two
heirarchical forms - one using tokens of the form:
helper:baby_steps
helper:cache_handler
helper:debug
etc
and one using:
host/hr_device
host/hr_disk
host/hr_file
> Basically, I have to provide debug CLIs for the net-snmp 5.1 code.
>
> I have observed that there are more than hundred tokens for debugging
> purpose(courtesy: http://www.net-snmp.org/faqs/rstory/ ) which I can
> specify using -D option.
>
> Are there any broader categories that these tokens