Skip to content

Instantly share code, notes, and snippets.

@Thermionix
Created May 17, 2012 02:35
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Thermionix/2715786 to your computer and use it in GitHub Desktop.
Save Thermionix/2715786 to your computer and use it in GitHub Desktop.
APC SC1000 UPS apcupsd usb serial adapter configuration
# use lsusb to find the details of the serial adapter to create a udev rule
~$ lsusb | grep Serial
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
# based on the output from lsusb add a rule to /etc/udev/rules.d/local.rules
~$ cat /etc/udev/rules.d/local.rules
#Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port"
ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="067b", ENV{ID_MODEL_ID}=="2303", SYMLINK+="apc-usb"
##########
# set /etc/apcupsd.conf to use the new device
~$ head /etc/apcupsd.conf
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/apc-usb
##########
# After a reboot check the status of the UPS using
~$ sudo apcaccess status
@dhowdy
Copy link

dhowdy commented Dec 24, 2022

This was very helpful. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment