[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: syntax for monitor

Here's a sample command that do work on my 2.2.20 openldap server:

$ /usr/local/openldap-2.2.20-1/bin/ldapsearch -x -b "cn=total,cn=connections,cn=monitor" -D "cn=admin,dc=int-evry,dc=fr" monitorCounter -W -LLL
Enter LDAP Password:
dn: cn=Total,cn=Connections,cn=Monitor
monitorCounter: 4

Or if you want all attribute add "+"

$ /usr/local/openldap-2.2.20-1/bin/ldapsearch -x -b "cn=total,cn=connections,cn=monitor" -D "cn=admin,dc=int-evry,dc=fr" + -W -LLL
Enter LDAP Password:
dn: cn=Total,cn=Connections,cn=Monitor
structuralObjectClass: monitorCounterObject
createTimestamp: 20050415091301Z
modifyTimestamp: 20050415091301Z
monitorCounter: 5
subschemaSubentry: cn=Subschema
hasSubordinates: FALSE

I hope that it helps ...

Kevin wrote:

Hello Everyone,

I am planning around with open ldap 2.2.13 running on a redhat 4 es machine
and I am trying to retrieve stats via the database monitor to find out about
the number of searches.

I have configured inside slapd.conf the entry "database monitor"

I am running the following command but no receiving any results, is there
something I may need to add?

ldapsearch -x -b "cn=Search,cn=Operations,cn=Monitor" -D
"cn=Manager,dc=clunet,dc=edu" -W -LLL

Thank you for assistance,

Kevin Appel