UPS systems and Linux

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

UPS systems and Linux

Postby jturning » Wed May 06, 2009 5:26 pm

Some searches didn't give much, so I was wondering if people are running UPS systems with Linux? Anyone aware of any open projects to manage UPS systems?

I picked up a Cyberpower from buy.com pretty reasonable. Cyberpower at least offers a proprietary CLI package for Linux that seems to work well. Default setup powers down the PC on loss of power and then shuts down the UPS after a preset time. That worked flawlessly, though the shut down of the UPS will happen regardless of power restoration, but it powers back up immediately if power is restored. This is a bad thing if you sat here and turned your PC back on manually as I found out, :). But this is a good feature because my PC is setup to boot up on power. So the UPS powering up will cause the PC to boot up restoring the server functionality. I have since set it up to shut down when the battery hits 35%, though I didn't run it that long to verify that it works properly. Looks like I can get about 45 mintues with my dual core AMD system, ATI Radeon 4670, 19" Samsung LCD display, DSL modem and Linksys wifi.

I also have a power station, gel cell battery in a case with A/C inverter, DC plug, and light, so in a long power outage I can shut down the desktop and use the UPS just for DSL modem and wifi router. Then use my power station to power the laptop so I could have internet for as long as AT&T's setup lasts. Worst case I have a small inverter I can plug in my truck in the garage to run electricity until that battery drops too much. For the hard core I ran Anderson power pole connectors off the back of the power station so I can plug in my ham radios here in the shack so I could stay on the air there as well.

root@bugz:/home/jturning# pwrstat -status

The UPS information shows as following:

Properties:
Model Name................... CP 1300C
Rating Voltage............... 120 V
Rating Power................. 750 Watt

Current UPS status:
State ....................... Normal
Power Supply by ............. Utility Power
Utility Voltage ............. 120 V
Output Voltage............... 120 V
Battery Capacity ............ 89 %
Load ........................ 12 %
Remaining Runtime ........... 40 min.
Line Interaction............. None


root@bugz:/home/jturning# pwrstat -config

Daemon Configuration:

Alarm .............................................. Off

Action for Power Failure:

Delay time since Power failure ............. 600 sec.
Run script command ......................... Off
Path of script command ..................... /etc/pwrstatd-powerfail.sh
Duration of command running ................ 0 sec.
Enable shutdown system ..................... Off

Action for Battery Low:

Dealy time since Battery Low ............... 5 sec.
Run script command ......................... Off
Path of command ............................ /etc/pwrstatd-lowbatt.sh
Duration of command running ................ 0 sec.
Enable shutdown system ..................... On



Bugz
Image
User avatar
jturning
 
Posts: 221
Joined: Wed Sep 13, 2006 1:11 pm
Location: Rancho Cordova

Return to Tech Show Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron