GNU/Linux |
RedHat 5.2(Apollo) |
|
![]() |
snmpd(1) |
![]() |
snmpd - daemon to respond to SNMP request packets.
snmpd [-v] [-a] [-V] [-d] [-q] [-D] [-p port] [-f] [-l logfile] [-L] [-c file] [-C]
snmpd is a SNMP agent which binds to a port and awaits requests from SNMP management software. Upon receiving a request, it processes the request(s), collects the requested information and/or performs the requested opperation(s) and returns the information to the sender.
-v |
Print version information for the agent, and exit. -a Dumps the addresses the agent corresponds with to stderr or logfile. | ||
-V |
Makes af symbolic dump of the protocol transaction. | ||
-d |
Dumps the sent and received UDP packets to stderr or logfile. | ||
-q |
Print simplier output for easier automated parsing. -D Turn on debugging output |
-p port
Opens on port instead of the default SNMP agent port, 161.
-f |
Don’t fork() from the calling shell. |
-l logfile
Log’s all output from the agent (including stdout/err) to logfile. Defaults to a compiled option.
-L |
Don’t open a log file; use stdout/err instead. |
-c file
Read file as a configuration file.
-C |
Don’t read any configuration files execpt the one optionally specified by the -c option. |
snmpd checks for the existance of and parses the following files:
/usr/share/snmp/snmpd.conf
/usr/share/snmp/snmpd.local.conf
Configures the agent. See snmpd.conf(5) for details. These files are optional and are only used to configure the extensible portions of the agent, the values of the community strings, and the optional trap destinations. By default, the first community string ("public" by default) is allowed read-only access and the second ("private" by default) is allowed write access as well. The 3-5th community strings are read-only as well.
In addition to these two configuration files in /usr/share/snmp, the agent will read any files with the names snmpd.conf and snmpd.local.conf in a colon separated path specified in the SNMPCONFPATH environmental variable.
/usr/share/snmp/mibs/
The agent will also load all files in this directory as mibs also. It will not, however, load any file that begins with a ’.’ or decend into subdirectories.
/usr/share/snmp/party.conf
Defines the classic SNMP V2 parties.
/usr/share/snmp/view.conf
Defines which parties defined in the party.conf have access to which parts of the mib.
/usr/share/snmp/context.conf
Maps names to numerical view contexts.
/usr/share/snmp/acl.conf
Defines the classic SNMP V2 action types usable by two communicating parties.
See the associated manual pages for information on the content of these files.
/usr/share/snmp/snmpd.conf
/usr/share/snmp/party.conf
/usr/share/snmp/view.conf
/usr/share/snmp/context.conf
/usr/share/snmp/acl.conf
(in recomended reading order)
snmpd.conf(5), party.conf(5), view.conf(5), context.conf(5), acl.conf(5)
![]() |
snmpd(1) | ![]() |