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

Re: Entry count.



Issue a search requesting all entries you want to count and then
count them.  You can avoid having attributes returned by request return
of the attribute description "1.1".

For example,
  ldapsearch -x -LLL -b "dc=example,dc=com" -s one 1.1 | grep ^dn: | wc -l



At 01:27 PM 2/16/01 +0100, Carles Xavier Munyoz Baldó wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>
>Hello,
>How can I obtain a quick count of the number of entries in one level of my
>DIT (Directory Information Tree) ?
>
>Thanks in advance for the help.
>---
>Carles Xavier Munyoz Baldó / cmunyoz@es.wanadoo.com
>---
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 5.0i for non-commercial use
>MessageID: 266G/tnLbteojXUGlLo9zEDnuN1C98HN
>
>iQA/AwUAOo0cmBAGkoZz8//aEQJ+FQCg+6p46jMScKttDYBG8RZD/OEGr9kAn0y4
>YOCm8c6l/LBuYR2DVTvcyNXK
>=NeTi
>-----END PGP SIGNATURE-----