Hello,
we have a brand new XServe connectet to a “APC SmartUPS 3000”.
Well, the XServe goes down if the power breaks (we tested it). To safe the XRaid too, how can I shut down the XRaid without connecting the XRaid to the UPS with RS232, USB or the networkmanagementcard from APC?
I’ve found a shell script “upsshutdown” in /usr/libexec/, so I think it will be possible to shut down the XRaid bevor the XServe is going down with some cool shell commands.
#!/bin/sh
[ ... SNIPP something ... ]
#
# Take the system down.
#
if [[ -n $1 && "WaitForUPS" == $1 ]] ; then
#
# Wait for UPS to take the system down abruptly and unexpectedly.
#
###### HOW SHUTDOWN XRAID HERE ??????????? ######
shutdown -hu now "${MSG}"
else
#
# Gently shutdown the system immediately.
#
###### AND HOW SHUTTING DOWN XRAID HERE ???????????? ######
shutdown -h now "${MSG}"
fi
Any suggestions or some startingpoints where to look?
Thank you.
—
Timm