I’m trying to pull all the Cluster Names in the domain using a VBScript. I have seen this reference to the Cluster Automation Server on MSDN:
It looks like I should be able to do this with something similar to this (which of course doesn’t work). I am running this on the Cluster server:
~~~~~~
Set objCluster = CreateObject("MSCluster.ClusApplication")
set objClust2 = objCluster.ClusterNames("acme.local")
For Each objClust In objClust2
WScript.Echo objClust.Item
Next
I have this script that works to pull the active node from a group so I think I’m on the right track:
Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open("sql1t")
WScript.Echo objCluster.ResourceGroups.Item("Cluster Group").OwnerNode.Name
Set objCluster = Nothing
TIA
It looks like I should be able to do this with something similar to this (which of course doesn’t work). I am running this on the Cluster server:
~~~~~~
Set objCluster = CreateObject("MSCluster.ClusApplication")
set objClust2 = objCluster.ClusterNames("acme.local")
For Each objClust In objClust2
WScript.Echo objClust.Item
Next
I have this script that works to pull the active node from a group so I think I’m on the right track:
Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open("sql1t")
WScript.Echo objCluster.ResourceGroups.Item("Cluster Group").OwnerNode.Name
Set objCluster = Nothing
TIA