|
|
snmpd uses four configuration files. They are /etc/snmpd.conf, /etc/snmpd.comm, /etc/snmpd.trap, and /etc/snmpd.peers. /etc/snmpd.conf is read to initialize the elements in the system group and the SMUX reserved subtrees. The two files /etc/snmpd.comm and /etc/snmpd.trap are used to initialize the lists of systems in the communities that will be allowed to access the Management Information Base on the local system. /etc/snmpd.peers is used to authenticate open requests from potential SMUX peers. See snmpd.conf(SFF), snmpd.comm(SFF), snmpd.trap(SFF) and snmpd.peers(SFF) for more information on the formats and uses of these files.
snmpd, by default, logs information regarding its operation to its log file /usr/adm/snmpd.log. If the -v option is specified on the snmpd command line, snmpd logs this information to standard output instead of its log file. You can select the amount and kind of information which snmpd logs by specifying one of four log levels (0, 1, 2, or 3). The lowest level (0) logs minimal information, while each higher level adds more information to what is logged by the lower levels. When invoked without the -v option, snmpd logs at the lowest level (0). When specifying the -v option, the user must set the log_level to 0, 1, 2, or 3. After snmpd is invoked, the log_level can be increased or decreased by sending it the signals SIGUSR1 and SIGUSR2, respectively (see ``Signal processing'' below).
The SNMP agent generates Trap PDUs when it notices any exceptional conditions. The /etc/snmpd.trap file is used to determine the recipients of these messages.
When the SNMP agent starts up, it generates a coldStart trap PDU. It also generates a coldStart trap PDU whenever it is re-configured. It generates a warmStart trap PDU whenever it reinitializes itself with no changes in its configuration. It generates linkUp and linkDown trap PDUs whenever an interface comes up or goes down, respectively. It generates an authenticationFailure trap PDU whenever it receives a packet which fails the authentication check.
RFC 1155 (STD 16), RFC 1156, RFC 1157 (STD 15), RFC 1213 (STD 17), RFC 1227, RFC 1231, RFC 1354, RFC 1398, RFC 1389, RFC 1471, RFC 1473