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.
28 Do not read any configuration files except the one optionally specified by the
33 Dump (in hexadecimal) the sent and received SNMP packets.
36 Turn on debugging output for the given
38 Without any tokens specified, it defaults to printing all the tokens
39 (which is equivalent to the keyword "ALL").
42 for extremely verbose output. Note: You can not put a space between
43 the -D flag and the listed TOKENs.
46 Do not fork() from the calling shell.
49 Change to the numerical group ID
51 after opening listening sockets.
54 Display a brief usage message and then exit.
57 Display a list of configuration file directives understood by the
61 This option specifies which modules you do (or do not) want to be
62 initialized when the agent starts up. If the comma-separated
65 with a '-', it is the list of modules that you do
67 want to be started. Otherwise,
69 is the list of modules to be started.
71 To get a list of compiled modules, run the agent with the arguments
73 (assumes you have debugging support compiled in).
75 .BR -l "" " " "[\fIFILE" "" "]"
76 Log all output from the agent (including stdout and stderr) to
78 If no filename is given, log to a default file set at compile time
79 (normally /var/log/snmpd.log).
82 Do not open a log file; print all messages to stderr instead.
85 Save the process ID of the daemon in
89 Print simpler output for easier automated parsing.
92 Do not require root access to run the daemon. Specifically, do not exit
93 if files only accessible to root (such as /dev/kmem etc.) cannot be
97 Use syslog for logging.
100 Specifies the syslog facility to use when logging to syslog. 'd' means
103 .BR LOG_LOCAL0 " through " LOG_LOCAL7 ". " LOG_DAEMON " is the default."
106 Change to the user ID
108 (which can be given in numerical or textual form) after opening
112 Print version information for the agent and then exit.
115 Symbolically dump SNMP transactions.
118 Listens for AgentX connections on the specified address
119 rather than the default '/var/agentx/master'.
120 The address can either be a Unix domain socket path,
121 or the address of a network interface. The format is the same as the
122 format of listening addresses described below.
125 Run as an AgentX subagent rather than as an SNMP master agent.
127 .SH LISTENING ADDRESSES
130 listens for incoming SNMP requests only on UDP port 161. However, it
131 is possible to modify this behaviour by specifying one or more
132 listening addresses as arguments to
134 A listening address takes the form:
136 [<transport-specifier>:]<transport-address>
138 At its simplest, a listening address may consist only of a port
139 number, in which case
141 listens on that UDP port on all IPv4 interfaces. Otherwise, the
142 <transport-address> part of the specification is parsed according to
146 .BR "<transport-specifier>"
147 .BR "<transport-address> format"
159 [network]:node[/port]
161 .IR "" "aal5pvc " or " pvc"
162 [interface.][VPI.]VCI
164 .IR "" "udp6 " or " udpv6 " or " udpipv6"
169 .IR "" "tcp6 " or " tcpv6 " or " tcpipv6"
175 Note that <transport-specifier> strings are case-insensitive so that,
176 for example, "tcp" and "TCP" are equivalent. Here are some examples,
177 along with their interpretation:
180 listen on UDP port 161, but only on the loopback interface. This
183 being queried remotely (which is a bit pointless). The ":161" is
184 redundant here since that is the default SNMP port in any case.
187 listen on TCP port 1161 on all IPv4 interfaces.
190 listen on IPX port 40000 on all IPX interfaces.
192 .IR "unix:/tmp/local-agent"
193 listen on the Unix domain socket
194 .IR /tmp/local-agent .
196 .IR "/tmp/local-agent"
197 identical to the previous specification, since the Unix domain is the
198 default transport iff the first character of the <transport-address>
202 listen on the AAL5 permanent virtual circuit with VPI=0 and VCI=161
203 (decimal) on the first ATM adapter in the machine.
206 listen on port 10161 on all IPv6 interfaces.
208 Note that not all the transport domains listed above will always be
209 available; for instance, hosts with no IPv6 support will not be able
210 to use udp6 transport addresses, and attempts to do so will result in
211 the error "Error opening specified endpoint". Likewise, since AAL5
212 PVC support is only currently available on Linux, it will fail with
213 the same error on other platforms.
216 .SH CONFIGURATION FILES
219 checks for the existence of and parses the following files:
221 .B SYSCONFDIR/snmp/snmp.conf
222 Common configuration for the agent and applications. See
226 .B SYSCONFDIR/snmp/snmpd.conf
228 .B SYSCONFDIR/snmp/snmpd.local.conf
229 Agent-specific configuration. See
231 for details. These files are optional and may be used to configure
232 access control, trap generation, subagent protocols and much else
235 In addition to these two configuration files in SYSCONFDIR/snmp, the
236 agent will read any files with the names
240 in a colon separated path specified in the
241 SNMPCONFPATH environment variable.
243 .B DATADIR/snmp/mibs/
244 The agent will also load all files in this directory as MIBs. It will
245 not, however, load any file that begins with a '.' or descend into
248 (in recommended reading order)