This is a quick way to get some basic System information that tells the story of your LDAP system usage. Just use the “ldapsearch” utility with the search base set to one of the below tree structures to get the statistical data.

GET ALL THE DATA (There is a lot!!)

> ldapsearch -h localhost -p 4444 -D "cn=dirmanager" -w 'youldapadminpassword' --useSSL -X -b cn=monitor "(objectclass=*)"

OR JUST GET WHAT YOU NEED!

> ldapsearch -h localhost -p 4444 -D "cn=dirmanager" -w 'youldapadminpassword' --useSSL -X  -b  "cn=LDAP Connection Handler 0.0.0.0 port 1389 Statistics,cn=monitor" "(objectclass=*)"
dn: cn=LDAP Connection Handler 0.0.0.0 port 1389 Statistics,cn=monitor
bindResponses: 11
ds-mon-failed-entry-exists-add-operations-total-count: 0
ds-mon-mod-operations-total-count: 0
bindRequests: 11
ds-mon-failed-no-such-entry-search-operations-total-count: 2
ds-mon-failed-no-such-entry-extended-operations-total-count: 0
ds-mon-add-operations-total-count: 0
ds-mon-abandon-operations-total-count: 0
dn: cn=System Information,cn=monitor
availableCPUs: 4
jvmArguments: "-Xms1032m" "-Xmx1032m" "-XX:+UseCompressedOops" "-XX:MaxTenuringT
hreshold=1" "-XX:+UseConcMarkSweepGC" "-XX:CMSInitiatingOccupancyFraction=55" "
-Dorg.opends.server.scriptName=start-ds"
jvmArchitecture: 64-bit
operatingSystem: Linux 2.6.32-042stab141.3 amd64
systemName: server.btechservices.com
javaVersion: 1.8.0_241
jvmVersion: 25.241-b07
instancePath: /home/oracle/OUD/btechinst1/OUD
javaHome: /usr/java/jdk1.8.0_241/jre
maxMemory: 1047265280
freeUsedMemory: 803775360
javaVendor: Oracle Corporation
cn: System Information
jvmVendor: Oracle Corporation
objectClass: top
objectClass: ds-monitor-entry
objectClass: extensibleObject
installPath: /home/oracle/OHOME/oud
classPath: /home/oracle/OUD/btechinst1/OUD/classes:/home/oracle/OHOME/oud/winlib
/classpath.jar:/home/oracle/OUD/btechinst1/OUD/lib/*.jar
workingDirectory: /opt/oracle/scripts
usedMemory: 1047265280
dn: cn=JVM Memory Usage,cn=monitor
code-cache-bytes-used-after-last-collection: 0
compressed-class-space-bytes-used-after-last-collection: 0
par-survivor-space-current-bytes-used: 20515464
metaspace-current-bytes-used: 48198976
par-new-average-collection-duration: 128
compressed-class-space-current-bytes-used: 5317528
concurrent-mark-sweep-total-collection-duration: 56
par-new-recent-collection-duration: 33
concurrent-mark-sweep-total-collection-count: 1
par-eden-space-bytes-used-after-last-collection: 0
cms-old-gen-current-bytes-used: 62888960
par-eden-space-current-bytes-used: 160085496
cn: JVM Memory Usage
metaspace-bytes-used-after-last-collection: 0
concurrent-mark-sweep-recent-collection-duration: 56
concurrent-mark-sweep-average-collection-duration: 56
objectClass: top
objectClass: ds-monitor-entry
objectClass: extensibleObject
par-new-total-collection-count: 3
par-new-total-collection-duration: 385
code-cache-current-bytes-used: 16286336
par-survivor-space-bytes-used-after-last-collection: 20515464
cms-old-gen-bytes-used-after-last-collection: 8351808
dn: cn=Entry Caches,cn=monitor
entryCacheHits: 0
entryCacheHitRatio: 0
entryCacheTries: 111
currentEntryCacheCount: 0
cn: Entry Caches
objectClass: top
objectClass: ds-monitor-entry
objectClass: extensibleObject
dn: cn=Work Queue,cn=monitor
cn: Work Queue
currentRequestBacklog: 0
objectClass: top
objectClass: ds-monitor-entry
objectClass: extensibleObject
requestsSubmitted: 50
averageRequestBacklog: 0
requestsRejectedDueToQueueFull: 0
maxRequestBacklog: 0
dn: cn=LDAP Administration Connector 0.0.0.0 port 4444 Statistics,cn=monitor
bindResponses: 1
ds-mon-failed-entry-exists-add-operations-total-count: 0
ds-mon-mod-operations-total-count: 0
bindRequests: 1
ds-mon-failed-no-such-entry-search-operations-total-count: 0
ds-mon-failed-no-such-entry-extended-operations-total-count: 0
ds-mon-add-operations-total-count: 0
ds-mon-abandon-operations-total-count: 0
ds-mon-outliers: [20/Jan/2020:21:32:31 +0000] BIND OP conn=13 op=0 msgID=1 from=
127.0.0.1:51222 to=127.0.0.1:4444 type=SIMPLE dn="cn=dirmgr" version=3 controls
="" result=0 authDN="cn=Directory Manager,cn=Root DNs,cn=config" controls="" qt
ime=0 etime=2
ds-mon-failed-other-extended-operations-total-count: 0
ds-mon-failed-no-such-entry-compare-operations-total-count: 0
ds-mon-resident-time-mod-operations-total-time: 0
ds-mon-resident-time-unbind-operations-total-time: 0
ds-mon-resident-time-moddn-operations-total-time: 0
ds-mon-failed-mod-operations-total-count : 0
ds-mon-extended-operations-total-count: 0
ds-mon-failed-add-operations-total-count: 0
ds-mon-failed-insufficient-access-rights-compare-operations-total-count: 0
deleteRequests: 0
ds-mon-search-operations-total-count: 0
ds-mon-failed-wrong-user-bind-operations-total-count: 0
ds-mon-failed-no-such-attribute-mod-operations-total-count: 0
ds-mon-resident-time-search-operations-total-time: 0
ds-mon-failed-unwilling-to-perform-add-operations-total-count: 0
ds-mon-failed-delete-operations-total-count : 0
searchResultsDone: 0
ds-mon-moddn-operations-total-count: 0
ds-mon-failed-no-such-entry-delete-operations-total-count: 0
ds-mon-failed-insufficient-access-rights-moddn-operations-total-count: 0
ds-mon-resident-time-add-operations-total-time: 0
ds-mon-unbind-operations-total-count: 0
compareRequests: 0
ds-mon-failed-unwilling-to-perform-delete-operations-total-count: 0
deleteResponses: 0
ds-mon-failed-other-delete-operations-total-count: 0
ds-mon-failed-extended-operations-total-count : 0
bytesWritten: 4096
ds-mon-failed-other-mod-operations-total-count: 0
unbindRequests: 0
ds-mon-bind-operations-total-count: 1
ds-mon-failed-insufficient-access-rights-mod-operations-total-count: 0
modifyDNResponses: 0
ds-mon-failed-other-moddn-operations-total-count: 0
extendedResponses: 0
ds-mon-failed-other-add-operations-total-count: 0
ds-mon-failed-search-operations-total-count : 0
ds-mon-failed-other-search-operations-total-count: 0
ds-mon-failed-bind-operations-total-count: 0
compareResponses: 0
ds-mon-compare-operations-total-count: 0
operationsCompleted: 1
ds-mon-resident-time-compare-operations-total-time: 0
operationsInitiated: 2
addResponses: 0
searchRequests: 1
modifyRequests: 0
searchResultEntries: 0
ds-mon-failed-insufficient-access-rights-add-operations-total-count: 0
ds-mon-failed-unwilling-to-perform-moddn-operations-total-count: 0
ds-mon-resident-time-bind-operations-total-time: 2
ds-mon-resident-time-extended-operations-total-time: 0
bytesRead: 0
ds-mon-failed-insufficient-access-rights-extended-operations-total-count: 0
ds-mon-failed-compare-operations-total-count : 0
connectionsClosed: 1
searchResultReferences: 0
ds-mon-resident-time-delete-operations-total-time: 0
connectionsEstablished: 2
modifyDNRequests: 0
ldapMessagesRead: 2
ds-mon-failed-no-such-entry-mod-operations-total-count: 0
ds-mon-failed-unwilling-to-perform-extended-operations-total-count: 0
operationsAbandoned: 0
ds-mon-resident-time-abandon-operations-total-time: 0
ds-mon-failed-unwilling-to-perform-mod-operations-total-count: 0
ldapMessagesWritten: 1
ds-mon-delete-operations-total-count: 0
extendedRequests: 0
ds-mon-failed-authentication-denied-search-operations-total-count: 0
ds-mon-failed-other-compare-operations-total-count: 0
abandonRequests: 0
operationsUnsuccessful: 0
modifyResponses: 0
cn: LDAP Administration Connector 0.0.0.0 port 4444 Statistics
ds-mon-failed-insufficient-access-rights-search-operations-total-count: 0
objectClass: top
objectClass: ds-monitor-entry
objectClass: extensibleObject
ds-mon-failed-other-bind-operations-total-count: 0
ds-mon-failed-insufficient-access-rights-delete-operations-total-count: 0
ds-mon-failed-moddn-operations-total-count : 0
ds-mon-failed-unwilling-to-perform-compare-operations-total-count: 0
ds-mon-failed-authentication-denied-extended-operations-total-count: 0
addRequests: 0
ds-mon-failed-wrong-pwd-bind-operations-total-count: 0

Loading

Categories:

No responses yet

Leave a Reply