Re: Cluster API

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Chuck Haeberle (ChuckHaeberle_at_discussions.microsoft.com)
Date: 02/11/05


Date: Fri, 11 Feb 2005 11:29:05 -0800

Willy,

I would be very interested in seeing such a sample. What are the WMI
Cluster Classes you mention? I have a similar need - to monitor and restart
if needed a service on a cluster, and have not had much luck to date finding
manged objects to allow me to perform this simple task. I could always issue
shell commands, but thats just ... klugy. :)

Your help would be MOST appreciated!
Chuck Haeberle

"Willy Denoyette [MVP]" wrote:

> The management API's are also available through COM, that doesn't mean you
> can't use C# to access them, simply create a interop assembly from the
> automation server dll (msclus.dll) and use the API's from C#.
> However, the "automation server API's" don't support notifications, a much
> better "managed" option is to use System.Management namespace classes and
> the WMI cluster classes MSCluster_XXXX to build cluster management
> applications using C#.
>
> I can post a sample of the latter if you are interested.
>
> Willy.
>
> "Peter Ericsson" <peter.l.ericsson@ericsson.com> wrote in message
> news:252901c5061d$92caa720$a601280a@phx.gbl...
> > My only interest is to manage the cluster. Start and stop
> > resorces, get notifications when they fail, find out what
> > kind of resources are available in the cluster and so on.
> > I mean these kind of methods are available for windows
> > services but not for clustered resources.
> >
> > I'm not an COM expert so I'd rather stick to C#.
> >
> > /Peter
> >>-----Original Message-----
> >>There is a big difference between a wrapper and
> > implementing an API.
> >>The MS cluster API's (cluster resources) are implemented
> > using C/C++ , the
> >>reason is high reliability, efficiency and a low memory
> > footprint, something
> >>that managed code doesn't offer, as it was not designed
> > to be used as a
> >>system level platform.
> >>The cluster management API's are available as native
> > C/C++ API's and a set
> >>of COM interfaces, so if you only need to manage MS
> > cluster server, you
> >>could wrap the COM api.
> >>
> >>Willy.
> >>
> >>"Peter Ericsson" <peter.l.ericsson@ericsson.com> wrote
> > in message
> >>news:1df801c50517$2fbba320$a601280a@phx.gbl...
> >>> Does anyone know if Microsoft plans to implement an C#
> >>> (.net) API for MS Cluster like the one in C++?
> >>>
> >>> Or has someone else written a C# wrapper for the C++
> > API?
> >>
> >>
> >>.
> >>
>
>
>



Relevant Pages

  • Re: Help with scripting printer creation in virtual print server
    ... You are doing this exact correct UNFORTUNATELY, WMI does not expose the WMI ... print provider to the virtual namespace of the cluster. ... We have a cluster Master with 4 virtual print servers prtsvr01 through ... enter 8 ip printers of different types into one of the print servers + ...
    (microsoft.public.windows.server.clustering)
  • Re: Cluster API
    ... What are the WMI ... > Cluster Classes you mention? ... static void BringOnLine(ManagementObject resourceGroup) ... Check the MSDN documentation for all other WMI mscluster namespace classes, ...
    (microsoft.public.dotnet.languages.csharp)
  • Using WMI from clustering
    ... I want to monitor and control a cluster using the WMI interface in C# ... But I have noticed an unclear warning in the MSDN ...
    (microsoft.public.dotnet.languages.csharp)
  • WMI for AppCenter
    ... a Windows 2003 Server with App Center 2000. ... -name of the cluster controller. ... I used the WMI Object Browser from WMI-Tools from WMI SDK ... namespace, but it is for the other cluster services, not ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Printers from cluster
    ... For this problem you will likely need to look at the NLBS WMI Provider ... dynamically the nodes that exist in the cluster and then connect to each of ...
    (microsoft.public.win32.programmer.wmi)