CentOS5でapcupsdを使うとき
Smart-UPS 1000 について : システム構築に関する覚書
を参照した。
service apcupsd start してサービス起動した状態でステータスをみてみよう。
[root@pcdo log]# /sbin/apcaccess status
APC : 001,051,1208
DATE : Sun Jun 15 17:13:38 JST 2008
HOSTNAME : pcdo.local
RELEASE : 3.12.3
VERSION : 3.12.3 (26 April 2006) redhat
UPSNAME : UPS_IDEN
CABLE : Custom Cable Smart
MODEL : Smart-UPS 1000
UPSMODE : Stand Alone
STARTTIME: Sun Jun 15 17:08:12 JST 2008
STATUS : ONLINE
LINEV : 101.5 Volts
LOADPCT : 8.4 Percent Load Capacity
BCHARGE : 100.0 Percent
TIMELEFT : 135.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
MAXLINEV : 102.2 Volts
MINLINEV : 100.8 Volts
OUTPUTV : 101.5 Volts
SENSE : High
DWAKE : 000 Seconds
DSHUTD : 180 Seconds
DLOWBATT : 02 Minutes
LOTRANS : 092.0 Volts
HITRANS : 108.0 Volts
RETPCT : 000.0 Percent
ITEMP : 27.4 C Internal
ALARMDEL : 5 seconds
BATTV : 27.5 Volts
LINEFREQ : 50.0 Hz
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STESTI : 336
STATFLAG : 0×07000008 Status Flag
REG1 : 0×00 Register 1
REG2 : 0×00 Register 2
REG3 : 0×00 Register 3
MANDATE : 02/08/05
SERIALNO : AS*********
BATTDATE : 02/08/05
NOMOUTV : 100
NOMBATTV : 24.0
EXTBATTS : 0
FIRMWARE : 600.12.A
APCMODEL : FWA
END APC : Sun Jun 15 17:14:04 JST 2008
こんな感じで帰ってくればきちんと認識している。
もうひとつテスト。
バッテリーキャリブレーションしてみよう。
[root@pcdo ]# /sbin/apctest
2008-06-15 17:19:09 apctest 3.12.3 (26 April 2006) redhat
Checking configuration …
Attached to driver: apcsmart
sharenet.type = DISABLE
cable.type = CUSTOM_SMART
You are using a SMART cable type, so I’m entering SMART test mode
Unknown mode.type: 11
Setting up the port …
Hello, this is the apcupsd Cable Test program.
This part of apctest is for testing Smart UPSes.
Please select the function you want to perform.
1) Query the UPS for all known values
2) Perform a Battery Runtime Calibration
3) Abort Battery Calibration
4) Monitor Battery Calibration progress
5) Program EEPROM
6) Enter TTY mode communicating with UPS
7) Quit
Select function number: 2
First ensure that we have a good link and
that the UPS is functionning normally.
Simulating UPSlinkCheck …
Wrote: Y Got: SM
Attempting to use smart_poll() …
Sent: Y Got: SM Good — smart_poll() works!.
Checking estimated runtime …
Current runtime is 135 minutes
Checking for battery level …
Battery level is 100.0 — OK
The battery calibration should automatically end
when the battery level drops below about 25, depending
on your UPS.
I can also optionally monitor the progress
and stop the calibration if it goes below 10. However,
in the case of a new battery this may prematurely end the
calibration loosing the effect.
Do you want me to stop the calibration
if the battery level goes too low? (y/n): y
Sending Battery Calibration command. …
UPS has initiated battery calibration.
Monitoring the calibration progress …
To stop the calibration, enter a return.
Battery charge 72
Remaining runtime is 97 minutes
…..
Battery charge 59
Remaining runtime is 79 minutes
…..
Battery charge 59
Remaining runtime is 79 minutes
…..
Battery charge 64
Remaining runtime is 86 minutes
…..
Battery charge 59
Remaining runtime is 86 minutes
..
こんな感じでテストしてゆく。
TrackBack URI : http://www.inohome.net/kuma/blog/archives/2008/06/post_1405.html/trackback






