Sun Remote System Control (RSC) User's Guide

How to Configure the UPS to Record Events and Send Alerts

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.

  1. Log in to the server and start the PowerChute plus application.

  2. Choose Event Actions from the Configuration menu.

  3. In the Event Actions dialog box, click on an event that you want to notify RSC about (for example, "UPS on Battery").

  4. Select the Run Command File and then click on the associated Options button.

    The Run Command File dialog box opens.

  5. Using a text editor, create a command file with the following content:


    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.

  6. Save the file as /usr/platform/sun4u/sbin/ups_batt.com.

  7. Type the name of this file into the Run Command File dialog box:


    /usr/platform/sun4u/sbin/ups_batt.com
    

  8. Enter an integer for Seconds Before Executing.

    This value will normally be 0.

  9. Click on OK.

  10. Repeat steps 2 through 9 for each event that you want to create a log entry or send an alert.

  11. Click on OK in the Event Actions dialog box to confirm changes.

  12. Choose Exit from the PowerChute plus System menu.