1

I have 2 nodes using win server 2008 r2 in my active/passive cluster setup. They have the same set of scheduled tasks and i want them to run only when the node is active. Does Windows support something? If not, is there a way to query the system to find out if the machine is the active node? Thanks

4

This is only available in Windows 2012. You'd need to upgrade.

1
  • Oh wow. Did not know that about 2012
    – mfinni
    Nov 6 '13 at 2:37
2

Put your scheduled task on the disk shared between the cluster nodes. Then put identical scheduled tasks on both nodes running the task from the shared drive. The drive will not exist on the inactive node, so you should get what you want and the task will run only on the active node.

0

Scheduled tasks aren't cluster able with windows native tools (prior to 2012, thanks Shane!). There are 3rd party tools for scheduling tasks that can do this, they tend to be expensive.

You could parse cluster.exe output to see what's active. I imagine there's also a powershell method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.