life_j
asked on
Setting up a scheduled task on a windows cluster
How can I setup a scheduled task on windows 2003 in a active/passive cluster. Say if the server A which is the active server fails then the server B should be able to run the scheduled task.
Thanks
Thanks
ASKER
Can you please paste the script that your are using. I will see If I can modify the script so that I can use it.
Do you want a copy of the ping vbscript?
ASKER
yeah
I'm out of the office at the moment. I'll be able to drop a copy in at the end of the week.
ASKER
Thanks mass2612
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
From the active node - Create the scheduled task as normal and make sure that the file you are excuting is stored on the shared clustered resource.
Fail over the system so the other node is now active and re-configure the task pointing to the same copy of the file you want to run on the shared storage.
Now since the active node places a lock on the shared storage disk only the active node will be able to run the scheduled task successfully therefore as long as one node is up and has access to the shared disk then that node will be able to run the task.
As I said I'm not sure if there is a better way but this works for me in this instance. If anyone else has a nicer way I'd love to know also.