Results 1 to 5 of 5
I have 20 machines running on linux and am finding difficult in shutting down down one by one. can someone help me write a script that will shut them all ...
- 04-13-2011 #1Just Joined!
- Join Date
- Apr 2011
- Location
- Nairobi Kenya
- Posts
- 0
Remote shutdown of machines
I have 20 machines running on linux and am finding difficult in shutting down down one by one. can someone help me write a script that will shut them all from one machine? i will be so greateful for your assistance.
- 04-13-2011 #2
I have one machine with a PKI trust set up in root's authorized_keys on the others. With a list of server names, one per line, I use a script like:
grep -v "^#" servers.txt|while
read node
do
ssh root@$node "shutdown -h 0"
done
- 04-14-2011 #3Just Joined!
- Join Date
- Nov 2007
- Location
- Bangkok, Thailand
- Posts
- 0
- 04-14-2011 #4Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 260
Or google for "clustersh".
- 04-14-2011 #5


Reply With Quote

