File: netsnmp_debug.3

package info (click to toggle)
net-snmp 5.2.3-7etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 24,452 kB
  • ctags: 16,045
  • sloc: ansic: 175,930; perl: 11,814; sh: 11,230; makefile: 5,375; pascal: 62
file content (122 lines) | stat: -rw-r--r-- 5,011 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.TH "debug" 3 "14 Jul 2006" "Version 5.2.3" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
debug \- Print out debugging information about the handler chain being called.  

.PP
.SS "handler"

.in +1c
.ti -1c
.RI "void \fBnetsnmp_init_serialize\fP (void)"
.br
.RI "\fIinitializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. \fP"
.ti -1c
.RI "void \fBnetsnmp_init_read_only_helper\fP (void)"
.br
.RI "\fIinitializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. \fP"
.ti -1c
.RI "void \fBnetsnmp_init_bulk_to_next_helper\fP (void)"
.br
.RI "\fIinitializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. \fP"
.ti -1c
.RI "void \fBnetsnmp_init_table_dataset\fP (void)"
.br
.ti -1c
.RI "void \fBnetsnmp_init_stash_cache_helper\fP (void)"
.br
.RI "\fIinitializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. \fP"
.ti -1c
.RI "void \fBnetsnmp_init_helpers\fP (void)"
.br
.RI "\fIcall the initialization sequence for all handlers with init_ routines. \fP"
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBnetsnmp_mib_handler\fP * \fBnetsnmp_get_debug_handler\fP (void)"
.br
.RI "\fIreturns a debug handler that can be injected into a given handler chain. \fP"
.ti -1c
.RI "void \fBdebug_print_requests\fP (\fBnetsnmp_request_info\fP *requests)"
.br
.ti -1c
.RI "int \fBnetsnmp_debug_helper\fP (\fBnetsnmp_mib_handler\fP *handler, \fBnetsnmp_handler_registration\fP *reginfo, \fBnetsnmp_agent_request_info\fP *reqinfo, \fBnetsnmp_request_info\fP *requests)"
.br
.ti -1c
.RI "void \fBnetsnmp_init_debug_helper\fP (void)"
.br
.RI "\fIinitializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Print out debugging information about the handler chain being called. 
.PP
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:
.PP
injectHandler debug my_module_name
.PP
to see an example output, try:
.PP
injectHandler debug mibII/system
.PP
and then run snmpwalk on the 'system' group. 
.SH "Function Documentation"
.PP 
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_debug_handler (void)"
.PP
returns a debug handler that can be injected into a given handler chain. 
.PP
Definition at line 55 of file debug_handler.c.
.PP
References netsnmp_create_handler(), and netsnmp_debug_helper().
.PP
Referenced by netsnmp_init_debug_helper().
.SS "void netsnmp_init_bulk_to_next_helper (void)"
.PP
initializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. 
.PP
Definition at line 115 of file bulk_to_next.c.
.PP
Referenced by netsnmp_init_helpers().
.SS "void netsnmp_init_debug_helper (void)"
.PP
initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. 
.PP
Definition at line 159 of file debug_handler.c.
.PP
References netsnmp_get_debug_handler(), and netsnmp_register_handler_by_name().
.SS "void netsnmp_init_helpers (void)"
.PP
call the initialization sequence for all handlers with init_ routines. 
.PP
Definition at line 36 of file all_helpers.c.
.PP
References netsnmp_init_bulk_to_next_helper(), netsnmp_init_debug_helper(), netsnmp_init_read_only_helper(), netsnmp_init_serialize(), netsnmp_init_stash_cache_helper(), and netsnmp_init_table_dataset().
.PP
Referenced by init_agent().
.SS "void netsnmp_init_read_only_helper (void)"
.PP
initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. 
.PP
Definition at line 87 of file read_only.c.
.PP
Referenced by netsnmp_init_helpers().
.SS "void netsnmp_init_serialize (void)"
.PP
initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. 
.PP
Definition at line 97 of file serialize.c.
.PP
Referenced by netsnmp_init_helpers().
.SS "void netsnmp_init_stash_cache_helper (void)"
.PP
initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. 
.PP
Definition at line 189 of file stash_cache.c.
.PP
References netsnmp_get_stash_cache_handler(), and netsnmp_register_handler_by_name().
.PP
Referenced by netsnmp_init_helpers().