Resolved from core fix pack 2 IBM Tivoli Netcool/OMNIbus, Version 7.4

Calculating LDAP search times

You can calculate the time that it takes for an LDAP search to complete by comparing debug message timestamps in the ObjectServer log file. You can use the log entries to see how long individual searches take and to optimize the order of the searches in your queries.

Procedure

  1. Set the ObjectServer message level to debug.
  2. Log in to the ObjectServer. If you are already logged into the ObjectServer, log out and log back in again.

    This action is necessary to start the LDAP authentication process.

  3. Locate the following debug message entries in the ObjectServer log file:
    2013-01-04T16:57:34: Debug: D-ALD-105-005: About to issue LDAP search with filter '(cn=User Three)'
    2013-01-04T16:57:34: Debug: D-ALD-105-004: LDAP search on user 'User Three' returned distinguished name 'uid=123456,c=gb,ou=someplace,o=ibm.com'

    The difference between the timestamps gives the number of seconds it took to run the LDAP search. In this case, because the timestamps are the same, the search took less than one second.

Example

In the following log file extract, multiple distinguished names were specified for the search.

2013-02-07T09:20:25: Debug: D-AUT-105-005: About to issue LDAP search with filter '(cn=User Five)' and base dn 'ou=Webtop,ou=Tivoli,ou=SWG,o=ibm'
2013-02-07T09:20:25: Debug: D-AUT-102-006: No LDAP user found with base dn 'ou=Webtop,ou=Tivoli,ou=SWG,o=ibm' and filter '(cn=User Five)'
2013-02-07T09:20:25: Debug: D-AUT-105-005: About to issue LDAP search with filter '(cn=User Five)' and base dn 'ou=OMNIbus,ou=Tivoli,ou=SWG,o=ibm'
2013-02-07T09:20:25: Debug: D-AUT-105-004: LDAP search on user 'User Five' returned distinguished name 'cn=User Five,ou=OMNIbus,ou=Tivoli,ou=SWG,o=ibm'

The ObjectServer searched for the user name User Five, as specified by the LDAPSearchFilter property in the LDAP properties file. The base distinguished name for the search, as specified by the LDAPSearchBase property, was ou=Webtop,ou=Tivoli,ou=SWG,o=ibm;;ou=OMNIbus,ou=Tivoli,ou=SWG,o=ibm. The ObjectServer searched for each distinguished name in the order given. The search on the Webtop base distinguished name failed.

The total search time is the difference between the timestamps of the first and last log entries (in this case, less than one second). The difference between the timestamps of the first and second log entries gives the time taken for the failed Webtop search.



Feedback