Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » LDAP query - can I calculate the response time?
LDAP query - can I calculate the response time? [message #157139] Wed, 01 July 2009 04:49 Go to next message
Gonzo  is currently offline Gonzo  United Kingdom
Messages: 66
Registered: July 2009
Member
Hi,

I'm getting complaints that LDAP queries are slow, how can I test this? I
was wondered if there was a tool to help me.
Re: LDAP query - can I calculate the response time? [message #157140 is a reply to message #157139] Wed, 01 July 2009 04:57 Go to previous messageGo to next message
florian  is currently offline florian  Switzerland
Messages: 484
Registered: July 2009
Senior Member
Gonzo,

Gonzo wrote:
> I'm getting complaints that LDAP queries are slow, how can I test this?
> I was wondered if there was a tool to help me.

The easiest way to test LDAP-Queries is downloading ADFind from
joware.net. It fires LDAP queries to the directory services. There's a
switch you can use (-stats) that prints out query time and efficiency of
the query (in terms of index use).

A built-in method you can use is enabling Field Engineering logging at
HKLM\SYSTEM\CurrentControlSet\Services\Directory Services\Diagnostics\15
Field Engineering. Key "15 Field Engineering" - set it to 5 for testing.
It creates event log entries for LDAP searches then. I think the query
time should be included there.

Cheers,
Florian
Re: LDAP query - can I calculate the response time? [message #157141 is a reply to message #157139] Wed, 01 July 2009 05:05 Go to previous messageGo to next message
Syed Khairuddin  is currently offline Syed Khairuddin  Saudi Arabia
Messages: 77
Registered: June 2009
Member
Hello,

It actually depends what code you are using for quering LDAP and
what are you trieng to fetch from the query and also please see this
article http://support.microsoft.com/kb/951581
Re: LDAP query - can I calculate the response time? [message #157142 is a reply to message #157140] Wed, 01 July 2009 05:32 Go to previous messageGo to next message
Gonzo  is currently offline Gonzo  United Kingdom
Messages: 66
Registered: July 2009
Member
Thanks,

What would be a typical command then as I thought this would be a GUI tool?


"Florian Frommherz" <florian@frickelsoft.DELETETHIS.net> wrote in message
news:OMnfAoi%23JHA.4376@TK2MSFTNGP04.phx.gbl...
> Gonzo,
>
> Gonzo wrote:
>> I'm getting complaints that LDAP queries are slow, how can I test this?
>> I was wondered if there was a tool to help me.
>
> The easiest way to test LDAP-Queries is downloading ADFind from
> joware.net. It fires LDAP queries to the directory services. There's a
> switch you can use (-stats) that prints out query time and efficiency of
> the query (in terms of index use).
>
> A built-in method you can use is enabling Field Engineering logging at
> HKLM\SYSTEM\CurrentControlSet\Services\Directory Services\Diagnostics\15
> Field Engineering. Key "15 Field Engineering" - set it to 5 for testing.
> It creates event log entries for LDAP searches then. I think the query
> time should be included there.
>
> Cheers,
> Florian
Re: LDAP query - can I calculate the response time? [message #157143 is a reply to message #157142] Wed, 01 July 2009 05:37 Go to previous messageGo to next message
florian  is currently offline florian  Switzerland
Messages: 484
Registered: July 2009
Senior Member
Gonzo,

Gonzo wrote:
> What would be a typical command then as I thought this would be a
GUI tool?

Call it this way:

adfind -default -f "<your filter>" <attributes to return> -stats

For example:

adfind -default -f
" (&(objectClass=user)(objectCategory=person)(physicalDeli veryOfficeName=B*)) "
dn sAMAccountName physicalDeliveryOfficeName -stats
(all in one line).

Cheers,
Florian
Re: LDAP query - can I calculate the response time? [message #157144 is a reply to message #157143] Wed, 01 July 2009 05:59 Go to previous messageGo to next message
Gonzo  is currently offline Gonzo  United Kingdom
Messages: 66
Registered: July 2009
Member
Sorry my LDAP is a little rusty, should I need to change any of that example
to replect my domain?

Or simply copy and paste and run?

"Florian Frommherz" <florian@frickelsoft.DELETETHIS.net> wrote in message
news:uIYQf%23i%23JHA.3544@TK2MSFTNGP04.phx.gbl...
> Gonzo,
>
> Gonzo wrote:
> > What would be a typical command then as I thought this would be a GUI
> tool?
>
> Call it this way:
>
> adfind -default -f "<your filter>" <attributes to return> -stats
>
> For example:
>
> adfind -default -f
> " (&(objectClass=user)(objectCategory=person)(physicalDeli veryOfficeName=B*)) "
> dn sAMAccountName physicalDeliveryOfficeName -stats
> (all in one line).
>
> Cheers,
> Florian
Re: LDAP query - can I calculate the response time? [message #157146 is a reply to message #157144] Wed, 01 July 2009 07:03 Go to previous messageGo to next message
florian  is currently offline florian  Switzerland
Messages: 484
Registered: July 2009
Senior Member
Gonzo,

Gonzo wrote:
> Sorry my LDAP is a little rusty, should I need to change any of that
> example to replect my domain?

You should be able to copy and paste the example. The "default"
parameter tells ADfind to use the default domain (the domain the client
is currently in). You obviously need to change the LDAP filter to what
you need to investigate.

The commands and parameters are listed here:
http://www.joeware.net/freetools/tools/adfind/usage.htm

Cheers,
Florian
Re: LDAP query - can I calculate the response time? [message #157263 is a reply to message #157142] Fri, 03 July 2009 11:42 Go to previous messageGo to next message
BrianY  is currently offline BrianY
Messages: 1
Registered: July 2009
Junior Member
If you want a GUI tool, use LDP.exe and add in the STATS control before you
issue your query.
As previoulsy mentioned, ADFIND with the -STATS and the -SELAPSED switches
are good.

-Brian

"Gonzo" wrote:

> Thanks,
>
> What would be a typical command then as I thought this would be a GUI tool?
>
>
> "Florian Frommherz" <florian@frickelsoft.DELETETHIS.net> wrote in message
> news:OMnfAoi%23JHA.4376@TK2MSFTNGP04.phx.gbl...
> > Gonzo,
> >
> > Gonzo wrote:
> >> I'm getting complaints that LDAP queries are slow, how can I test this?
> >> I was wondered if there was a tool to help me.
> >
> > The easiest way to test LDAP-Queries is downloading ADFind from
> > joware.net. It fires LDAP queries to the directory services. There's a
> > switch you can use (-stats) that prints out query time and efficiency of
> > the query (in terms of index use).
> >
> > A built-in method you can use is enabling Field Engineering logging at
> > HKLM\SYSTEM\CurrentControlSet\Services\Directory Services\Diagnostics\15
> > Field Engineering. Key "15 Field Engineering" - set it to 5 for testing.
> > It creates event log entries for LDAP searches then. I think the query
> > time should be included there.
> >
> > Cheers,
> > Florian
>
>
Re: LDAP query - can I calculate the response time? [message #438880 is a reply to message #157139] Wed, 28 April 2010 11:55 Go to previous messageGo to next message
ericsully  is currently offline ericsully  United States
Messages: 1
Registered: April 2010
Junior Member
According to 'Network World'
( http://www.networkworld.com/community/node/45949#comment-244 254) there
is a free response time monitoring tool you can find at 'Response Time
Monitoring Tool' (http://www.real-user-monitoring.com)


--
ericsully
------------------------------------------------------------ ------------
ericsully's Profile: http://forums.techarena.in/members/214298.htm
View this thread: http://forums.techarena.in/active-directory/1206129.htm

http://forums.techarena.in
Re: LDAP query - can I calculate the response time? [message #439239 is a reply to message #438880] Thu, 29 April 2010 01:05 Go to previous message
Florian Frommherz  is currently offline Florian Frommherz  Germany
Messages: 86
Registered: February 2010
Member
Howdie!

Am 28.04.2010 17:55, schrieb ericsully:
> According to 'Network World'
> ( http://www.networkworld.com/community/node/45949#comment-244 254) there
> is a free response time monitoring tool you can find at 'Response Time
> Monitoring Tool' (http://www.real-user-monitoring.com)

I cannot see the original posting as your response got send to the
public newsgroups without a quoting or anything. From the head line of
this topic, let me add that there is a STATS-control in LDAP you can
call and use. The LDAP server will reply with the search results as well
as the statistics on how long it had to search, what the search filter
looked like (expanded) and the index it used for searching.

You can enable the stats-control in LDAP's options or with the +stats
command in ADFind.

Cheers,
Florian
Previous Topic:Using NTDSUTIL to edit ntds.dit on seperate install
Next Topic:Resetting Passwords
Goto Forum:
  


Current Time: Fri Oct 20 03:06:39 EDT 2017

Total time taken to generate the page: 0.06000 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software