Quantcast
Channel: High Availability (Clustering) forum
Viewing all articles
Browse latest Browse all 6672

stop services on remote server using batch file // failover cluster

$
0
0

Hi all,

I am using a Windows 2008 R2 failover cluster for two nodes.
Now I would like to use a script that stops the services when a failover is executed on the server which is now the inactive node and also starts the services on the new active node.
I can not take up the services as a cluster resource, because there are some problems.
The batch file looks like this: (of course, on the other server with other remote servername)

sc \\srvnode02 stop service1
sc \\srvnode02 stop service2
sc \\srvnode02 stop service3
sc \\srvnode02 stop service4
net start service1
net start service2
net start service3
net start service4
break

If I manually run the batch file, then everything works without problems
But as the cluster triggers the failover, the services on the remote server the services are not stopped on the remote server. Only the start of the services will be executed.

Has someone an idea why this does not work to stop the services on a remote server when the batch is executed by the failover cluster?

Thanks for help

Best
Malte Schoch
--------------------

I have also create a post in the german forum:
http://social.technet.microsoft.com/Forums/de-DE/clusteringde/thread/832fc943-7604-4507-8ff6-33543a8c7c62


Viewing all articles
Browse latest Browse all 6672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>