Re: Through cluster API's how to get EVS IP address and RESOURCE "TYPE" value?
- From: "Bharat Suneja [MVP]" <bharat@xxxxxxxxxx>
- Date: Fri, 19 Jan 2007 06:43:54 -0800
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
.
- References:
- Prev by Date: SBS Exchange - when server reboots Exchange services don't automatically restart
- Next by Date: Re: Weird System Undeliverable Messages (Outlook 2003/Exchange 2003) and some Exchange Server errors? Advice?
- Previous by thread: Through cluster API's how to get EVS IP address and RESOURCE "TYPE" value?
- Next by thread: Exchange 2007 Processor Compatibility
- Index(es):
Relevant Pages
|