It may be necessary to change the configuration information in the file /etc/apcupsd/apcupsd.conf to meet your needs and to correspond to your configuration. This file is a plain ASCII file and you can use your favorite editor to change it.
Configuration directives in /etc/apcupsd/apcupsd.conf are:
Keyword | APC Model | Signaling | Status |
|---|---|---|---|
| backups | BackUPS | Simple | Supported |
| sharebasic | ShareUPS Basic Port | Simple | Supported |
| backupspro | BackUPS Pro | SubSmart | Supported |
| smartvsups | SmartUPS VS | SubSmart | Supported |
| newbackupspro | Smarter BackUPS Pro | SubSmart | Supported |
| backupspropnp | Smarter BackUPS Pro | SubSmart | Supported |
| smartups | SmartUPS | Smart | Supported |
| matrixups | MatrixUPS | Smart | Supported |
| sharesmart | ShareUPS Advanced Port | Smart | Being tested |
The values specified with the following directives are only used if the --configure option is specified on the apcupsd command line, and the UPS is capable of internal EPROM programming. In that case, apcupsd attempts to set the values into the UPSes EPROM.
Under normal operations, the values for these parameters specified in the configuration file are not used. Instead, they are read from the UPS EPROM by apcupsd. See the EEPROM programming section of this manual for further details.
デフォルトは standalone で、UPSから電源供給を受け、UPSとのシリアルポート接続を持つ全てのマシンで使われるはずです。同じ電源から供給を受ける依存性のあるコンピュータが他にないならです。これは通常の場合です。
同じUPSから電源を供給しているほかのマシンがあって、UPSへのシリアルポート接続があるなら、netmaster を使ってください。
もし、UPSへのシリアルポート接続がなくて、そのUPSから電源を供給されているなら、netslave を使ってください。
もしShareUPSを使っていて、BASICポートへシンプルシグナルで接続されているなら、shareslave を使ってください。このコードは充分テストされていません。
もしShareUPSを使っていて、ADVANCEDポートスマートシグナルコントロールへ接続されているなら、sharemaster を使ってください。このコードは充分テストされていません。
[ share | sharenet ] は現在テスト中です。
通常スタンドアローンオペレーションでは、マスター/スレーブネットワーキングを無効化していることを示すため、UPSMODE に disable を設定します。
しかし、もし1台のUPSから数台のコンピュータへ電源を供給していてマスター/スレーブコンピュータと設定しているなら、この値を net と設定します。
shareは、SmartUPS用のSmartアクセサリ上の2もしくは7追加シンプルシグナルポートを使う場合に使ってください。share および sharenet は充分にテストされていません。
ネットワークインフォメーションサーバのための異なるポート番号は、SERVERPORT ディレクティブによって定義されます。
スレーブマシンは、マスタからのシャットダウンのリクエスト、或いは設定された TIMEOUT、BATTERYLEVEL、MINUTES 経過(これらは動作するはずだが充分テストされていない)に達したときのいずれか早いほうでシャットダウンします。従って、スレーブにマスターより先にシャットダウンし始めて欲しいならば、コンフィギュレーション・ファイルの値を調節することによってそうすることができます。スレーブに、マスターがシャットダウンするまで残っていて欲しいなら、TIMEOUT、BATTERYLEVELおよびMINUTESに全てゼロを設定するべきです。
スレーブが正しく動作するためには、スレーブコンフィグレーションファイル中のUPSTYPEをマスターコンフィグレーションファイルのそれと同じにしなくてはなりません。
It should be noted that the master and slaves continue to communicate over the network even after the master has issued a shutdown command to the slaves. This is because the master apcupsd continues to run until it receives the shutdown signal from the system. This is important to ensure that all the slaves have been properly notified of the shutdown.
We recommend that the machine names used on the MASTER and SLAVE directives be put in your /etc/hosts file so that apcupsd will be able to resolve the machine name during startup and shutdown even if DNS is not running.
上で示したとおり、マスタとスレーブはマスタがシャットダウン指令をスレーブへ発行したあともネットワーク上で通信を続けなくてはなりません。これは、マスターがシステムからシャットダウン信号を受け取るまで、マスターの apcupsd が動きつづけるからです。これは、全てのスレーブが正しくシャットダウンを知らされるために重要です。
MASTER および SLAVE で使われるマシン名は、/etc/hosts へ記述しておくことをお勧めします。これにより、起動時やシャットダウン時にDNSが動いていなくても、apcupsd がマシン名の解決を出来ます。