Looking up the Active Directory path name information?
How does TEM look up the Active Directory path name information?
The TEM Agent will periodically query the local system to look up the Active Directory path name information (the local system usually has this information cached and the TEM Agent will not query the Active Directory servers directly). As a precaution against a case in which the TEM Agents might cause excessive load on Active Directory servers, the TEM Agents will only attempt to request the Active Directory path name information from the local system every 12 hours and the agent will cache the results. In the event that the TEM Agent is unable to get any Active Directory result, it will retry up to once every minute for five tries, and then retry once every hour. Also note that the TEM Agent will query the local system for this information every time the agent is restarted.
TEM expects the load on Active Directory servers created by the Active Directory path name lookup to be negligible for the following reasons:
- The TEM Agent queries the local system (not the AD servers).
- In the event that the TEM Agent triggers the system to hit the AD server for info, the request is simple and should require minimal CPU/network load.
- The TEM Agent queries for AD info are very infrequent.
Here is a VBScript fragment that uses the same mechanism to query the Active Directory pathname info that the TEM Agent uses. You can copy this code into a .vbs file on a Windows system that is part of a domain, and it should return the same information using the same Windows APIs that the TEM Agent uses:
snbdom="DOMAINNAME" 'Put your domain name here
snode="COMPUTERNAME" 'Put your computer name here
.set 3,snbdom & "\" & snode & "$"
See also: Why isn't the Active Directory property updating Here