You should be able to use STONITH (Shoot The Other Node In The Head).  

http://www.linux-ha.org/stonith

It was originally written as part of heartbeat, but is now used by a number of cluster 
solutions.

It has drivers for a number of smart power switches, but that does not matter in your 
case.

Stonith is normally used to send a power reset command to the power switch which 
causes the other PC to reboot.

What I'm thinking you can do:

stonith includes a test driver based on ssh.  With the ssh driver, stonith connects 
via ssh to the other server and issues a reboot command.

This is considered a test driver because in a cluster you can't depend on the other 
node being sane enough to listen to your request.

In your case, I think you can.  So all you have to do is find the reboot command and 
change it to a powerdown command.


>>  ----- Original Message ----- 
>>  From: Trevor Fraser 
>>  To: [EMAIL PROTECTED] 
>>  Sent: Thursday, July 11, 2002 2:41 PM
>>  Subject: Sending poweroff command over LAN.


>>  Hello all.
>>  
>>  I've got two Red Hat Linux servers, one's a file server, the other a
>>  route/internet server. I've got an APC smart-UPS 1000. The UPS sends a
>>  shutdown signal to the file server via a serial cable. You can *$buy$*!
>>  an Interface Expander to get two serial ports out of the UPS, but isn't
>>  good old Linux capable of much more than the usual buy-buy-buy.
>>  
>>  What I want to attempt to do is to get the server which is connected to
>>  the UPS, when powering down, to send the other server a
>>  poweroff/run-level 6 signal via the lan.
>>  
>>  Is this possible?
>>  
>>  What proceedure would I use, and where would I find the relevent info?
>>  
>>  Is writing a shell script on the right track, or doesn't this work over
>>  the lan?
>>  
>>  Reguards, Trevor.




Greg Freemyer
Internet Engineer
Deployment and Integration Specialist
HP ASE - Tru64 v4, v5
HP Master ASE - SAN Architect
The Norcross Group
www.NorcrossGroup.com



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to