[PLUG] Shutdown on Lan...
Pranav Peshwe
pranavpeshwe at gmail.com
Thu Aug 28 17:05:41 IST 2008
On Thu, Aug 28, 2008 at 4:33 PM, म.हा.सा.ग.र <o.s.h.o at guruvision.com> wrote:
> Just wanted to know if there is facility or feature to shutdown all Linux
> PCs
> on lan after an authorized network device sends a signal or issues a
> command
> in some way...over the network...
>
Hi,
If the 'network device' is a PC connected to the UPS then, it can be
done in this silly way -
Write a script on one machine to log into every other machine using key
based ssh and issue the `poweroff` command. Of course, it would require a
one time setup cost(giving perms, copying keys etc), but it would work. If
you do not wish to manually run that command on every power failure, then
you can have a hook in the the shutdown script of that PC (a bit risky).
Assuming that the PC can be shutdown gracefully using the power button on
the cabinet, you can effectively shutdown all the PCs at the push of a
button :)
With a PC controlling the shutdown events, you can have finer control like,
giving important machines a higher priority and shutting down selected
machines as the UPS drains.
My 2 cents...
Best regards,
Pranav
More information about the Plug-mail
mailing list