~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to man/netsnmp_snmp_logging.3

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "generic logging for net-snmp" 3 "5 Sep 2008" "Version 5.4.2" "net-snmp" \" -*- nroff -*-
 
1
.TH "generic logging for net-snmp" 3 "23 May 2010" "Version 5.4.3.pre1" "net-snmp" \" -*- nroff -*-
2
2
.ad l
3
3
.nh
4
4
.SH NAME
13
13
.RI "#define \fBva_copy\fP(dest, src)   memcpy (&dest, &src, sizeof (va_list))"
14
14
.br
15
15
.ti -1c
16
 
.RI "#define \fBLOG_CONS\fP   0"
17
 
.br
18
 
.ti -1c
19
 
.RI "#define \fBLOG_PID\fP   0"
20
 
.br
21
 
.ti -1c
22
 
.RI "#define \fBLOG_LOCAL0\fP   0"
23
 
.br
24
 
.ti -1c
25
 
.RI "#define \fBLOG_LOCAL1\fP   0"
26
 
.br
27
 
.ti -1c
28
 
.RI "#define \fBLOG_LOCAL2\fP   0"
29
 
.br
30
 
.ti -1c
31
 
.RI "#define \fBLOG_LOCAL3\fP   0"
32
 
.br
33
 
.ti -1c
34
 
.RI "#define \fBLOG_LOCAL4\fP   0"
35
 
.br
36
 
.ti -1c
37
 
.RI "#define \fBLOG_LOCAL5\fP   0"
38
 
.br
39
 
.ti -1c
40
 
.RI "#define \fBLOG_LOCAL6\fP   0"
41
 
.br
42
 
.ti -1c
43
 
.RI "#define \fBLOG_LOCAL7\fP   0"
44
 
.br
45
 
.ti -1c
46
 
.RI "#define \fBLOG_DAEMON\fP   0"
47
 
.br
48
 
.ti -1c
49
16
.RI "#define \fBLOG_USER\fP   0"
50
17
.br
51
18
.in -1c
65
32
.RI "void \fBshutdown_snmp_logging\fP (void)"
66
33
.br
67
34
.ti -1c
68
 
.RI "int \fBdecode_priority\fP (char *optarg, int *pri_max)"
 
35
.RI "int \fBdecode_priority\fP (char **optarg, int *pri_max)"
69
36
.br
70
37
.ti -1c
71
38
.RI "int \fBdecode_facility\fP (char *optarg)"
164
131
.ti -1c
165
132
.RI "int \fBsnmp_vlog\fP (int priority, const char *format, va_list ap)"
166
133
.br
167
 
.RI "\fIThis snmp logging function allows variable argument list given the specified priority, format and a populated va_list structure. \fP"
 
134
.RI "\fIThis snmp logging function allows \fBvariable\fP argument list given the specified priority, format and a populated va_list structure. \fP"
168
135
.ti -1c
169
136
.RI "int \fBsnmp_log\fP (int priority, const char *format,...)"
170
137
.br
171
 
.RI "\fIThis snmp logging function allows variable argument list given the specified format and priority. \fP"
 
138
.RI "\fIThis snmp logging function allows \fBvariable\fP argument list given the specified format and priority. \fP"
172
139
.ti -1c
173
140
.RI "void \fBsnmp_log_perror\fP (const char *s)"
174
141
.br
190
157
.PP 
191
158
.SS "void netsnmp_logging_restart (void)"
192
159
.PP
193
 
Definition at line 616 of file snmp_logging.c.
 
160
hmm, don't zero status isn't saved.. i think it's safer not to overwrite, in case a hup is just to re-read config files...
194
161
.PP
195
 
References netsnmp_log_handler_s::enabled, logh_head, netsnmp_enable_filelog(), netsnmp_log_handler_s::next, snmp_disable_filelog_entry(), snmp_disable_syslog_entry(), snmp_enable_syslog_ident(), and netsnmp_log_handler_s::type.
 
162
Definition at line 636 of file snmp_logging.c.
196
163
.SS "int snmp_get_do_logging (void)"
197
164
.PP
198
 
Is logging done? 
199
 
.PP
200
 
\fBReturns:\fP
 
165
Is logging done? \fBReturns:\fP
201
166
.RS 4
202
167
Returns 0 if logging is off, 1 when it is done. 
203
168
.RE
204
169
.PP
205
170
 
206
171
.PP
207
 
Definition at line 473 of file snmp_logging.c.
208
 
.PP
209
 
References netsnmp_log_handler_s::enabled, logh_head, and netsnmp_log_handler_s::next.
210
 
.PP
211
 
Referenced by netsnmp_agent_check_parse().
 
172
Definition at line 493 of file snmp_logging.c.
212
173
.SS "int snmp_log (int priority, const char * format,  ...)"
213
174
.PP
214
 
