1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Debian Configure/Test Instructions for bpowerd v2.2
Run the following tests
with the UPS into a powerstrip or something with a switch (DO NOT just unplug
the UPS to test the software, it is EXTREMELY bad for the UPS), after each of
steps 4, 5, and 6 check to see if shutdown was actually run or cancelled ("ps
aux | grep shutdown" should do the trick)
1) Create a symbolic link from /dev/ups -> /dev/ttySx
where ttySx is the serial port plugged into the UPS
2) check /etc/inittab to make sure that it there are lines that look something
like this in them: (they don't have to be consecutive, just present)
pf::powerfail:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
pg::powerokwait:/etc/init.d/powerfail stop
3) check /etc/init.d/powerfail to make sure it takes the actions you
want it to.
4) Turn the UPS and computer on
5) run "/usr/sbin/bpowerdebug /dev/ups" (or wherever you ran make)
6) turn the power off to the UPS and check to see if the inverter check fails
7) turn the power back on and see if the program recognizes the return of power
8) turn the power back off and wait for an alarm condition and check to see if
the program recognizes an alarm
If you want to test the inverter on the UPS, do the following:
1) Make sure your computer is drawing power from something other than the
UPS.
2) Make sure bpowerd is not running. If it is, kill it with a TERM
signal. (or just run '/etc/init.d/bpowerd stop')
3) Turn off the power leading to the UPS.
3) Run '/usr/sbin/bpowerd -k /dev/ups'
4) Wait 120 seconds. Power supply should beep 7 times then cycle power.
That's it.
|