Getting Node Information
The following table lists node-related information and objects and the recommended API elements for obtaining them. If the specified API element does not have an example, look in the Index of Examples for a similar API element.
Information or object to get | API element to use |
---|---|
Cluster that contains the node | GetClusterFromNode |
GUID identifying the node | CLUSCTL_NODE_GET_ID |
Name of the node | CLUSCTL_NODE_GET_NAME |
Network interfaces in the node | ClusterNodeOpenEnum, ClusterNodeEnum, ClusterNodeCloseEnum |
Properties of the node | CLUSCTL_NODE_GET_COMMON_PROPERTIES, CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES, CLUSCTL_NODE_GET_PRIVATE_PROPERTIES, CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES, |
Property names | CLUSCTL_NODE_ENUM_COMMON_PROPERTIES, CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES |
State of the Cluster service on the node | GetNodeClusterState |
State of the node | GetClusterNodeState |
Version of the Cluster service on the node | GetClusterInformation |
For additional node-related APIs, see Node Management Functions and Node Control Codes.