AD_ServerHealth event: The specified domain either doesnt exist or could not be contacted. (0x54B) (NETIQKB73085)

  • 7773085
  • 05-Jul-2011
  • 12-Jul-2011

Environment

NetIQ AppManager 6.x
NetIQ AppManager 7.0.x

Situation

The AD_ServerHealth KS will show the following event when trying to contact a domain controller when a trust is down.
AD_ServerHealth event: The specified domain either doesnt exist or could not be contacted. (0x54B)

Resolution

This message is seen because there is a trust failing within the Active Directory infrastructure. You can use the following peice of code to help ennumerate the status of the trust. This is a similar method to what we are using within the Server Health KS. This status should help the domain team to determine the casue of the failure.

strComputer = "."
  
Set objWMI = GetObject("winmgmts:\\" & strComputer & _
                       "\root\MicrosoftActiveDirectory")
Set objTrusts = objWMI.ExecQuery("Select * from Microsoft_DomainTrustStatus")
  
for each objTrust in objTrusts
    Wscript.Echo objTrust.TrustedDomain
    Wscript.Echo " TrustedAttributes: " & objTrust.TrustAttributes
    Wscript.Echo " TrustedDCName: "     & objTrust.TrustedDCName
    Wscript.Echo " TrustedDirection: "  & objTrust.TrustDirection
    Wscript.Echo " TrustIsOk: "         & objTrust.TrustIsOK
    Wscript.Echo " TrustStatus: "       & objTrust.TrustStatus
    Wscript.Echo " TrustStatusString: " & objTrust.TrustStatusString
    Wscript.Echo " TrustType: "         & objTrust.TrustType
    Wscript.Echo ""
next

Sources: http://etutorials.org/Server+Administration/Active+directory/Part+III+Scripting+Active+Directory+with+ADSI+ADO+and+WMI/Chapter+26.+Scripting+with+WMI/26.8+Monitoring+Trusts/
http://msdn.microsoft.com/en-us/library/Aa393921

Correcting the broken Trust issue should allow the AD_ServerHealth KS to function properly going forward.

Additional Information

Formerly known as NETIQKB73085