Re: Through cluster API's how to get EVS IP address and RESOURCE "TYPE" value?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Try posting in microsoft.public.exchange.development

--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
www.exchangepedia.com/blog
----------------------------------------------


"shivaraj" <shivaraj.malannavar@xxxxxxxxx> wrote in message
news:1169213957.342885.82960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

Question : Through cluster API's how to get EVS IP address and RESOURCE
"TYPE" value?

I am trying to get EVS ( exchagne virtual server ) inforamtion using
cluster API's. The flow is somewhat like this.

1. get computer name using "GetComputerName"
2. use "OpenCluster" using this computer name and get a handle to the
cluster
3. call "ClusterOpenEnum" by passing CLUSTER_ENUM_GROUP to open
enumrator on groups
4. call "ClusterEnum" to emumerate through the objects and to get the
name of the group
5. call "OpenClusterGroup" for the specific group and get the group
handle.
6. call "ClusterGroupOpenEnum" by passing CLUSTER_GROUP_ENUM_CONTAINS
to get enumerator for this.
7. call "ClusterGroupEnum" to enumerate through this group and get name
of the resources.
8. call "OpenClusterResource" to open a resource and to get handle to
it.
9. call "ClusterResourceOpenEnum" to open an enumerator for iterating
through this resource's dependencies and nodes
10. use "ClusterResourceEnum" to enumerates a resource's dependent
resources

After this if i print the name returned, I am able to get Possible
Owners for each resource. ( There are two nodes in my Exchange Virtual
server. So i am getting both node names for all resources under this
group. )

My question is under a Group --> resource type "IP Address" if i right
click -->properties --> Parameters I can get EVS ip as "Address". How
can i get this property ( EVS IP address ) for "IP Address" type
resource? Is there any API available to get this info ? I tried getting
this from cluster.exe tool. The command look like below :

C:\>cluster.exe RES "reva IP Address" /PRIV
T Resource Name Value
-- -------------------- ------------------------------
-----------------------
S reva IP Address Network public
S reva IP Address Address 16.180.204.139
S reva IP Address SubnetMask 255.255.254.0
D reva IP Address EnableNetBIOS 1 (0x1)
D reva IP Address OverrideAddressMatch 0 (0x0)

Address "16.180.204.139" is the one which I am interested in.
So could any one please tell me how can i get this value using API's?
Is there any simple approach than what I am using above ? And one more
query is, through these API's I am able to get name of a resource not
its TYPE. How to get that?

Here with I am giving my sample code which will illustrate the first 10
steps.
------------------------------------------------------------------------
If any body interested to have a look at my code , please let me know
so that I can post that to group.

Regards,
Shivaraj



.



Relevant Pages

  • RE: SQL Server Cluster and MSDTC
    ... Microsoft only supports running MSDTC on cluster nodes as a clustered ... Using MSDTC as a non-clustered resource on a Windows cluster is ... DD - SQL server 2005 ...
    (microsoft.public.sqlserver.clustering)
  • Re: Fulltext failure on a 2 node cluster
    ... No cluster resource for that cluster has shown as failed. ... There are NO error messages in SQL Server or the event log. ... Server full-text search resource online: ...
    (microsoft.public.sqlserver.clustering)
  • Re: How would you configure an N+1 cluster using MS Cluster Servic
    ... In case anyone else stumbles across this problem with the Generic Service ... It is possible to use both the Cluster Administrator and the APIs to ... The only way round this restriction seems to be to write a resource type DLL ... hence prevent multiple failovers to a passive node in an N+1 configuration. ...
    (microsoft.public.windows.server.clustering)
  • Re: "Object Already Exists" Error ID: 5010 (00001392)
    ... You can't have multiple "Generic Service" resources in the same cluster that point to the same service. ... On each EVS cluster group I added a generic service for the quota management service. ... I also noticed that the resource for the "quota management service" was no longer listed in the resource group for this EVS. ... So to get it back to where I could start the EVS again, I had to delete the "quota managment service" resource on each EVS. ...
    (microsoft.public.windows.server.clustering)
  • Through cluster APIs how to get EVS IP address and RESOURCE "TYPE" value?
    ... Through cluster API's how to get EVS IP address and RESOURCE ... call "ClusterResourceOpenEnum" to open an enumerator for iterating ...
    (microsoft.public.exchange.admin)