Share via


GetNodeClusterState method of the MSCluster_Cluster class

Determines whether the Cluster service is installed and running on a node.

Syntax

void GetNodeClusterState(
  [out] sint32 ClusterState
);

Parameters

ClusterState [out]

State of the Cluster service on the node as enumerated by the NODE_CLUSTER_STATE enumeration.

ClusterStateNotInstalled (0)

The Cluster service is not installed on the node.

ClusterStateNotConfigured (1)

The Cluster service is installed on the node but has not yet been configured.

ClusterStateNotRunning (3)

The Cluster service is installed and configured on the node but is not currently running.

ClusterStateRunning (19)

The Cluster service is installed, configured, and running on the node.

Running (19)

Not Running (3)

Not Configured (1)

Not Installed (0)

Return value

This method does not return a value.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\MSCluster
Header
Clusapi.h
MOF
ClusWmi.mof
DLL
ClusWMI.dll

See also

MSCluster_Cluster

NODE_CLUSTER_STATE