Discussion:
Querying Cluster IP Address using WMI
(too old to reply)
newbie2
2008-11-24 18:36:09 UTC
Permalink
I can view a cluster IP Address manually:
Launch Cluster Administrator.
1. Right-click on the Resource: Cluster IP Address - [Cluster name]
2. Select Property.
3. At Parameters table, it shows the Address.

But how do I do this using WMI. I want to supply a cluster name, and have
WMI return the Cluster IP Address info.

I tried several ways, using MSCluster_ClusterToNetwork and
MSCluster_ClusterToNetworkInterface. It seems they returned the IP addresses
for individual nodes, not the cluster itself.
Marcin
2008-11-26 00:38:03 UTC
Permalink
You should be able to extract this info from the cluster registry hive on
any of the nodes (use \\root\default:StdRegProv). You can find the actual
code at
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/0dd7ca40-af0a-4d42-9a8e-d81a8ad86330/

hth
Marcin
Post by newbie2
Launch Cluster Administrator.
1. Right-click on the Resource: Cluster IP Address - [Cluster name]
2. Select Property.
3. At Parameters table, it shows the Address.
But how do I do this using WMI. I want to supply a cluster name, and have
WMI return the Cluster IP Address info.
I tried several ways, using MSCluster_ClusterToNetwork and
MSCluster_ClusterToNetworkInterface. It seems they returned the IP addresses
for individual nodes, not the cluster itself.
newbie2
2008-11-27 00:04:00 UTC
Permalink
I figured it out. In the MSCluster_Resource, get the collection of
PrivateProprties, which is part of MSCluster_Property object. Then I can loop
through each name and value to get IP address for the cluster. Just need to
beware to get PrivateProperties.Properties_.
Post by Marcin
You should be able to extract this info from the cluster registry hive on
any of the nodes (use \\root\default:StdRegProv). You can find the actual
code at
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/0dd7ca40-af0a-4d42-9a8e-d81a8ad86330/
hth
Marcin
Post by newbie2
Launch Cluster Administrator.
1. Right-click on the Resource: Cluster IP Address - [Cluster name]
2. Select Property.
3. At Parameters table, it shows the Address.
But how do I do this using WMI. I want to supply a cluster name, and have
WMI return the Cluster IP Address info.
I tried several ways, using MSCluster_ClusterToNetwork and
MSCluster_ClusterToNetworkInterface. It seems they returned the IP addresses
for individual nodes, not the cluster itself.
Loading...