Active Directory agent shuts down due to too short timeout period for WMI query
The root cause is the default timeout of this WQLQuery is too short, and this query does not overwrite the default timeout, need to set longer timeout.
The default timeout is only 1000 milliseconds. if the network is not very fast, it will encounter a socket timeout
http://foglightcarts.farm.local/svn/ad/branches/5.5.8/ad-agent/src/com/quest/agent/ad/command/TreeCommand.java
public TreeCommand(AgentDomain domain) throws Exception {
super(domain);
WQLQuery query = new WQLQuery();
query.setContext(WmiProvider.MSAD.getResourceUri());
query.setQueryString("SELECT TreeName FROM Microsoft_LocalDomainInfo");
addQuery(query);
}
http://foglightcarts.farm.local/svn/commons/branches/5.5.8/data-service/src/com/quest/agent/servicedef/WQLQuery.java
public WQLQuery() {
super();
}
http://foglightcarts.farm.local/svn/commons/branches/5.5.8/data-service/src/com/quest/agent/servicedef/Query.java
private int timeout = 1000;
>!]
Defect ID AD-150 has been logged and will be evaluated for future Release.
The issue has been fixed in version 5.5.8.1 of Active Directory cartridge
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center