6 replies
by x-marcap
This is brute force, but pretty solid.
Edit the .rhosts file in root's home directory. Put in your control machine's name.
rsh to every machine that on the list and create this simple script on each box in /usr/local/bin and call it nightly_turnoff.sh.
#!/bin/sh
cd /
shutdown -i0 -g0 -y
in your master script
#!/bin/sh
rsh boy0 /usr/local/bin/nightly_turnoff.sh
Just replace boy0 with the name for your systems and duplicate it with many lines.
The last line on your script is to run the script on your own machine...
by jmgarvin
Let's address the cause and not just us a band-aid.
1) Why are they crashing? Have you looked at the logs?
2) Why is the performance going down? top will let you see what is running and ps aux (as root) will let you see all running processes.
3) Free disk space and swap space can be the cause
4) Hardware, heat, and other causes have been investigated?
5) If you are running older Dell systems with RAID controllers, update the RAID driver.
As for rebooting remotely, why bother, just setup a cron job that reboots your machines everyday at 11:55pm.
crontab -e
55 23 * * * reboot
There you go...
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending