トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

FB-apcupsd

  Freebsd-11 で apc-upsd を動かす

UPS の設定変更

Smart-ups の設定を Modbus へ
   エンターをおしてメインメニューを表示し、上下キーで「セッテイ」に合わせてエンター
   上下キーで「メニュータイプ」に合わせてエンター
   下キーで「アドバンス」に合わせてエンター
   上下キーで「Modbus」に合わせてエンター
   下キーで「ユウコウ」に合わせてエンター
   元の画面に戻るまでEscキーを連打

source

https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/3.14.14/

apcupsd.conf

# シリアルの場合
UPSCABLE smart
UPSTYPE modbus
DEVICE /dev/ttyu0
#USBの場合
###UPSCABLE smart
###UPSTYPE usb
UPSCABLE usb
UPSTYPE modbus

動作確認

 # apcaccess status

応答内容
http://local.lipwood.com/note/apcupsd/apcupsd-apcaccess-param.htm
UPS電源断 コマンド
if [ -f /etc/apcupsd/powerfail ]; then
  /etc/apcupsd/apccontrol killpower
fi

Tips

http://www.on-sky.net/~hs/index.cgi?date=20140813

http://d.hatena.ne.jp/sillywalk7/20061021

! DIFF
3c3
< #  for apcupsd release 3.14.14 (31 May 2016) - freebsd
---
> #  for apcupsd release 3.14.13 (02 February 2015) - freebsd
14a15,18
> UPSCABLE usb
> UPSTYPE modbus
> # UPSTYPE usb
> DEVICE 
15a20
> 
34c39,41
< UPSCABLE smart
---
> # UPSCABLE usb
> # UPSCABLE smart
> # UPSCABLE 940-0625A
91,92c98,103
< UPSTYPE apcsmart
< DEVICE /dev/usv
---
> # UPSTYPE apcsmart
> # DEVICE /dev/usv
> # UPSTYPE apcsmart
> # UPSTYPE modbus
> ## DEVICE /dev/ttyu0
> # UPSTYPE usb
140c151,152
< ONBATTERYDELAY 6
---
> # ONBATTERYDELAY 6
> ONBATTERYDELAY 10
150c162,163
< BATTERYLEVEL 5
---
> # BATTERYLEVEL 5 ## DEFAULT 
> BATTERYLEVEL 15
155c168,169
< MINUTES 3
---
> # MINUTES 3 ## Default
> MINUTES 10
344a359,360
> 
>