Balance Cluster groups – Alert Script

 

Mission

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.

Cluster_Balance_Resources_233223

Cluster_Balance_Resources_2332323

 

Script Details

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

Cluster_Balance_Resources_23332323

 

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 :
    • Resource1
    • Resource2

Download Script

You can download the script from this link http://sdrv.ms/1gUtDh9 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s