Automatically shutting down Linux server from Windows server.

Automatically shutting down Linux server from Windows server.

Post by Mark Mut » Wed, 06 Nov 2002 11:10:07



I have an interesting problem. I have a pair of servers, one Windows 2000
and one RedHat Linux 8.0. They are both sharing the same UPS, but only one
can have the signaling cable. I'd like to know if anyone knows a way of
sending a shutdown command from the Windows server to the Linux server when
the UPS signals that the power is out. I'm open to hooking the cable to the
Linux server and having it shut down Windows, but I think it may be easier
the other way around.

Any thoughts?

 
 
 

Automatically shutting down Linux server from Windows server.

Post by Brett E. Dufaul » Fri, 08 Nov 2002 22:23:09



Quote:> I have an interesting problem. I have a pair of servers, one Windows 2000
> and one RedHat Linux 8.0. They are both sharing the same UPS, but only one
> can have the signaling cable. I'd like to know if anyone knows a way of
> sending a shutdown command from the Windows server to the Linux server
> when the UPS signals that the power is out. I'm open to hooking the cable
> to the Linux server and having it shut down Windows, but I think it may be
> easier the other way around.

Possibility 1:  See if the UPS vendor has any Linux support.  (TrippLite
had remote-shutdown software for Linux at one point.  Not sure if this is
still the case -- it's been a few years since I last used their tools.)

Possibility 2:  Take a look at the NUT (Network UPS Tools) project.  The
Linux software is already on your RH 8.0 Installation CD #3 (check the
RedHat/RPMS/ subdir, look for nut*.rpm).  Windows is supported, but only as
a client (i.e., you'd need to have the Linux box monitoring the UPS) -- you
can find the Windows software on the NUT homepage:  
http://www.exploits.org/nut/

It'd probably be a good idea to check the NUT site's compatibility list
first to see if your UPS is supported.

Cheers!
--Brett

 
 
 

1. shutting down linux server automatically

I've got an Esmith server (based on red hat linux). Currently all the
client PCs on the network use windows98/2k. I have a little dos batch
file on each client that wakes up the server using Wake-On-Lan whenever
the clients boot up. This works brilliantly :)

Currently I have to shut down the server via a telnet or web interface
before turning off the last client. I'd like to go a step further and
get the server to shut itself down once it sees that it's alone on the
network. It doesn't matter if this takes an hour or so, I just don't
want to leave the server running overnight.

Has anyone already done this or know how to do it?

My knowledge of linux is fairly limited, I can probably get somthing to
run hourly using cron but I'm not sure to check for an empty network.
There are only about 6 clients at fixed ip addresses so maybe I could
ping each one in turn?

tia, Arthur

2. HELP-SOCKET (unix domain)

3. New IBM 15 gb hard drive shuts down automatically?

4. Netscape Servers - running out of Swap

5. Automatically shut down. Very Urgent!

6. Samba won't work

7. NIC shut down automatically

8. soundblaster full duplex

9. Shut down the monitor automatically under X

10. Won't shut down (automatically)

11. Shutting down X Font Server: kill: (2294) - No such pid

12. shutting down a server without umounting NFS filesystems

13. X font server wont shut down :-(