Querying Cluster IP Address using WMI

Discussion in 'Clustering' started by newbie2, Nov 24, 2008.

  1. newbie2

    newbie2 Guest

    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.
    newbie2, Nov 24, 2008
    1. Advertisements

  2. newbie2

    Marcin Guest

    Marcin, Nov 26, 2008
    1. Advertisements

  3. newbie2

    newbie2 Guest

    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_.

    newbie2, Nov 27, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.