---
name: "netsnmp_debug"
section: "3snmp"
platform: "linux"
package: "libsnmp-dev"
version: "5.4.3~dfsg-2.8+deb7u1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/netsnmp_debug"
---

# netsnmp\_debug(3snmp)

Print out debugging information about the handler chain being called.

## NAME

debug -

Print out debugging information about the handler chain being called.

### 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.*

### 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.*  void **netsnmp\_init\_read\_only\_helper** (void)\
 *initializes the read\_only helper which then registers a read\_only handler as a run-time injectable handler for configuration file use.*  void **netsnmp\_init\_bulk\_to\_next\_helper** (void)\
 *initializes the bulk\_to\_next helper which then registers a bulk\_to\_next handler as a run-time injectable handler for configuration file use.*  void **netsnmp\_init\_table\_dataset** (void)\
 void **netsnmp\_init\_stash\_cache\_helper** (void)\
 *initializes the stash\_cache helper which then registers a stash\_cache handler as a run-time injectable handler for configuration file use.*  void **netsnmp\_init\_helpers** (void)\
 *call the initialization sequence for all handlers with init\_ routines.*

## Detailed Description

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. 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

### netsnmp\_mib\_handler\* netsnmp\_get\_debug\_handler (void)

returns a debug handler that can be injected into a given handler chain.

Definition at line 51 of file debug\_handler.c.

### void netsnmp\_init\_bulk\_to\_next\_helper (void)

initializes the bulk\_to\_next helper which then registers a bulk\_to\_next handler as a run-time injectable handler for configuration file use.

Definition at line 139 of file bulk\_to\_next.c.

### 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 155 of file debug\_handler.c.

### void netsnmp\_init\_helpers (void)

call the initialization sequence for all handlers with init\_ routines.

Definition at line 36 of file all\_helpers.c.

### void netsnmp\_init\_read\_only\_helper (void)

initializes the read\_only helper which then registers a read\_only handler as a run-time injectable handler for configuration file use.

Definition at line 81 of file read\_only.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.

### void netsnmp\_init\_stash\_cache\_helper (void)

initializes the stash\_cache helper which then registers a stash\_cache handler as a run-time injectable handler for configuration file use.

Definition at line 238 of file stash\_cache.c.

## Author

Generated automatically by Doxygen for net-snmp from the source code.
