安裝不斷電 APC Smart-UPS SUA1000 on Centos 6.5/Centos 7
Centos 6.6:
1. 要用光碟直接 按pbeagent-9.0.0-613.i386.rpm安裝
# rpm -ivh pbeagent-9.0.0-613.i386.rpm (安裝不了)
2.
# cd /opt/APC/PowerChuteBusinessEdition/Agent
# ./config.sh
# chkconfig --add PBEAgent
# chkconfig PBEAgent on
# /etc/init.d/PBEAgent start
# /etc/init.d/PBEAgent stop
# /etc/init.d/PBEAgent status
# /etc/init.d/httpd restart
Answer the questions as prompted. Here is an example configuration:
Username: *****
Password: ********
Repeat password: ********
Select cable type: 1 for smart signaling
Select serial port: 1 for /dev/ttyS0 (onboard port)
Are the settings correct? Yes
Start PowerChute now? Yes
Once PowerChute has been installed, you may access it via its web interface at:
http://SERVER_IP_ADDRESS:3052/
https://SERVER_IP_ADDRESS:6547/main
Log in with the username and password you defined previously.
Use the web interface to check the status of your APC UPS or to configure shutdown parameters.
* 愎電後後自動開機:
進入BIOS -> APM -> Restore AC Power Loss -> Power On
Centos 7: 由於隨附之CD Java 路徑:/bin/java/jre/1.6.0_19/bin/java 不能安裝,所以安裝 apcupsd
# yum install apcupsd apcupsd-cgi apcupsd-gui
# systemctl enable apcupsd
# systemctl start apcupsd
查看 DEVICE
# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 1.367021] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.387688] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
# cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.orig
修改 apcupsd.conf
# gedit /etc/apcupsd/apcupsd.conf
UPSNAME amstar
# UPSCABLE usb
UPSCABLE smart
# UPSTYPE usb
# DEVICE
UPSTYPE apcsmart
DEVICE /dev/ttyS0
How do I see/test current status of my UPS?
Type the following command:
# apcaccess
# apctest
# tail /var/log/apcupsd.events
- 發表回應前,請先登入