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 [2014/06/15 12:58]
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
  
-:!: PowerPanel e-mail alerts use the ''mail'' command.  This will not work on XenServer and many other boxes, at least not without additional tweaking.  Don't enable mail alerts without first dealing with the ''mail'' command.+===== PowerPanel Business 4 Linux =====
  
-See also: **[[networking:linux:postfix_smarthost|Postfix Authenticated Smarthost]]**+**Download**https://www.cyberpowersystems.com/product/software/power-panel-business/powerpanel-business-4-7-0-linux/
  
-See also: **[[networking:linux:ssmtp|SSMTP]]**+**Manual**https://dl4jz3rbrsfum.cloudfront.net/documents/CyberPower-UM-PPB-447.pdf
  
 ==== Installation ==== ==== Installation ====
  
-Connect the included USB cable to UPS.  You may have problems getting it to work with the serial cable.+:!: Tested with XCP-ng 8.2 and a CyberPower CPS1500AVR UPS.
  
-=== RPM ===+:!: Connect the included USB or serial cable to UPS.
  
-:!: Tested with SME Server 8 and a CyberPower CP900AVR UPS.+:!: We use the **Local** version for single servers with USB or serial cable connected UPSs.
  
 <file> <file>
-rpm -Uvh http://www.cyberpowersystems.com/software/powerpanel_123_i386.rpm+wget https://dl4jz3rbrsfum.cloudfront.net/software/ppb490-linux-x86_x64.sh 
 +chmod +x ppb470-linux-x86_x64.sh 
 +./ppb470-linux-x86_x64.sh
 </file> </file>
  
-=== Tar === +Check that services started:
- +
-:!: Tested with SME Server 7.3 and a CyberPower CP1500AVRT UPS. +
- +
-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 +systemctl status ppbed.service 
-pwrstat -config+systemctl status ppbwd.service
 </file> </file>
  
-Verify startup:+==== Access ====
  
-<file> +Default credentials:
-chkconfig --list |grep pwr +
-</file>+
  
-For SME Server only which uses runlevel 7:+^Username ^Password 
 +|admin    |admin     |
  
-<file> +Use a web browser from a workstation: 
-ln -s /etc/rc.d/init.d/pwrstatd /etc/rc7.d/S93pwrstatd + 
-</file>+**http://ip.of.linux.svr:3052**
  
 ==== Configuration ==== ==== Configuration ====
Line 107: Line 96:
  
 ===== XenServer ===== ===== 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: Modifications to above for XenServer:
Line 120: Line 111:
 shutdown-sustain = 600     #set this to a little longer than it takes to shut down all VMs and your server 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-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>
  
computing/linux/ups/cyberpower.1402858736.txt.gz · Last modified: 2014/06/15 12:58 by gcooper