Hi All,
We have more than 100 servers,for some patching we shutdown this all servers at a time using Unix script.But we are don’t have any script to up this all servers at a time.
If any one know how to up all the server at a time ,please do share me.
Hi Siva,
I’ve done it for 4 servers not for 100. I used Mobaxterm. Open the separate console for all (in my case all the servers had same folder structure) then in mobaxterm has option called “Multi Execution” what it does is you type on one server it will run same command on all the servers.
In your case it is 100… not sure if it is a good option.
Option 2:
If all your servers can communicate with each other then you can right shell script where you do the ssh to a server change directory run nohup ./server.sh & and then quit.
I hope this should work. Try this for 2 or three servers if works then do it for rest of the servers.
Each server have it’s own directory and few servers are communicate each other ,few are independent . Is it passable to write a script for this ?
I’m not that much script export .If you have any idea,please share me the script.
Hi Siva,
I am also not unix expert but can suggest something. For those servers which are kind of standalone and do not communicate with each other for them mobaxtrem is good
for others you can wrtie shell script and do following
ssh to server
sshpass -p your_password ssh user@hostname
change to the bin directory of your server
$ cd $IS_HOME\bin
nohup ./server.sh &
exit
This way you can write for all your servers who communicate with each other in one script.
Try this if working then let every one know your solution.
Siva,
If you are working on Unix Flavours then you can follow the below option.
Create a shell script from where you loginto each server remotely and kick-off the script and take the output and if it is negative, keep in a list and continue the same with rest of the servers. Finally send the output of results to some mail id and from there you can take the decision.