Ben,
The solution mentioned below does not use .Net but I thought it might help
you getting started. Hope this helps.
I assume by "active node" you meant the node that is hosting the group
containing your resource like Exchange or SQL.
Check out "Cluster Automation Server" documentaion at
http://msdn.microsoft.com/library/de...ion_server.asp.
Simple VBScript similar to the one below should give you the owner node. You
will have to replace "YourClusterName" and "YourGroupNameContaingResources"
appropriately.
Dim objCluster
Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open("YourClusterName")
WScript.Echo
objCluster.ResourceGroups.Item("YourGroupNameConta ingResources").OwnerNode.N
ame
Set objCluster = Nothing
Alternatively, you can use cluster.exe as well to find out which node owns
the group
cluster.exe <YourClusterName> group <YourGroupNameContaingResources> /status
--
Regards,
Shon Shah
Software Test Engineer
Microsoft Cluster Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples, if any, are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm
"ben" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
Is there a way to determine the currently active node in a cluster? I
would prefer to use .Net to determine which node is currently active.
|
Anybody have any insight into this? I think I could do this with WMI on
Windows Server 2003, but I need to get this information for Win2k.