Computing.Net > Forums > Linux > Shutdown On Lan

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Shutdown On Lan

Reply to Message Icon

Name: sermpan
Date: May 30, 2003 at 02:11:04 Pacific
OS: RedHat 7.3
CPU/Ram: P III 500, 512M
Comment:

i can use Wake-On-Lan to power on all my clients, How can i shutdown all my clients with my RedHat 7.3 Server.
Thank!.



Sponsored Link
Ads by Google

Response Number 1
Name: KegRaider
Date: June 1, 2003 at 08:10:26 Pacific
Reply:

OK, I just use crontab and the /sbin/shutdown command.

edit your crontab file as such..

30 17 * * * * root /sbin/shutdown -h -T sec 5 "Automatic SHUTDOWN in progress, Save your work!!"

Every afternoon at 5:30, the machine issues the shutdown command, displaying a message on the terminal every minute until shutdown.

I know that is a rather lame way of controlling 20 terminals, but, I did change that. I wrote a little script to be called from /etc/crontab to wget an update script from our webserver ever hour. Then the script executes all of the commands I tell it. Like, copy a new crontab to /etc and restart the cron daemon, so you can adjust the shutdown times from one file, on your webserver (or wherever you want to put it).

There is probably a better way of doing this, and I too am open to suggestions.

Hope this helps a little.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Shutdown On Lan

How to connect inernet on LAN::PLZ HELP! www.computing.net/answers/linux/how-to-connect-inernet-on-lanplz-help/11245.html

Limiting internet access speed on LAN www.computing.net/answers/linux/limiting-internet-access-speed-on-lan/4547.html

Schedule Shutdown on Linux www.computing.net/answers/linux/schedule-shutdown-on-linux/28990.html