There's a cluster instance type on each host instance in WMI, and there are two possible types -- clustered and clustered virtual. I wonder if WMI is returning three objects for these two host instances: one for 333, one for 334 and one virtual. Maybe the script is actually restarting a virtual instance.
Can you run this script with cscript.exe and send back all output for BiDiClusteredHost_MSMQ?
Tom
Can you run this script with cscript.exe and send back all output for BiDiClusteredHost_MSMQ?
Const HostNotClustered = 0
Const HostIsClustered = 1
Const HostIsClusteredVirtual = 2
Call PrintHIInfo()
WScript.Quit 0
Sub PrintHIInfo()
set objWMIService = GetObject("winmgmts://./root/MicrosoftBizTalkServer")
set colHostInstances = objWMIService.ExecQuery("Select * from MSBTS_HostInstance Where HostType=1 And IsDisabled=False ")
If (colHostInstances.Count > 0) Then
For Each objHostInstance In colHostInstances
If (objHostInstance.ClusterInstanceType = HostNotClustered) Then
Wscript.Echo objHostInstance.HostName & " on " & objHostInstance.RunningServer & " -- not clustered"
ElseIf (objHostInstance.ClusterInstanceType = HostIsClustered) Then
Wscript.Echo objHostInstance.HostName & " -- is clustered"
ElseIf (objHostInstance.ClusterInstanceType = HostIsClusteredVirtual) Then
Wscript.Echo objHostInstance.HostName & " -- is clustered (Virtual)"
End If
Next
End If
End Sub
Thanks,Tom