Starts the Simple Network Management Protocol (SNMP) daemon as a background process.
snmpd [ -c ConfigFile ] [ -d Level ] [ -f LogFile ]
The snmpd command starts the SNMP daemon. This command may only be issued by a user with root privileges or by a member of the system group.
The SNMP daemon is a server that supports the standard Simple Network Management Protocol (SNMP) documented by RFC 1157 and the Management Information Base (MIB) as defined in RFC 1155 and RFC 1213. The SNMP daemon provides the following three functions:
The SNMP daemon server keeps log messages in a file specified by the LogFile variable if the -f flag is used or in a log file specified in the configuration file. When the size of the log file exceeds the predefined maximum log file size, the snmpd command will rotate the log file by moving the old log file to another file as follows:
If logging is not directed from the snmpd command line with the -f flag, logging can be directed from the configuration file. See "Understanding the SNMP Daemon Logging Facility" in AIX Communications Programming Concepts for more information.
See "Understanding SNMP Daemon Support for SET Request Processing" in AIX Communications Programming Concepts for more information on the supported set variables.
The following commands should be issued before the SNMP daemon is started:
These commands are normally executed during system startup when the /etc/rc.net and /etc/rc.tcpip shell scripts are called. (The snmpd command can be placed in the /etc/rc.tcpip shell script.)
The snmpd daemon should be controlled using the System Resource Controller (SRC). Entering snmpd at the command line is not recommended.
The snmpd daemon is a subsytem controlled by the System Resource Controller (SRC). The snmpd daemon is a member of the tcpip system group. The snmpd daemon is enabled by default and can be manipulated by SRC commands.
Use the following SRC commands to manipulate the snmpd daemon:
startsrc | Starts a subsystem, group of subsystems, or a subserver. Issuing the startsrc command causes the snmpd command to generate a coldStart trap. |
stopsrc | Stops a subsystem, group of subsystems, or a subserver. |
refresh | Causes a subsystem or group of subsystems to reread the appropriate configuration file. Issuing a refresh command causes the snmpd daemon to generate a warmStart trap. |
traceson | Enables tracing of a subsystem, group of subsystems, or a subserver. If the user issuing the traceson command is not the root user, the debugging level will not exceed level 2. |
tracesoff | Disables tracing of a subsystem, group of subsystems, or a subserver. |
lssrc | Gets the status of a subsystem, group of subsystems, or a subserver. If the user issuing the long status form of the lssrc command is not the root user, no community name information is displayed. |
startsrc -s snmpd -a "-f /tmp/snmpd.log"This command starts the snmpd daemon and logs information to the /tmp/snmpd.log file at debug level 0.
stopsrc -s snmpdThis command stops the daemon. The -s flag specifies the subsystem that follows to be stopped.
lssrc -s snmpdThis command returns the name of the daemon, the process ID of the daemon, and the state of the daemon (active or inactive).
lssrc -ls snmpdIf you are the root user, this long form of the status report lists the configured community names and associated access privileges and views for snmp requests. The long form also lists the community names associated with the hosts for trap notification, logging configuration parameters, snmpd specific configuration parameters and smux configuration parameters.
traceson -s snmpdThis command enables snmpd debugging if the snmpd daemon is configured for logging.
/etc/services | Contains port assignments for required services. The following entries must be present in the /etc/services file if the entries are not already present:
Notes: | ||||||
/etc/snmpd.conf | Specifies the configuration parameters for the snmpd agent. |
The gated daemon.
Understanding the SNMP Daemon, Problem Determination for the SNMP Daemon in AIX Version 4.3 System Management Guide: Communications and Networks.
Understanding the Simple Network Management Protocol (SNMP), and Understanding the Management Information Base (MIB) in AIX Communications Programming Concepts.
Example of SMUX Error Logging Subroutines in AIX Communications Programming Concepts.