Symantec Access Management

  • 1.  Count Number of entries present in dsa

    Posted Jul 23, 2015 02:00 PM

    With CA directory as user-store, i want to count the total number of user data entry present in a given dsa, Please suggest how it can be accomplished.

     

    Thanks in advance,

    Ankush



  • 2.  Re: Count Number of entries present in dsa

    Broadcom Employee
    Posted Jul 24, 2015 02:44 AM

    Hi Ankush,

     

    Can you please elaborate your query more?

    Would you like to list the contents of a DSA?

     

    Thanks,

    Reatesh.



  • 3.  Re: Count Number of entries present in dsa

    Posted Jul 24, 2015 04:54 AM

    Hi Ankush,


    You can run ldapsearch command to get number of user entries in CA Directory.

     

    for example: ldapsearch.exe -D "uid=admin,ou=people,dc=example,dc=com" -w test -h <hostname> -p 1234 -b "dc=example,dc=example" "uid=*" ldapentrycount

     

     

    where -D = admin user to contact ldap

    -w = password of admin user

    -h= hostname of ldap

    -p=port of ldap

    -b= bind DN



  • 4.  Re: Count Number of entries present in dsa

    Posted Jul 24, 2015 05:04 AM

    Hi Ankush,

     

    As already suggested by Lavanya in the previous comment, CA Directory provides a special entry information selector dxEntryCount to count entries.

     

    For a good description, please take a look at our wiki here: Counting Entries - CA Directory - 12.0.14 - CA Wiki

     

    Hope it helps,

    Roberto



  • 5.  Re: Count Number of entries present in dsa

    Broadcom Employee
    Posted Jul 28, 2015 06:21 AM

    Hi Ankush,

     

    You can as well use DXAdmin, if it is still shipped.

     

    Thanks,

    Reatesh.



  • 6.  Re: Count Number of entries present in dsa

    Broadcom Employee
    Posted Jul 31, 2015 01:38 PM

    Ankush,

     

    As suggested by Lavanya and Roberto, you can certainly use ldapsearch. If you do not have openLDAP tools installed and available to you, one can certainly use 'dxsearch' command line utility that ships with CA Directory product.

    Another option to quickly check "how many number of entries" you have in a particular DSA is to connect to DXconsole and execute 'get cache;'.

     

    At the end of the output you will something like:

     

    dxgrid-db-size = 500000000

    Used bytes in file = 282522

    Reclaimable bytes = 98

    Total number of entries = 1382   <= This line in the output

    disable-transaction-log = false

    disable-transaction-log-flush = false

     

    Thanks,

    Hitesh