Solved

Cluster API

Posted on 2003-12-11
2
547 Views
Last Modified: 2013-12-04
I have a Microsoft Cluster setup on two Windows 2000 servers. The Cluster presents a virtual server and file share to the client machines. From the client machines I am trying to get information about the health of the cluster.

I am trying to use the OpenCluster API call, however, I keep getting a NULL window handle returned. Calling GetLastError returns 1722

1722 The RPC server is unavailable.  RPC_S_SERVER_UNAVAILABLE

The only successful return value up to now is if I call the OpenCluster from one of the Cluster Servers passing a NULL parameter. This apparently returns a LPC rather than an RPC

Any ideas how I can get this to work?

0
Comment
Question by:philsmicronet
2 Comments
 
LVL 3

Accepted Solution

by:
Madz earned 125 total points
ID: 9948329
Try prepending "\\" to the virtual cluster node name before the call to OpenCluster. Does that work??

Madz
0
 
LVL 1

Author Comment

by:philsmicronet
ID: 9948406
I found the problem. It was in my conversion from LPSTR to LPWSTR. I didnt include the '\0' in the conversion.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question