I'm a tad confused. If the power is suddenly pulled, there is no time to initiate a clean shutdown. In that case you would need to purchase a UPS Power Backup.
I use two commands to shutdown. halt and shutdown "now" ... there is also the shutdown -r "now" command to restart. The value in quotes is in how much time you want the shutdown procedure to start. As far as I know, halt can only be used by a super user.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Hello,
This was discussed in another topic involving UPS shutdown to other computers. Also, as a newbie, a Beowolf cluster is quite a haul!
What I would do is:
1) determine the order that the boxes have to be shut down in. I have not built a Beowolf cluster, and it might not matter, but boxes might have to go down in a certain order.
2) Collect the IP numbers and root usernames / passwords for each box.
3) Install / Verify that SSH and expect is installed on all of the computers
4) Use expect to create a script file for one central computer to order the rest of them to power down. Expect is an "interactive" shell language that is great for username / passwords and similar interaction.
5) Code it and test it.
Things to watch out for:
1) Telnet will not allow a root login. SSH will, but will also require a pre-login before the script runs to setup and accept the encryption keys.
2) Your script must be protected from prying eyes, and also on the computer, as it will have all the root passwords handy
3) If you have to wait for delays between server shutdowns, remember to encode them into your script.
As you are starting on this, Thomase, rough out your thoughts in pseudo code and post them here. DO NOT put in passwords or sensitive IP addresses... but we can help debug it.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
Hello Thomase,
Windows XP / 2003 Server is not a piece of cake. True, you might not be aware of the tools that are in Linux, you will find that there are a lot less hidden registry settings and other nit-noids that go into a Windows system. Linux configuration files are often pure text files that are easily printable and managable. There is not much too them at all. Yes, syntax will be important, but if you had to, you could edit them with a 2400 baud modem.
Enjoy, and let us know how you did it. Keep very good notes of each installation (I used a bit text file on one of the computers as a running log, and it worked well -- just be sure to print it when done).
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57