I have been trying to write a powershell program that checks to see if a cluster exists. If it doesn't then it creates it and adds itself to it. If another computer wakes up, it checks to see if the cluster exists and if it does, then it adds itself to the cluster.
I'm having trouble trying to get a reference to the cluster object from the cluster ip address. Every node knows its address and the cluster address. I want to avoid every node having a list of all the other nodes in its cluster.
I'm finding that I need to sight the non-cluster ip address to get-nlbcluster to work. Specifying the cluster ip address just errors.
Is there any way I can do this, without having to update this list on every node each time I add or remove nodes from the cluster. I suppose I also want to avoid the situation where a node wakes up and has to poll each of the machines in the "master" list looking for one that is up in order to add itself to the cluster.