1
.TH SNMPD 8 "7 Feb 2002" VVERSIONINFO "Net-SNMP"
4
snmpd - daemon to respond to SNMP request packets.
7
[OPTIONS] [LISTENING ADDRESSES]
10
is an SNMP agent which binds to a port and awaits requests from
11
SNMP management software. Upon receiving a request, it processes the
12
request(s), collects the requested information and/or performs the
13
requested operation(s) and returns the information to the sender.
17
Log the source addresses of incoming requests.
20
Append to the log file rather than truncating it.
25
as a configuration file
26
(or a comma-separated list of configuration files).
29
Do not read any configuration files except the ones optionally specified by the
32
Note that this behaviour also covers the persistent configuration files.
33
This may result in dynamically-assigned values being reset following an
34
agent restart, unless the relevant persistent config files are
35
explicitly loaded using the
40
Dump (in hexadecimal) the sent and received SNMP packets.
43
Turn on debugging output for the given
45
Without any tokens specified, it defaults to printing all the tokens
46
(which is equivalent to the keyword "ALL").
49
for extremely verbose output. Note: You can not put a space between
50
the -D flag and the listed TOKENs.
53
Do not fork() from the calling shell.
56
Change to the numerical group ID
58
after opening listening sockets.
61
Display a brief usage message and then exit.
64
Display a list of configuration file directives understood by the
68
This option specifies which modules you do (or do not) want to be
69
initialized when the agent starts up. If the comma-separated
72
with a '-', it is the list of modules that you do
74
want to be started. Otherwise,
76
is the list of modules to be started.
78
To get a list of compiled modules, run the agent with the arguments
80
(assumes you have debugging support compiled in).
82
.BR -l "" " " "[\fIFILE" "" "]"
83
Log all output from the agent (including stdout and stderr) to
85
If no filename is given, log to a default file set at compile time
86
(normally /var/log/snmpd.log).
88
This option is being deprecated, and '-Lf FILE' should be used instead.
91
Specify where logging output should be directed (standard error or output,
92
to a file or via syslog). See LOGGING OPTIONS in snmpcmd(5) for details.
94
This option deprecates the
102
Save the process ID of the daemon in
105
This option deprecates the
110
Save the process ID of the daemon in
112
This option is being deprecated, and '-p FILE' should be used instead.
115
Print simpler output for easier automated parsing.
118
Do not require root access to run the daemon. Specifically, do not exit
119
if files only accessible to root (such as /dev/kmem etc.) cannot be
123
Use syslog for logging.
125
This option is being deprecated, and '-Ls FACILITY' should be used instead.
128
Specifies the syslog facility to use when logging to syslog.
130
This option is being deprecated, and '-Ls FACILITY' should be used instead.
133
Change to the user ID
135
(which can be given in numerical or textual form) after opening
139
Print version information for the agent and then exit.
142
Symbolically dump SNMP transactions.
145
Listens for AgentX connections on the specified address
146
rather than the default '/var/agentx/master'.
147
The address can either be a Unix domain socket path,
148
or the address of a network interface. The format is the same as the
149
format of listening addresses described below.
152
Run as an AgentX subagent rather than as an SNMP master agent.
154
.SH LISTENING ADDRESSES
157
listens for incoming SNMP requests only on UDP port 161. However, it
158
is possible to modify this behaviour by specifying one or more
159
listening addresses as arguments to
161
A listening address takes the form:
163
[<transport-specifier>:]<transport-address>
165
At its simplest, a listening address may consist only of a port
166
number, in which case
168
listens on that UDP port on all IPv4 interfaces. Otherwise, the
169
<transport-address> part of the specification is parsed according to
173
.BR "<transport-specifier>"
174
.BR "<transport-address> format"
186
[network]:node[/port]
188
.IR "" "aal5pvc " or " pvc"
189
[interface.][VPI.]VCI
191
.IR "" "udp6 " or " udpv6 " or " udpipv6"
196
.IR "" "tcp6 " or " tcpv6 " or " tcpipv6"
202
Note that <transport-specifier> strings are case-insensitive so that,
203
for example, "tcp" and "TCP" are equivalent. Here are some examples,
204
along with their interpretation:
207
listen on UDP port 161, but only on the loopback interface. This
210
being queried remotely (which is a bit pointless). The ":161" is
211
redundant here since that is the default SNMP port in any case.
214
listen on TCP port 1161 on all IPv4 interfaces.
217
listen on IPX port 40000 on all IPX interfaces.
219
.IR "unix:/tmp/local-agent"
220
listen on the Unix domain socket
221
.IR /tmp/local-agent .
223
.IR "/tmp/local-agent"
224
identical to the previous specification, since the Unix domain is the
225
default transport iff the first character of the <transport-address>
229
listen on the AAL5 permanent virtual circuit with VPI=0 and VCI=161
230
(decimal) on the first ATM adapter in the machine.
233
listen on port 10161 on all IPv6 interfaces.
235
Note that not all the transport domains listed above will always be
236
available; for instance, hosts with no IPv6 support will not be able
237
to use udp6 transport addresses, and attempts to do so will result in
238
the error "Error opening specified endpoint". Likewise, since AAL5
239
PVC support is only currently available on Linux, it will fail with
240
the same error on other platforms.
243
.SH CONFIGURATION FILES
246
checks for the existence of and parses the following files:
248
.B SYSCONFDIR/snmp/snmp.conf
249
Common configuration for the agent and applications. See
253
.B SYSCONFDIR/snmp/snmpd.conf
255
.B SYSCONFDIR/snmp/snmpd.local.conf
256
Agent-specific configuration. See
258
for details. These files are optional and may be used to configure
259
access control, trap generation, subagent protocols and much else
262
In addition to these two configuration files in SYSCONFDIR/snmp, the
263
agent will read any files with the names
267
in a colon separated path specified in the
268
SNMPCONFPATH environment variable.
270
.B DATADIR/snmp/mibs/
271
The agent will also load all files in this directory as MIBs. It will
272
not, however, load any file that begins with a '.' or descend into
275
(in recommended reading order)