This snmp logging function allows variable argument list given the specified format and priority. 
215
 
.PP
216
 
Calls the snmp_vlog function. The default logfile this function writes to is /var/log/snmpd.log.
 
175
This snmp logging function allows \fBvariable\fP argument list given the specified format and priority. Calls the snmp_vlog function. The default logfile this function writes to is /var/log/snmpd.log.
217
176
.PP
218
177
\fBSee also:\fP
219
178
.RS 4
226
185
.in +1c
227
186
\fBdelayed_instance.c\fP.
228
187
.PP
229
 
Definition at line 1255 of file snmp_logging.c.
230
 
.PP
231
 
References snmp_vlog().
232
 
.PP
233
 
Referenced by _callback_lock(), _request_set_error(), _sess_read(), agent_check_and_process(), config_perror(), config_pwarn(), convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), copy_word(), create_trap_session(), init_agent(), init_master_agent(), netsnmp_addrcache_add(), netsnmp_agent_check_packet(), netsnmp_agent_check_parse(), netsnmp_baby_steps_handler_get(), netsnmp_cache_create(), netsnmp_cache_helper_handler(), netsnmp_cache_timer_start(), netsnmp_cache_timer_stop(), netsnmp_call_handler(), netsnmp_call_handlers(), netsnmp_call_next_handler(), netsnmp_call_next_handler_one_request(), netsnmp_config_parse_add_row(), netsnmp_config_parse_table_set(), netsnmp_container_get_null(), netsnmp_container_iterator_get(), netsnmp_container_table_handler_get(), netsnmp_container_table_register(), netsnmp_data_list_add_data(), netsnmp_data_list_add_node(), netsnmp_ds_handle_config(), netsnmp_get_multiplexer_handler(), netsnmp_get_table_data_handler(), netsnmp_get_table_data_set_handler(), netsnmp_get_table_handler(), netsnmp_get_tdata_handler(), netsnmp_inject_handler_before(), netsnmp_instance_counter32_handler(), netsnmp_mark_row_column_writable(), netsnmp_multiplexer_helper_handler(), netsnmp_read_data_callback(), netsnmp_register_handler(), netsnmp_register_handler_nocallback(), netsnmp_register_mib(), netsnmp_register_num_file_instance(), netsnmp_register_save_list(), netsnmp_request_set_error_all(), netsnmp_row_merge_status_get(), netsnmp_save_all_data_callback(), netsnmp_send_traps(), netsnmp_sess_log_error(), netsnmp_set_row_column(), netsnmp_table_container_register(), netsnmp_table_data_add_row(), netsnmp_table_data_set_helper_handler(), netsnmp_table_iterator_helper_handler(), netsnmp_table_row_handler_get(), netsnmp_table_row_register(), netsnmp_table_set_add_default_row(), netsnmp_tdata_add_row(), netsnmp_wrap_up_request(), read_config_files(), read_config_print_usage(), read_config_read_octet_string(), read_config_store(), register_signal(), snmp_build(), snmp_clean_persistent(), snmp_log_perror(), snmp_pdu_parse(), snmp_perror(), snmp_save_persistent(), snmp_set_var_value(), snmpd_parse_config_authtrap(), snmpv3_make_report(), snmpv3_packet_build(), snmpv3_parse(), and table_helper_handler().
 
188
Definition at line 1275 of file snmp_logging.c.
234
189
.SS "int snmp_vlog (int priority, const char * format, va_list ap)"
235
190
.PP
236
 
This snmp logging function allows variable argument list given the specified priority, format and a populated va_list structure. 
237
 
.PP
238
 
The default logfile this function writes to is /var/log/snmpd.log.
 
191
This snmp logging function allows \fBvariable\fP argument list given the specified priority, format and a populated va_list structure. The default logfile this function writes to is /var/log/snmpd.log.
239
192
.PP
240
193
\fBParameters:\fP
241
194
.RS 4
270
223
 
271
224
.PP
272
225
.br
273
 
\fIformat\fP is a pointer to a char representing the variable argument list format used.
 
226
\fIformat\fP is a pointer to a char representing the \fBvariable\fP argument list format used.
274
227
.br
275
228
\fIap\fP is a va_list type used to traverse the list of arguments.
276
229
.RE
287
240
.PP
288
241
 
289
242
.PP
290
 
Definition at line 1194 of file snmp_logging.c.
291
 
.PP
292
 
References LOGLENGTH, NULL, snmp_log_string(), va_copy, and vsnprintf().
293
 
.PP
294
 
Referenced by snmp_log().
 
243
Definition at line 1214 of file snmp_logging.c.
 
244
.SH "Author"
 
245
.PP 
 
246
Generated automatically by Doxygen for net-snmp from the source code.