wk6838
asked on
Restart a Generic Service in Windows 2003 Server
Hi Experts,
Please can you assist in the scenario below?
We have a windows 2003 clustered server (2 nodes)
The cluster has a resource setup as a generic service.
We require the service to be restarted on a daily schedule.. can you advise the best way? With it being a clustered resource, does it make more difficult.
A scheduled task with a srcipt would be ideal.
Thankyou,
Please can you assist in the scenario below?
We have a windows 2003 clustered server (2 nodes)
The cluster has a resource setup as a generic service.
We require the service to be restarted on a daily schedule.. can you advise the best way? With it being a clustered resource, does it make more difficult.
A scheduled task with a srcipt would be ideal.
Thankyou,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the comments. Yes it is a cluster.
oBdA > If I put the command in the script will it also bring down the dependancies?
oBdA > If I put the command in the script will it also bring down the dependancies?
It will take down all resources that are dependent on the service (but not resources that the service depends on).
If you have other resources that are dependent on this service, and you want to bring them all online after stopping the service, simply bring the whole group online:
cluster /cluster:<Clustername> group "<Some Resource group Name>" /online
If you have other resources that are dependent on this service, and you want to bring them all online after stopping the service, simply bring the whole group online:
cluster /cluster:<Clustername> group "<Some Resource group Name>" /online
ASKER
This has worked successfully thankyou
net stop "service name"
net start "service name"
(keep the speach marks " - and replace service name with the exact name of the service)
in schedualled tasks, set it to run at required time.
enoy