補足お願いします。A/Iも。 > 田中先生
host cable software script 落とす対象 onbattery doshutdown
のような表があると分かり易くてありがたいです。
???
/usr/lib/powerchute
wget http://sourceforge.net/projects/apcupsd/files/rpms%20-%20Stable/3.14.8/apcupsd-3.14.8-1.el5.i386.rpm/download rpm -ivh apcupsd-3.14.8-1.el5.i386.rpm
# UPSCABLE <cable> # Defines the type of cable connecting the UPS to your computer. UPSTYPE usb # The ONBATTERYDELAY is the time in seconds from when a power failure # is detected until we react to it with an onbattery event. # # This means that, apccontrol will be called with the powerout argument # immediately when a power failure is detected. However, the # onbattery argument is passed to apccontrol only after the # ONBATTERYDELAY time. If you don't want to be annoyed by short # powerfailures, make sure that apccontrol powerout does nothing # i.e. comment out the wall. ## バッテリー駆動に切り替わってから無視する秒数 ## alert がうるさいので長め(60sec)に設定 ONBATTERYDELAY 60 # Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so # the first that occurs will cause the initation of a shutdown. # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. BATTERYLEVEL 5 <= default # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. ## /etc/init.d/apcupsd status で TIMELEFT が計算されて出るもののみ有効 MINUTES 3 <= default
sshtimeout=5 ssh="/usr/bin/ssh -o ConnectionTimeout=$sshtimeout"
root> /etc/init.d/sendmail start Starting sendmail: [ OK ] Starting sm-client: [ OK ]
rc[2345].dの *80sendmail を S80sendmail に rename
計算機(UPS signalを受ける)シャットダウンの最後に UPS off のコマンドが送られ、 それから 180sec 後に UPS が sleep 状態に入る。 (それまでに計算機を再起動すると、当然落ちる。) 一旦、手動で UPS の電源 off をして、再度 on にする。
"aste-1s" ) linux="aste-1x aste-r1c" solaris="aste-3c aste-2c aste-c1c aste-v1c aste-1c" "aste-1x" ) linux="aste-r1c" solaris="";; "aste-ax2" ) linux="aste-ax1 aste-ax3" solaris="aste-at3";; "aste-mx2" ) linux="aste-mx1 aste-mz2" solaris="aste-mt2";; "aste-www" ) linux="" solaris="";; "aste-wx2" ) linux="aste-wx1 aste-wz1" solaris="aste-w";;
- apcupsd の install と サービス起動 - wx2, mx2 と同じ /etc/apcupsd を rsync - sendmail 起動。rc[2-5].d の sendmail 起動設定変更 (rc5.d> mv K30sendmail S80sendmail)
/usr/lib/powerchute/ssh_shutdown のlinux系用のコマンドの /usr/sbin/shutdown -h -y now のところは、 /sbin/shutdown -h now とするべき
/usr/lib/powerchute/powerchute.log 200001 11/16/11 17:00:59 UPS on battery: High input line voltage 123.8 V 100300 11/16/11 17:03:58 Normal power restored: UPS on line /usr/lib/powerchute/powerchute.dat date, time, Vmin, Vmax, Vout, Vbat, freq, load%, temp, 11/16/11,16:57:08,101.5,105.1,104.4,27.27,60.00,039.0,036.4, , 11/16/11,17:07:08,101.5,118.0,098.6,26.19,59.50,040.9,031.9, , 11/16/11,17:17:09,105.8,109.4,098.6,27.54,59.50,041.6,028.8, ,
通常運転時はサージ抑制器、フィルタ、インバータを介して負荷にAC電源を供給。 電源障害時およびフィルタにて除去出来ない電圧波形が進入した場合に バッテリ運転に切り替えAC電源を供給。 通常運転時にインバータを利用してバッテリ充電を実施するため、 充電器が必要ないシンプルな回路。