Personal tools
You are here: Home コンピュータ Linux Tips Utility Tips UPSの設定
Document Actions

UPSの設定

by すぎお last modified 2007-10-28 20:48

APC CS500 (BK500JP)の設定

APC CS500 (BK500JP)の取説に従って接続する。

APCのUPS用のデーモンをインストール

# aptitude update;aptitude install apcupsd apcupsd-cgi

apcupsd-cgiは、APCのUPSのステータスをWeb上で見るためのCGIです。

接続メッセージの確認

# dmesg | grep APC

当方のDebian GNU/Linuxの環境では /dev/の下にデバイスファイルがなかったので

# /usr/share/doc/apcupsd/examples/make-hiddev

を実行してデバイスファイルを作成する。

/dev/usb/hid以下にデバイスファイルが作成されている。

必要パッケージを追加インストールする。

# aptitude install udev hal

/etc/apcupsd/apcupsd.confを編集する。

# defines the type of cable that you have. UPSCABLE usb
# defines the type of UPS you have. UPSTYPE backups
# Here a table of the possible devices related with the UPS drivers.
DEVICE /dev/usb/hiddev0
UPSTYPE backups
TIMEOUT 300
UPSCABLE usb

/etc/default/apcupsdのISCONFIGUREDを、編集する。

# Apcupsd-devel internal configuration
APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes

デーモンをスタートする。

# /etc/init.d/apcupsd start

« January 2009 »
Su Mo Tu We Th Fr Sa
123
45678910
11121314151617
18192021222324
25262728293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: