Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsnmp_debug(3) [redhat man page]

debug: print out debugging information about the handler chaiLibrardebug:tprintMoutadebugging information about the handler chain being called.(3)

NAME
debug: print out debugging information about the handler chain being called. - This is a useful module for run-time debugging of requests as the pass this handler in a calling chain. More... Functions netsnmp_mib_handler * netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. void debug_print_requests (netsnmp_request_info *requests) int netsnmp_debug_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) void netsnmp_init_debug_helper (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 my_module_name to see an example output, try: injectHandler debug mibII/system and then run snmpwalk on the 'system' group. FUNCTION DOCUMENTATION
void debug_print_requests (netsnmp_request_info * requests) For internal use only. Definition at line 51 of file debug_handler.c. Referenced by netsnmp_debug_helper(). int netsnmp_debug_helper (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) For internal use only. Definition at line 81 of file debug_handler.c. netsnmp_mib_handler* netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. Definition at line 44 of file debug_handler.c. Referenced by netsnmp_init_debug_helper(). void netsnmp_init_debug_helper (void) initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. Definition at line 147 of file debug_handler.c. net-snmp debug: print out debugging information about the handler chain being called.(3)

Check Out this Related Man Page

serialize(3snmp)						     net-snmp							  serialize(3snmp)

NAME
serialize - Calls sub handlers one request at a time. Functions netsnmp_mib_handler * netsnmp_get_serialize_handler (void) returns a serialize handler that can be injected into a given handler chain. int netsnmp_register_serialize (netsnmp_handler_registration *reginfo) functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you. int netsnmp_serialize_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) Implements the serial handler. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Detailed Description Calls sub handlers one request at a time. This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once. This is useful for handlers that don't want to iterate through the request lists themselves. Generally, this is probably less efficient so use with caution. The serialize handler might be useable to dynamically fix handlers with broken looping code, however. Function Documentation netsnmp_mib_handler* netsnmp_get_serialize_handler (void) returns a serialize handler that can be injected into a given handler chain. Definition at line 31 of file serialize.c. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Definition at line 93 of file serialize.c. int netsnmp_register_serialize (netsnmp_handler_registration * reginfo) functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you. Definition at line 40 of file serialize.c. int netsnmp_serialize_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Implements the serial handler. Definition at line 48 of file serialize.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.4.3.pre1 23 May 2010 serialize(3snmp)
Man Page