HP-UX Directory Server 8.1 administrator guide

14.3.2 Monitoring the Directory Server from the command line
The Directory Server's current activities can be monitored using LDAP tools such as ldapsearch,
with the following characteristics:
Search with the attribute filter objectClass=*.
Use the search base cn=monitor; the monitoring attributes for the server are found in the
cn=monitor entry.
Use the search scope base.
For example:
ldapsearch -h directory.example.com -p 389 -D "cn=Directory Manager" -w secret
-s base -b "cn=monitor" "(objectclass=*)"
The monitoring attributes for the Directory Server are found in the cn=monitor entry. For
information on searching the Directory Server, see “Using ldapsearch”.
Monitoring the server's activities using ldapsearch shows the following information:
Table 14-6 Server monitoring attributes
DescriptionAttribute
Identifies the directory's current version number.version
The current number of active threads used for handling requests. Additional threads
may be created by internal server tasks, such as replication or chaining.
threads
Provides the following summary information for each open connection (only available
if you bind to the directory as Directory Manager):
fd
The file descriptor used for this connection.
opentime
The time this connection was opened.
opsinitiated
The number of operations initiated by this connection.
opscompleted
The number of operations completed.
binddn
The distinguished name used by this connection to connect to the
directory.
rw
The field shown if the connection is blocked for read or write.
By default, this information is available to Directory Manager. However, the ACI
associated with this information can be edited to allow others to access the information.
connection:fd:
opentime:opsinitiated:
opscompleted:
binddn:[rw]
Identifies the number of connections currently in service by the directory.currentconnections
Identifies the number of connections handled by the directory since it started.totalconnections
Shows the number of file descriptors available to the directory. Each connection requires
one file descriptor: one for every open index, one for log file management, and one for
ns-slapd itself. Essentially, this value shows how many additional concurrent
connections can be serviced by the directory. For more information on file descriptors,
refer to the maxfiles_lim(5) manpage.
dtablesize
Identifies the number of threads waiting to read data from a client.readwaiters
Identifies the number of operations the server has initiated since it started.opsinitiated
Identifies the number of operations the server has completed since it started.opscompleted
Identifies the number of entries sent to clients since the server started.entriessent
Identifies the number of bytes sent to clients since the server started.bytessent
Identifies the time when this snapshot of the server was taken. The time is displayed in
Greenwich Mean Time (GMT) in UTC format.
currentime
Identifies the time when the server started. The time is displayed in Greenwich Mean
Time (GMT) in UTC format.
starttime
14.3 Monitoring server activity 521