Matching windows cluster node ID to physical server

Warning: count(): Parameter must be an array or an object that implements Countable in /home/fbsqlcom/public_html/ on line 31

Here’s the Powershell version of matching the node number in Cluster.Log files to the actual cluster node names. Essentially log messages like this one…

ERROR_CLUSTER_GROUP_MOVING(5908)' because of ''Cluster Disk' is owned by node 1, not 2.'

Inspired by this post using cluster.exe.

Get-ClusterNode -Cluster ClusterName | SELECT Name, Id, State | Format-Table -Autosize;

Output will look something like below…

Name         Id                                   State
----         --                                   -----
clusternode1 00000000-0000-0000-0000-000000000001    Up
clusternode2 00000000-0000-0000-0000-000000000002    Up

Leave a Reply