[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:47722] Re: UPSの自動シャットダウンについて



おがわと申します。

06/12/04 に Takeshi kondo<debian-user@xxxxxxxxxxxxx> さんは書きました:
先週金曜から体調を崩してしまい休んでいましたので、
返事が遅れました。すみません。

寒くなってきましたね。お大事になさってください。


さて、apcaccessはapcupsdが動いていないと使えません。
ですので、
debian:/etc/apcupsd# apcaccess
FATAL ERROR in apcaccess.c at line 243
tcp_open: cannot connect to server localhost on port 3551.
ERR=Connection refused

これは単に「apcupsdに接続できなかった」という意味です。
で、apcupsdが動いていない状態で使えるのがapctestですが、

PANIC! Cannot communicate with UPS via serial port.
Please make sure the port specified on the DEVICE directive is correct,
and that your cable specification on the UPSCABLE directive is correct.
apctest FATAL ERROR in smartsetup.c at line 177

と言われているように、DEVICE設定やUPSCABLE設定が間違っていて
UPSと通信が出来ていないということが考えられます。
現状の/etc/apcupsd/apcupsd.confの設定はどうなっていますか?
UPSCABLE, UPSTYPE, DEVICEのあたりを教えてください。

また、/dev/ttyS0としているようですが、UPSの接続先がS0ではないとか
USBで接続しているとかではないですよね?(940-0024Cとしている部分からも
否定はできますが、念のため)


うちの環境はsidなので、ちょっとバージョンが違うので表示が違うと思いますが、
成功すると以下のように出てくるはずです。

2006-12-04 11:56:24 apctest 3.12.4 (19 August 2006) debian
Checking configuration ...
Attached to driver: apcsmart
sharenet.type = DISABLE
cable.type = APC_940_0024C (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.
(以下、メニュー)




06/12/04 に Takeshi kondo<debian-user@xxxxxxxxxxxxx> さんは書きました:
お世話になります。
先週金曜から体調を崩してしまい休んでいましたので、
返事が遅れました。すみません。

使用しているUPSですが、
Smart-UPS 750でDELLオンラインストアにて購入したものです。

あとアドバイス頂きました設定で試してみましたが、
正常に動きませんでした。
apcaccessとapctestを実行したところ、
以下のようなエラーが出ます。
DELLオンラインストアで販売されているUPSは
仕様が特殊なのでしょうか。

debian:/etc/apcupsd# apcaccess
FATAL ERROR in apcaccess.c at line 243
tcp_open: cannot connect to server localhost on port 3551.
ERR=Connection refused


debian:/etc/apcupsd# apctest
2006-11-29 17:10:34 apctest 3.10.17 (18 March 2005) debian
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
mode.type = SMART
Setting up the port ...
apctest FATAL ERROR in smartsetup.c at line 177
PANIC! Cannot communicate with UPS via serial port.
Please make sure the port specified on the DEVICE directive is correct,
and that your cable specification on the UPSCABLE directive is correct.
apctest FATAL ERROR in smartsetup.c at line 177
PANIC! Cannot communicate with UPS via serial port.
Please make sure the port specified on the DEVICE directive is correct,
and that your cable specification on the UPSCABLE directive is correct.
apctest error termination completed






--
-------------------------
Shu OGAWA
   breezegale@xxxxxxxxx
   http://www.studiotsc.com/~gale/d/