SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Scripting SQL Cluster Shutdown


Scripting SQL Cluster Shutdown

Author
Message
richard.shutt
richard.shutt
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 27
We are planning a shutdown of a number of clustered SQL Servers and I am trying to develop some VBScript to automate this process. The steps I am trying to develop script for are:
1) Move everything to Node 1
2) Set startup to manual
3) Shutdown Node 1
4) Shutdown Node 2

Does anyone know of any existing scripts that would assist in this process?
HanShi
HanShi
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5401 Visits: 3685
Maybe you can find something on http://www.microsoft.com/technet/scriptcenter/default.mspx
SQL: http://www.microsoft.com/technet/scriptcenter/scripts/sql/default.mspx?mfr=true
Cluster: http://www.microsoft.com/technet/scriptcenter/scripts/ccs/default.mspx?mfr=true
Else I suggest you ask this on a developers forum.

** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
hemanth.damecharla
hemanth.damecharla
Mr or Mrs. 500
Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)Mr or Mrs. 500 (548 reputation)

Group: General Forum Members
Points: 548 Visits: 324

I am not sure about VBScript but, you can use some OS commands to get this done.
I created a job in SQL Server for this and it works fine.

This is the exact command I have in the job.

CLUSTER HomeClust GROUP "GROUP D" /MOVETO:Node1 /WAIT:10



Here is the link that I referred to create the job:
http://www.microsoft.com/resources/documentation/windowsnt/4/server/proddocs/en-us/clustsvr/mscsadma.mspx?mfr=true



Hope this helps Smile


-Hope is a heuristic search Smooooth ~Hemanth
richard.shutt
richard.shutt
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 27
Thanks, all very helpful! BigGrin
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search