You have two cluster nodes running two cluster groups (i.e File share and SQL instance).
You want to make sure that one cluster group is online on a cluster node and the other cluster group is hosted on the other cluster node.
You want to get an alert if both cluster groups are hosted on the same cluster nodes.
It is so practical to go to one of the cluster nodes, open Task Scheduler, and create a basic task to run the script every hour for example. Make sure :
- You set the PowerShell execution on that cluster node to unrestricted, by opening PowerShell using admin elevation and running Set-ExecutionPolicy Unrestricted
- Make sure the schedule task is using the (System) context when running
Now, open the script, go to the Script Customization section and enter the following :
- SMTP Settings
- Resource Group names by assigning values to the following two variables :
You can download the script from this link http://sdrv.ms/1gUtDh9