# $OpenLDAP$ # Copyright 1999-2006 The OpenLDAP Foundation, All Rights Reserved. # COPYING RESTRICTIONS APPLY, see COPYRIGHT. H1: Monitoring Slapd Slapd supports a monitoring interface you can use to find out many useful bits of information about what slapd is currently doing, how many connections it has, how many threads are working, etc. You can access the monitor feature by doing a base object search of the SLAPD_MONITOR_DN from include/ldapconfig.h with any kind of valid filter (e.g., "(objectclass=*)"). By default, this DN is set to "cn=monitor". You will get one entry returned to you, with the following attributes: E: version: slapd () This attribute identifies the slapd server software by name, version, and build date, e.g., {{EX: slapd 3.3 (Thu May 21 14:19:03 EDT 1996)}} E: threads: This attribute indicates the number of threads (operations) currently outstanding in slapd. E: connection: : : : E: : : [ ] This multi-valued attribute summarizes information for each open connection. The information given is {{EX: }}, the file descriptor; {{EX: }}, the time the connection was opened in UTC format; {{EX: }}, the number of operations initiated over the connection; {{EX: }}, the number of operations completed over the connection; {{EX: }}, the DN currently bound to the connection; and optionally {{EX: }}, indicating whether the connection is currently blocked for read or write.. E: currentconnections: The current number of connections. E: totalconnections: The total number of connections handled by slapd since it started. E: dtablesize: The size of slapd's file descriptor table. E: writewaiters: The number of threads blocked waiting to write data to a client. E: readwaiters: The number of threads blocked waiting to read data from a client. E: opsinitiated: The total number of operations initiated by slapd since it started. E: opscompleted: The total number of operations completed by slapd since it started. E: entriessent: The total number of entries sent to clients by slapd since it started. E: bytessent: The total number of bytes sent to clients by slapd since it started. E: currenttime: Slapd's idea of the current time. E: starttime: The time slapd was started. E: nbackends: The number of backends currently being served by slapd. E: concurrency: Under Solaris 2.x only, an indication of the current level of thread concurrency. Note that slapd takes a snapshot of this information and returns it to you. No attempt is made to ensure that the information is consistent (i.e., if an operation thread is modifying one of these things when the monitor thread is reading it, strange results could be returned). You should be able to use any LDAP client to retrieve this information. Here's how you might do it using the {{I: ldapsearch}}(1) client: E: ldapsearch -x -s base -b cn=monitor 'objectclass=*'