Blog

Configuring an APC Back-UPS RS 800VA

Apr 26, 2007 | 2 minutes read
Share this:

Tag: UPS

— /usr/local/etc/apcupsd/apcupsd.conf.sample Thu Jun 29 20:42:09 2006 +++ /usr/local/etc/apcupsd/apcupsd.conf Tue Jul 4 21:58:32 2006 @@ -26,7 +26,8 @@

940-1524C, 940-0024G, 940-0095A, 940-0095B,

940-0095C, M-04-02-2000

-UPSCABLE smart +#UPSCABLE smart +UPSCABLE usb

To get apcupsd to work, in addition to defining the cable

above, you must also define a UPSTYPE, which corresponds to

@@ -63,8 +64,9 @@

dumb /dev/tty** Old serial character device for use

with simple-signaling UPSes.

-UPSTYPE apcsmart -DEVICE /dev/usv +#UPSTYPE apcsmart +UPSTYPE usb +#DEVICE /dev/usv

LOCKFILE <path to lockfile>

You are using a USB cable type, so I’m entering USB test mode mode.type = USB_UPS Setting up the port … Hello, this is the apcupsd Cable Test program. This part of apctest is for testing USB UPSes.

Getting UPS capabilities…SUCCESS

Please select the function you want to perform.

  1. Test kill UPS power
  2. Perform self-test
  3. Read last self-test result
  4. Change battery date
  5. View battery date
  6. View manufacturing date
  7. Set alarm behavior
  8. Quit

Select function number: 2

This test instructs the UPS to perform a self-test operation and reports the result when the test completes.

Clearing previous self test result…CLEARED Initiating self test…INITIATED Waiting for test to complete…TEST DID NOT COMPLETE

  1. Test kill UPS power
  2. Perform self-test
  3. Read last self-test result
  4. Change battery date
  5. View battery date
  6. View manufacturing date
  7. Set alarm behavior
  8. Quit

Select function number: 3

Result of last self test: PASSED […]

/usr/local/etc/rc.d/apcupsd start

I recently installed and configured an APC Back-UPS RS 800VA, which is an UPS aimed to be a high performance battery backup and protection for business computers. As i run some machines at home (servers and workstations), this kind of protection became more than necessary.

The main point is to properly install and configure apcupsd. Using the FreeBSD's ports collection and a recent FreeBSD RELENG_6 system, all will works out of box.

So, after plug in the USB cable for the very first time, you can see this in your /var/log/messages file:

ugen0: American Power Conversion Back-UPS BR  800 FW:9.o2 .I USB FW:o2, rev 1.10/1.06, addr 2

Good. Just configure apcupsd to learn it about UPSCABLE and UPSTYPE value:

# diff -u /usr/local/etc/apcupsd/apcupsd.conf.sample /usr/local/etc/apcupsd/apcupsd.conf