To find Node Status :
We run a serverNlb.vbs in WMI mode to get the state of the corresponding NLB Node. Here is a sample output:
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
CONF_NLB_STATE:1008
Here 1008 represents the status code.
Status Codes :
0 REMOTE Node is remote. The StatusCode value cannot be retrieved
1005 STOPPED Cluster operations have stopped on at least one node
1006 CONVERGING The cluster is converging
1007 CONVERGED The cluster has converged successfully
1008 DEFAULT The specified node has converged as the default host
1009 DRAINING One or more nodes are draining
1013 SUSPENDED Cluster operations have been suspended on one or more nodes
To find Configuration information :
The same script will also return the configuration information of the current node. Here is a sample output:
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
CONF_NLB_DEDICATED_IP:192.168.140.11
CONF_NLB_SUBNET_MASK:255.255.255.0
CONF_NLB_PRIORITY:1
CONF_NLB_PORTS:3
CONF_NLB_CLUSTER_NAME:com.nlb.test
CONF_NLB_CLUSTER_IP:192.168.140.10
CONF_NLB_CLUSTER_SUBNET_MASK:255.255.255.0
CONF_NLB_CLUSTER_MAC:aa-aa-aa-aa-aa-aa
CONF_NLB_CLUSTER_GUID:AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA