On 3 April 2012 16:23, Yun Li <yunli2...@gmail.com> wrote: > I am trying to change the debugTokens at runtime.
> 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). ...... I wonder what > is the idea behind this design The idea of registering the debug tokens at an early stage. is to allow debugging of the MIB parsing code. If debugTokens were registered as a normal config handler, then this wouldn't be active at the point at which the MIB files were read in, and hence it wouldn't be possible to debug this module. > 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. At a quick glance over the code - probably, yes. Try it, and see how you get on. Alternatively, you could always amend the active debug tokens by manipulating the NET-SNMP-AGENT-MIB::nsDebugTokenTable Dave ------------------------------------------------------------------------------ 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