From owner-FreeBSD-users-jp@jp.FreeBSD.org Tue Mar  6 18:10:11 2007
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id l269ABX05568;
	Tue, 6 Mar 2007 18:10:11 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from mailx.rtri.or.jp (mailx.rtri.or.jp [210.254.18.75])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id l269ABw05563
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Tue, 6 Mar 2007 18:10:11 +0900 (JST)
	(envelope-from pine@rtri.or.jp)
Received: from ipc05.rtri.or.jp (ipc05.rtri.or.jp [192.244.163.70])
	by mailx.rtri.or.jp (Postfix) with ESMTP id 5220F3981F
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Tue,  6 Mar 2007 18:10:11 +0900 (JST)
Received: from ipc10.rtri.or.jp (ipc10.rtri.or.jp [192.244.163.21])
	by ipc05.rtri.or.jp (Postfix) with ESMTP id E469FA6C23
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Tue,  6 Mar 2007 17:44:54 +0900 (JST)
Received: from ipc10.rtri.or.jp (localhost [127.0.0.1])
	by localhost.rtri.or.jp (Postfix) with ESMTP id 0E118249C56;
	Tue,  6 Mar 2007 18:10:11 +0900 (JST)
Received: from ipc02.rtri.or.jp (ipc02.rtri.or.jp [192.244.163.10])
	by ipc10.rtri.or.jp (Postfix) with ESMTP id DAD19249C55;
	Tue,  6 Mar 2007 18:10:10 +0900 (JST)
Received: from compaq-332 (compaq-332.rtri.or.jp [192.168.135.132])
	by ipc02.rtri.or.jp (Postfix) with ESMTP id AE3201A53;
	Tue,  6 Mar 2007 18:10:09 +0900 (JST)
To: FreeBSD-users-jp@jp.FreeBSD.org
Cc: pine@rtri.or.jp
From: Kenji MATSUOKA <pine@rtri.or.jp>
Message-Id: <200703061810.ABB21876.JOQF@rtri.or.jp>
X-Mailer: Winbiff [Version 2.51 beta1]
X-Accept-Language: ja,en
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 6 Mar 2007 18:10:09 +0900
X-Sequence: FreeBSD-users-jp 90417
Subject: [FreeBSD-users-jp 90417] Apcuspd =?ISO-2022-JP?B?GyRCJEcbKEI=?=
 =?ISO-2022-JP?B?GyRCRGQ7XzhlISIbKEI=?= boot
 =?ISO-2022-JP?B?GyRCJVclbSVzJVclSCRHNS9GMERkO18hKRsoQg==?=
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: pine@rtri.or.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

$B>>2,$H?=$7$^$9!#(B

apcupsd$B$K$FDdEE8!CN8e$N:F5/F0$G(Bboot$B$,=PMh$^$;$s!#(B
$BBP1~J}K!$N%R%s%HEy$r65$($F$$$?$@$1$^$;$s$G$7$g$&$+!)(B

$B4D6-!'(B
HD: Dell PowerEdge 2950(RAID-1 X 2)
OS: FreeBSD6.2Release
UPS: APC-Smartups1500($B%7%j%"%k%1!<%V%k7?HV(B 940-0024D)

$B9T$J$C$?;v!'(B
(1)apcupsd-3.14.tar.gz$B$r%=!<%9$+$iF3F~(B

tar zxvf apcupsd-3.14.0.tar.gz
pushd apcupsd-3.14.0
./configure --enable-cgi --with-cgi-bin=/etc/apcupsd/cgi-bin \
            --enable-usb
gmake
gmake install

apcupsd.conf$B$N=$@58D=j(B($B%7%j%"%k%G%P%$%9$H%?%$%`%"%&%HCM$NJQ99(B)
o DEVICE /dev/cuad0
o TIMEOUT 30

$B<+F05/F0@_Dj(B
echo "/etc/rc.apcupsd start" >> /etc/rc.local

(2)$B%W%m%0%i%`$N5/F0(B
->/etc/rc.apcupsd start
<-Starting apcupsd power management  Done.

(3)$B5<;w=VDd(B(UPS$B$NEE8;%3!<%I$rH4$-D>$A$KLa$9(B)
->Power failure.
->Running on UPS batteries
->Mains returned. No longer on UPS batteries.
->Power is back. UPS running on mains.

(4)$BDdEE(B(UPS$B$NEE8;%3!<%I$rH4$/(B)
->Power failure.
->Running on UPS batteries
->Reached run time limit on batteries.
->Initiating system shutdown!
->User logins prohibited
->Attempting to kill the UPS power!
->UPS will power off after 90 seconds ...
->Please power off your UPS before rebooting your computer ...
             :
apcupsd exiting, signal 15
apcupsd shutdown succeeded
apcupsd FATAL ERROR in smart.c at line 205
Select error on UPS FD. Bad file descriptor
             :
The operating system has halted.
Please press any key to rebbot.

$B$3$N8e!"(BUPS$B<+?H$,@5>o$K%7%c%C%H%@%&%s$7$^$9!#(B

(5)$B:F5/F0(B(UPS$B$NEE8;$rA^$9(B)
$B0J2<$N%a%C%;!<%8$GDd;_$7$F$7$^$$$^$9!#(B

FreeBSD/i386 boot
Default:0:ad(0,a)/boot/loader
boot:

$B$3$3$G(BEnter$B%-!<$r2!$;$P@5>o$K5/F0$7$^$9!#(B

$B5/F08e$N!V(Bdf -k$B!W(B

Filesystem    1K-blocks    Used     Avail Capacity  Mounted on
/dev/mfid0s1a  xxxxxxxx   xxxxx  xxxxxxxx     x%    /
devfs                 1       1         0   100%    /dev
/dev/mfid1s1d xxxxxxxxx     xxx xxxxxxxxx     x%    /home
/dev/mfid0s1f  xxxxxxxx  xxxxxx  xxxxxxxx     x%    /tmp
/dev/mfid0s1e  xxxxxxxx xxxxxxx  xxxxxxxx     x%    /usr
/dev/mfid0s1d  xxxxxxxx xxxxxxx  xxxxxxxx    xx%    /var

$B"((B/dev/ad0s1a$B$O$"$j$^$;$s!#(B

$B"((B/boot/loader.conf$B$K$O0J2<$N#19T$N$_(B
$B"((B  accf_http_load="YES"

$B$h$m$7$/8f4j$$$7$^$9!#(B

---
m a i l t o : pine <at> rtri . or . jp
