debug::printtouttdebuggingginformationnaboutttheehandlerrchainnbeinggcalled.(3))
NAME
netsnmpdebug - print out debugging information about the handler chain
being called.
handler
void netsnmpinitserialize (void)
initializes the serialize helper which then registers a serialize
handler as a run-time injectable handler for configuration file
use.
void netsnmpinitreadonlyhelper (void)
initializes the readonly helper which then registers a readonly
handler as a run-time injectable handler for configuration file
use.
void netsnmpinitbulktonexthelper (void)
initializes the bulktonext helper which then registers a
bulktonext handler as a run-time injectable handler for
configuration file use.
void netsnmpinittabledataset (void)
void netsnmpinitstashcachehelper (void)
initializes the stashcache helper which then registers a
stashcache handler as a run-time injectable handler for
configuration file use.
void netsnmpinithelpers (void)
call the initialization sequence for all handlers with init
routines.
Functions
netsnmpmibhandler * netsnmpgetdebughandler (void)
returns a debug handler that can be injected into a given handler
chain.
void debugprintrequests (netsnmprequestinfo *requests)
int netsnmpdebughelper (netsnmpmibhandler *handler,
netsnmphandlerregistration *reginfo, netsnmpagentrequestinfo
*reqinfo, netsnmprequestinfo *requests)
void netsnmpinitdebughelper (void)
initializes the debug helper which then registers a debug handler
as a run-time injectable handler for configuration file use.
Detailed Description
This is a useful module for run-time debugging of requests as the pass
this handler in a calling chain. All debugging output is done via the
standard debugging routines with a token name of 'helper:debug', so use
the -Dhelper:debug command line flag to see the output when running the
snmpd demon. It's not recommended you compile this into a handler chain
during compile time, but instead use the 'injectHandler' token in the
snmpd.conf file (or similar) to add it to the chain later:
injectHandler debug mymodulename
to see an example output, try:
injectHandler debug mibI/system
and then run snmpwalk on the 'system' group.
Function Documentation
netsnmpmibhandler** netsnmpgetdebughandler (void)
returns a debug handler that can be injected into a given handler
chain. Definition at line 54 of file debughandler.c.
References netsnmpcreatehandler().
Referenced by netsnmpinitdebughelper().
void netsnmpinitbulktonexthelper (void)
initializes the bulktonext helper which then registers a bulktonext
handler as a run-time injectable handler for configuration file use.
Definition at line 114 of file bulktonext.c.
Referenced by netsnmpinithelpers().
void netsnmpinitdebughelper (void)
initializes the debug helper which then registers a debug handler as a
run-time injectable handler for configuration file use. Definition at
line 158 of file debughandler.c.
References netsnmpgetdebughandler(), and
netsnmpregisterhandlerbyname().
void netsnmpinithelpers (void)
call the initialization sequence for all handlers with init routines.
Definition at line 34 of file allhelpers.c.
References netsnmpinitbulktonexthelper(),
netsnmpinitdebughelper(), netsnmpinitreadonlyhelper(),
netsnmpinitserialize(), and netsnmpinitstashcachehelper().
Referenced by initagent().
void netsnmpinitreadonlyhelper (void)
initializes the readonly helper which then registers a readonly
handler as a run-time injectable handler for configuration file use.
Definition at line 86 of file readonly.c.
Referenced by netsnmpinithelpers().
void netsnmpinitserialize (void)
initializes the serialize helper which then registers a serialize
handler as a run-time injectable handler for configuration file use.
Definition at line 96 of file serialize.c.
Referenced by netsnmpinithelpers().
void netsnmpinitstashcachehelper (void)
initializes the stashcache helper which then registers a stashcache
handler as a run-time injectable handler for configuration file use.
Definition at line 188 of file stashcache.c.
References netsnmpgetstashcachehandler(), and
netsnmpregisterhandlerbyname().
Referenced by netsnmpinithelpers().
debug:nprint out debugging informationJabou0t0the handler chain being called.(3)
|