Hi there,
I am trying to change the debugTokens at runtime. What I have done is:
1. start snmpd under gdb
2. add following to snmpd.conf
[snmp]
doDebugging 1
debugTokens snmp_api
3. send HUP
kill -HUP <pid>
>From gdb, I can tell debugTokens are not reread (since debugTokens is
registered as premib_config_handlers, but during reconfig, only normal
config handlers are reread). Further looking into the snmp_debug.c, I can
tell it is not designed to be changed after initial startup. I wonder what
is the idea behind this design and if it is safe for me to change tokens at
runtime by first setting debug_num_tokens back to 0 and memset dbg_tokens
array to 0 and apply new tokens upon receiving HUP.
Thanks.
-yun
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders