To allow use of RSC when a complete power failure occurs, connect the host power cord to an uninterruptible power supply (UPS). SunExpress(TM) sells several suitable UPS devices.
This appendix provides an example of installing and configuring an American Power Conversion SmartUPS 1000 with PowerChute plus 4.2.2 software, for use with RSC. The UPS uses RSC software on the server to record events and generate alerts.
Install the UPS as documented in the SmartUPS Quick Reference Guide.
Install and configure PowerChute plus monitoring software as documented in the SmartUPS document Software Installation: Instruction Sheet.
Connect the UPS to one of the server serial ports (not the RSC serial port).
PowerChute plus allows you to run a command file or shell script whenever a designated "event action" occurs. See "Configuring Actions" in the PowerChute plus User Guide. Use the command rscadm send_event to log events and send alerts to RSC from the server.
Log in to the server and start the PowerChute plus application.
Choose Event Actions from the Configuration menu.
In the Event Actions dialog box, click on an event that you want to notify RSC about (for example, "UPS on Battery").
Select the Run Command File and then click on the associated Options button.
The Run Command File dialog box opens.
rscadm send_event -c "UPS: UPS On Battery"
You can use any message string in place of "UPS: UPS On Battery". Be sure to enclose the message string in double quotation marks.
Use the -c option to send an alert and also record the event in the RSC event log. To log the event only, do not use the -c option.
Save the file as /usr/platform/sun4u/sbin/ups_batt.com.
Enter an integer for Seconds Before Executing.
This value will normally be 0.
Click on OK.
Repeat steps 2 through 9 for each event that you want to create a log entry or send an alert.
Click on OK in the Event Actions dialog box to confirm changes.
Choose Exit from the PowerChute plus System menu.