如何配置 apcupsd 以与 Back-UPS XS 1300 配合使用?
答案1
1) 编辑/etc/apcupsd/apcupsd.conf
以包含 UPSNAME,将UPSCABLE
和更改USPTYPE
为usb
并注释设备行,例如:
UPSNAME KyleUPS UPSCABLE USB #UPSTYPE apcsmart UPS类型 usb #设备 /dev/ttyS0
2)/etc/default/apcupsd
改为 ISCONFIGURED
“是”:
ISCONFIGURED=yes
3)开始apcupsd
于:
sudo service apcupsd start
4)使用apcaccess
命令测试:
kbrandt@alpine:/var/log$ sudo apcaccess
APC : 001,036,0901
DATE : 2012-05-05 14:46:50 -0500
HOSTNAME : alpine
VERSION : 3.14.10 (13 September 2011) debian
UPSNAME : KyleUPS
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2012-05-05 14:38:45 -0500
MODEL : Back-UPS XS 1300G
STATUS : ONLINE
LINEV : 115.0 Volts
LOADPCT : 22.0 Percent Load Capacity