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

Efficient way to count number of entries in a database?



Hi,

is there a more efficient way to count how many entries a ldap database has than

slapcat -b <suffix> | grep ^dn: | wc -l

I searched the cn=Monitor backend but it does not seem to export this number.

I want to have this for graphing and reporting and as a secondary data point that replication is working as intended.

BR
Karsten