[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5

snmpdv3 Daemon

Purpose

Starts the Simple Network Management Protocol (SNMP) version 3 agent as a background process.

Syntax

snmpd [ -d Level ] [ -i Interval ] [ -p Port ] [ -S ]

Description

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.

Manipulating the snmpd Daemon with the System Resource Controller

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.

Flags

-d Level Specifies the level of tracing to be started. The valid values for level are 0-255. If the -d parameter is not specified, then the default level of 0 is used, meaning no tracing will be done. If the -d parameter is specified without a level, then a level of 31 is used, meaning all SNMP requests/responses/traps and DPI activity will be traced.

There are 8 levels of tracing provided. Each level selected has a corresponding number. The sum of the numbers associated with each level of tracing selected is the value which should be specified as level. The numbers for the trace levels are:

0
No tracing. This is the default.
1
Trace SNMP responses, requests, and traps.
2
Trace DPI level 1 and DPI level 2.
3
Same as level 1 plus level 2 plus internal trace.
4
Same as trace level 3 plus extended trace.
-i Interval Specifies the interval (in minutes) at which dynamic configuration changes to the SNMP agent should be written out to the /etc/snmpdv3.conf configuration file. Valid values are 0-10. The default value is 5. This parameter is only relevant when the /etc/snmpdv3.conf file is used for SNMPv3 configuration.
-p Port Listens for SNMP packets on this port. The default is port 161.
-S Prevents non-root users from changing the MIB values.

Examples

  1. To start the snmpd daemon, enter a command similar to the following:

    startsrc -s snmpd

    This command starts the snmpd daemon at debug level 0.

  2. To stop the snmpd daemon normally, enter:

    stopsrc -s snmpd

    This command stops the daemon. The -s flag specifies the subsystem that follows to be stopped.

  3. To get status from the snmpd daemon, enter:

    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).

Files

/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:
snmp
161/udp
snmp-trap
162/udp
smux
199/tcp
/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.

Related Information

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.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]