APC Back-UPS ES 700G under Ubuntu

# install
apt-get install -y apcupsd
 
# configure
sed -i 's|UPSCABLE smart|UPSCABLE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|UPSTYPE apcsmart|UPSTYPE usb|g' /etc/apcupsd/apcupsd.conf
sed -i 's|DEVICE /dev/ttyS0|DEVICE|g' /etc/apcupsd/apcupsd.conf
sed -i 's|ISCONFIGURED=no|ISCONFIGURED=yes|g' /etc/default/apcupsd
 
# start apcupsd demon
/etc/init.d/apcupsd start
 
# get status
apcaccess status
 
# configure
/etc/init.d/apcupsd stop
apctest
 
# monitor
tail -f /var/log/apcupsd.events
 
# OPTIONAL: configure /etc/apcupsd/apccontrol

Links
http://www.apcupsd.com/manual/manual.html
http://www.linuxcertif.com/man/8/apcaccess/