CyberPower PowerPanel for Linux
Tested with SME Server 7.3 and a CyberPower CP1500AVRT UPS.
Installation
Connect the included USB cable to UPS. We could not get it to work with the serial cable.
Download the PowerPanel software to the machine where the UPS is connected:
wget http://www.cyberpowersystems.com/software/powerpanel-1.1.tar.gz
Unpack and install:
tar -xzvf powerpanel-1.1.tar.gz cd powerpanel-1.1 ./install.sh
Check communications:
pwrstat -status
pwrstat -config
Verify startup:
chkconfig --list |grep pwr
For SME Server only which uses runlevel 7:
ln -s /etc/rc.d/init.d/pwrstatd /etc/rc7.d/S93pwrstatd
Configuration
We don't want the server to shut down immediately upon power failure...we want to wait until the battery gets low before we actually run the shutdown command.
Edit the PowerPanel configuration file:
vi /etc/pwrstatd.conf
And change:
powerfail-shutdown = no #we want to shut down the UPS when the battery gets low, not when the power fails
shutdown-sustain = 300 #set this to a little longer than it takes to shut your server down
lowbatt-threshold = 15 #don't run the battery completely dead
Restart the service:
/etc/init.d/pwrstatd restart
or
service pwrstatd restart
Commands that run upon power-fail and low-battery events are also specified in the /etc/pwrstatd.conf configuration file. By default, it specifies:
/etc/pwrstatd-powerfail.sh
and
/etc/pwrstatd-lowbatt.sh
| < Prev | Next > |
|---|





