HP UPS Agent workaround for Sco

HP UPS'es no longer have any agents for Sco Openserver.
If you have a linux box connected on the same UPS you can configure it to tell the Sco box to shut down if a loss of power occurs and the battery runs out using remote hosts equivalency.

First ensure that you have rhosts equivalency between the two boxes.
i.e. create a /.rhosts file as 600 permissions with a hostname entry for the linux box.
Now the Linux box can send a remote command to the Sco box.

Now setup the UPS manager.
Login to the UPS Manager webpage and go into the Server settings. Set the Linux box to run the additional Command line script in case of a shutdown. This is a script which you can put various commands in to run before the system goes down.

It lives in /usr/local/DevMan and is called SDscript

edit this file and add the following lines.
logger -i Sending Message to Sco Box to shut down. /usr/bin/rsh <hostname of sco box> /etc/shutdown -g0 -y sleep 5
So it will log to the linux box messages file if a call to this script is made, execute a rsh command to remotely shutdown the sco box, giving it 5 seconds to complete the command.

Now your Sco box can shutdown gracefully.


other SCO Unix Related Tips...