snmpd(1M) TCP/IP 5.4.2 snmpd(1M)
NAME
snmpd - SNMP agent
SYNOPSIS
snmpd [-v][-d] [-p interval]
where:
interval is the polling interval in seconds
DESCRIPTION
The SNMP agent is implemented as the snmpd command, which is a daemon
process that services requests from an SNMP network management
station (NMS). The agent may be included in the list of daemons in
the /etc/tcpip.params file to be started and stopped automatically by
the rc scripts during changes of system run levels. You also can
start or stop the agent through sysadm.
When snmpd is started it disassociates itself from the controlling
terminal, reads the configuration files, and begins servicing network
requests. The agent listens for requests on the UDP port returned by
getservbyname(3N) for "snmp" which defaults to 161.
The agent authenticates the request by verifying that the community
string in the request matches one in the /etc/snmpd.communities file
and that the level of access granted the community matches the type
of request. After authentication, the agent accesses or modifies the
requested information in the kernel and then sends a reply to the
originator.
When the agent determines it has been restarted, or when an interface
changes state, or when a request fails authentication it sends traps
to all the hosts specified in /etc/snmpd.trapcommunities file.
Options are:
-v Use the -v option to force snmpd to remain attached to the
controlling terminal and to print additional information about
the packets received and transmitted. Use this option to see
the information exchange between the agent and a management
station.
-d Use the -d option to force snmpd to remain attached to the
controlling terminal and to print diagnostic messages on
stderr. This option is similar to the -v option, however, it
does not print information about packets received and
transmitted. Use this option to see any potential error
messages without the verbosity of packet exchanges.
-p interval
Use this option to set the polling interval (in seconds) that
snmpd uses to check for changes in the interfaces state. An
interval of 0 or an empty /etc/snmpd.trapcommunities file
will disable polling. The default polling interval is 60
seconds.
Licensed material--property of copyright holder(s) 1
snmpd(1M) TCP/IP 5.4.2 snmpd(1M)
FILES
snmpd.config
Use this file to override default values for objects that are
machine dependent.
snmpd.communities
Use this file to define the list of community strings, host
addresses, and access levels recognized by the agent.
snmpd.trapcommunities
Use this file to define the list of communities, host
addresses, and port numbers where the agent sends traps.
DIAGNOSTICS
If the -v or -d options are specified output is sent to stdout and
stderr, otherwise, all output is sent to syslogd.
SEE ALSO
getmany(1M), getnext(1M), getone(1M), setany(1M), syslogd(1M),
trapsend(1M), traprecv(1M), getservbyname(3N), snmpd.config(4),
snmpd.communities(4), snmpd.trapcommunities(4).
Licensed material--property of copyright holder(s) 2