snmpd, snmpd.conf - Simple Network Management Protocol (SNMP) agent daemon
The snmpd daemon is an extensible SNMP V1 agent that starts automatically at boot time. It listens for SNMP requests on UDP port 161 and for local subagents wishing to register extended MIBs. The snmpd daemon itself contains no MIB code, it processes SNMP requests by communicating with registered subagents. The snmpd daemon collates the subagents replies and sends the SNMP response to logically remote network management stations.
For information about building subagents and extensible SNMP support, refer to the Network Programmer's Guide .
Tru64 UNIX standard MIB support is implemented in the subagent process /usr/sbin/os_mibs. This process is started and stopped automatically in conjunction with the snmpd daemon.
The snmpd daemon reads its configuration file, /etc/snmpd.conf, at startup time. You can change the configuration by editing the /etc/snmpd.conf file, as described in the Configuring snmpd section in this reference page. The default configuration grants read access to the world, and does not generate any traps. The snmpd daemon logs error messages through the syslog function to the /usr/var/adm/syslog.dated/date/daemon.log log file.
White space (tabs, spaces, line feeds, and carriage returns) and blank lines are ignored.
According to RFC 1213, the variables sysName, sysLocation, and sysContact can be any string of 0 to 255 NVT ASCII characters. The value of the snmpEnableAuthenTraps entry can be either 1 or 2 to enable or disable traps; for example: sysLocation City, USA sysContact Kathy Berberian 555-7667 snmpEnableAuthenTraps 1 If the values of the sysName, sysLocation, and sysContact variables are modified by SNMP set commands, the new values are updated in the snmpd.conf file. (The sysName variable does not affect the system's host name.) If sysName is not defined in the snmpd.conf file, the system's host name is used.
Can be any string. Indicates the remote site for which this community is valid. If the IP address is 0.0.0.0, any address can communicate using that community name. Can be read for read-only or write for read and write.
The following is a sample entry for the community variable: community test1 126.96.36.199 READ
This example defines a community named test1 that allows read-only access from the IP address 188.8.131.52. The Tru64 UNIX agent implements write access to all MIB II variables so defined. Authorized parties are able to change the Tru64 UNIX environment; such as bring down an interface or delete an entry from the routing table.
By default, the snmpd.conf file contains a community entry that permits read access of all MIB variables via the community public. You can constrain access to different communities by removing this default entry and by adding entries with different community names.
If you want to disable access to MIB variables completely (some sites might want to do this), the recommended method is to remove all community entries in the snmpd.conf file and to restart snmpd.
Can be any string. Indicates the destination address to be included in the trap PDU.
The following is a sample trap entry: trap test2 184.108.40.206
This example indicates to the agent that if a trap needs to be sent, the trap PDU should be built using the community name test2 and sent to the trap port at 220.127.116.11.
Sending the SIGUSR1 signal to snmpd causes it to dump its registry of MIBs and subagents to the file /var/tmp/snmpd_dump.log. A simple way to do this is to use the /sbin/init.d/snmpd dump command.
The snmpd daemon configuration file. The system daemon log file, where date is the date. The file containing a dump of the snmpd daemon's MIB registry. This directory contains eSNMP UNIX domain sockets.
Commands: os_mibs(8), syslog(3)
Network Administration , Network Programmer's Guide , /usr/examples/esnmp/*
Structure and Identification of Management Information for TCP/IP-Based Internets (RFC 1155), A Simple Network Management Protocol (RFC 1157), Concise MIB Definitions (RFC 1212), Conventions for Defining Traps for Use With the SNMP (RFC 1215), delim off