User Tools

Site Tools


computing:linux:ups:cyberpower

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:ups:cyberpower [2012/12/26 11:18]
gcooper
computing:linux:ups:cyberpower [2023/05/10 14:02] (current)
gcooper
Line 1: Line 1:
 ====== Configure CyberPower UPS Monitoring on Linux ====== ====== Configure CyberPower UPS Monitoring on Linux ======
  
-===== CyberPower PowerPanel for Linux =====+http://www.cyberpowersystems.com
  
-==== Installation ====+===== PowerPanel Business 4 Linux =====
  
-Connect the included USB cable to UPS You may have problems getting it to work with the serial cable.+**Download**: https://www.cyberpowersystems.com/product/software/power-panel-business/powerpanel-business-4-7-0-linux/
  
-=== RPM ===+**Manual**: https://dl4jz3rbrsfum.cloudfront.net/documents/CyberPower-UM-PPB-447.pdf
  
-:!: Tested with SME Server 8 and a CyberPower CP900AVR UPS.+==== Installation ====
  
-<file> +:!: Tested with XCP-ng 8.2 and a CyberPower CPS1500AVR UPS.
-rpm -Uvh http://www.cyberpowersystems.com/software/powerpanel_123_i386.rpm +
-</file>+
  
-=== Tar ===+:!: Connect the included USB or serial cable to UPS.
  
-:!: Tested with SME Server 7.3 and a CyberPower CP1500AVRT UPS. +:!: We use the **Local** version for single servers with USB or serial cable connected UPSs.
- +
-Download the PowerPanel software to the machine where the UPS is connected+
- +
-wget http://www.cyberpowersystems.com/software/powerpanel_1.2_i386.tar.gz +
- +
-Unpack and install: +
- +
-tar -xzvf powerpanel-1.1.tar.gz cd powerpanel-1.1 ./install.sh +
- +
-==== Check Communications ====+
  
 <file> <file>
-pwrstat -status +wget https://dl4jz3rbrsfum.cloudfront.net/software/ppb490-linux-x86_x64.sh 
-pwrstat -config+chmod +x ppb470-linux-x86_x64.sh 
 +./ppb470-linux-x86_x64.sh
 </file> </file>
  
-Verify startup:+Check that services started:
  
 <file> <file>
-chkconfig --list |grep pwr+systemctl status ppbed.service 
 +systemctl status ppbwd.service
 </file> </file>
  
-For SME Server only which uses runlevel 7:+==== Access ====
  
-<file> +Default credentials: 
-ln -s /etc/rc.d/init.d/pwrstatd /etc/rc7.d/S93pwrstatd + 
-</file>+^Username ^Password 
 +|admin    |admin     | 
 + 
 +Use a web browser from a workstation: 
 + 
 +**http://ip.of.linux.svr:3052**
  
 ==== Configuration ==== ==== Configuration ====
Line 88: Line 83:
 </file> </file>
  
-==== Testing ====+===== Testing =====
  
-You may want to change the lowbatt-threshold so the box shuts down in a shorter time, then change it back when finished testing.+You may want to change the lowbatt-threshold to ''90'' so the box shuts down in the shortest time, then change it back when finished testing.
  
 <file> <file>
-lowbatt-threshold = 15+lowbatt-threshold = 90
  
 service pwrstatd restart service pwrstatd restart
  
 tail -f /var/log/pwrstatd.log tail -f /var/log/pwrstatd.log
 +</file>
 +
 +===== XenServer =====
 +
 +:!: These settings are probably not ideal, but are a good start.  I think the goal would be to confirm that all VMs are shut nown properly before issuing the shutdown command.
 +
 +Modifications to above for XenServer:
 +
 +<file>
 +vi /etc/pwrstatd.conf
 +</file>
 +
 +And change:
 +
 +<file>
 +powerfail-shutdown = no    #we want to shut down the UPS when the battery gets low, not when the power fails
 +shutdown-sustain = 600     #set this to a little longer than it takes to shut down all VMs and your server
 +lowbatt-threshold = 35     #don't run the battery completely dead and give time to shut down
 +lowbatt-duration = 60      #allow the script to run for 60 seconds before the shutdown
 +</file>
 +
 +<file>
 +vi /etc/pwrstatd-lowbatt.sh
 +</file>
 +
 +and append:
 +
 +<file>
 +xe vm-shutdown power-state=running --multiple
 </file> </file>
computing/linux/ups/cyberpower.1356545882.txt.gz · Last modified: 2012/12/26 11:18 by gcooper