Sun Directory Services 3.1 Administration Guide

Monitoring Directory Services with SNMP

Sun Directory Services provides two SNMP agents:

The first SNMP agent, dsnmpserv, supports the management information bases (MIBs) defined in the following standards:

These MIBs are part of the messaging and directory management (MADMAN) standards that apply to all messaging and directory applications.

The second SNMP agent, dsnmprad, supports the MIBs defined in the following draft standards:

For a detailed list of the type of information collected by each agent, refer to "Directory Server Statistics" and "RADIUS Server Statistics".

On a Solaris 2.6 machine, the SNMP agents are started automatically during the installation process. This is possible because the Solaris 2.6 operating environment includes a master SNMP agent, snmpdx that resides on UDP port 161 and relays SNMP traffic to and from all other SNMP agents installed on the machine.

Starting and Stopping the SNMP Agents

If you need to start or stop an agent manually, use the following commands.

To start the SNMP agent for the directory server, dsnmpserv, as root type:

# /etc/init.d/init.dsnmpserv start

To start the SNMP agent for the RADIUS server, dsnmprad, as root type:

# /opt/SUNWconn/ldap/sbin/init.dsnmprad start

To stop the SNMP agent for the directory server, dsnmpserv, as root type:

# /etc/init.d/init.dsnmpserv stop

To stop the SNMP agent for the RADIUS server, dsnmprad, as root type:

# /opt/SUNWconn/ldap/sbin/init.dsnmprad stop

Configuring the SNMP Agents

When you install Sun Directory Services on a Solaris 2.6 machine, configuration information for the dsnmpserv and dsnmprad agents is added to the configuration of the Solaris master agent snmpdx, and all SNMP agents are started. By default, the Sun Directory Services agents report events to the local host. The UDP ports that the agents use are dynamically assigned by the master agent.

In both cases, you can configure the hosts to which the SNMP agents report events. This is done using the dsnmpcfg command as follows (you must be logged in as root):

# /opt/SUNWconn/ldap/sbin/dsnmpcfg configure

You are prompted to provide the hostnames of the machines to which you want each agent to report events. If the agents are running when you perform the configuration, they are restarted to take your changes into account.