Starts the Simple Network Management Protocol (SNMP) version 3 agent as a background process.
snmpd [ -d Level ] [ -i Interval ] [ -p Port ] [ -S ]
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 all the SNMPv1, SNMPv2c, and SNMPv3 protocols documented by RFCs 1157, RFD 1905, and RFC 2572. It also behaves as a SMUX server as defined by RFC 1227 and as a DPI2 agent as defined by RFC 1592. 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:
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 snmpdv3 daemon should be controlled using the System Resource Controller (SRC). Entering snmpd at the command line is not recommended.
The snmpdv3 daemon is a subsystem controlled by the System Resource Controller (SRC). The snmpdv3 daemon is a member of the tcpip system group. The snmpdv3 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 snmpdv3 command to generate a coldStart trap. |
stopsrc | Stops a subsystem, group of subsystems, or a subserver. |
lssrc | Gets the status of a subsystem, group of subsystems, or a subserver. |
startsrc -s snmpd
This command starts the snmpd daemon at debug level 0.
stopsrc -s snmpd
This command stops the daemon. The -s flag specifies the subsystem that follows to be stopped.
lssrc -s snmpd
This command returns the name of the daemon, the process ID of the daemon, and the state of the daemon (active or inactive).
/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:
|
/etc/snmpdv3.conf | Specifies the configuration parameters for the snmpdv3 agent. |
/etc/snmpd.boots | Specifies the engineID and the engineBoots for the snmpdv3 agent. |
/etc/mib.defs | Defines the Management Information Base (MIB) variable the SNMP agent should recognize and handle. |
The clsnmp command, pwchange command, pwtokey command, snmpd daemon,snmpv3_ssw command.
The /etc/clsnmp.conf file.
The Network Management chapter in AIX 5L Version 5.2 System Management Guide: Communications and Networks.