📄 monitoringslapd.sdf
字号:
# $OpenLDAP: pkg/openldap-guide/admin/monitoringslapd.sdf,v 1.8.2.2 2007/01/02 21:43:43 kurt Exp $# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: Monitoring SlapdSlapd supports a monitoring interface you can use to find outmany useful bits of information about what slapd is currentlydoing, how many connections it has, how many threads areworking, etc. You can access the monitor feature by doing abase object search of the SLAPD_MONITOR_DN frominclude/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 followingattributes:E: version: slapd <version> (<date>)This attribute identifies the slapd server software by name,version, and build date, e.g., {{EX: slapd 3.3 (Thu May 21 14:19:03EDT 1996)}}E: threads: <integer>This attribute indicates the number of threads (operations)currently outstanding in slapd.E: connection: <fd> : <opentime> : <opsinitiated> :E: <opscompleted> : <binddn> : [ <rw> ]This multi-valued attribute summarizes information for eachopen connection. The information given is {{EX: <fd>}}, the filedescriptor; {{EX: <opentime>}}, the time the connection was openedin UTC format; {{EX: <opsinitiated>}}, the number of operationsinitiated over the connection; {{EX: <opscompleted>}}, the numberof operations completed over the connection; {{EX: <binddn>}}, theDN currently bound to the connection; and optionally {{EX: <rw>}},indicating whether the connection is currently blocked forread or write..E: currentconnections: <integer>The current number of connections.E: totalconnections: <integer>The total number of connections handled by slapd since itstarted.E: dtablesize: <integer>The size of slapd's file descriptor table.E: writewaiters: <integer>The number of threads blocked waiting to write data to aclient.E: readwaiters: <integer>The number of threads blocked waiting to read data from aclient.E: opsinitiated: <integer>The total number of operations initiated by slapd since itstarted.E: opscompleted: <integer>The total number of operations completed by slapd since itstarted.E: entriessent: <integer>The total number of entries sent to clients by slapd since itstarted.E: bytessent: <integer>The total number of bytes sent to clients by slapd since itstarted.E: currenttime: <UTC time>Slapd's idea of the current time.E: starttime: <integer>The time slapd was started.E: nbackends: <integer>The number of backends currently being served by slapd.E: concurrency: <integer>Under Solaris 2.x only, an indication of the current level ofthread concurrency.Note that slapd takes a snapshot of this information andreturns it to you. No attempt is made to ensure that theinformation is consistent (i.e., if an operation thread ismodifying one of these things when the monitor thread isreading it, strange results could be returned).You should be able to use any LDAP client to retrieve thisinformation. Here's how you might do it using the{{I: ldapsearch}}(1) client:E: ldapsearch -x -s base -b cn=monitor 'objectclass=*'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -