Created
May 17, 2012 02:35
-
-
Save Thermionix/2715786 to your computer and use it in GitHub Desktop.
APC SC1000 UPS apcupsd usb serial adapter configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was very helpful. Thank you.