Link to home
Start Free TrialLog in
Avatar of life_j
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
Avatar of mass2612
mass2612
Flag of Australia image

I'm not sure if this is the nest way but I have a vbs script that pings hosts every 20 minutes from a clustered monitoring system. This is how I set it up.

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.
Avatar of life_j
life_j

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?
Avatar of life_j

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.
Avatar of life_j

ASKER

Thanks mass2612
ASKER CERTIFIED SOLUTION
Avatar of mass2612
mass2612
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial