作者psilotum (好小孩)
看板FreeBSD
标题[分享] UPS的设定/心得
时间Tue Apr 15 06:40:48 2003
I. 前言
去年买了个 UPS ,不过一直懒得去测试到底停电之後能不能安全 Shutdown
还有到底能不能由COM1控制 UPS,因为dmesg并没有相关的讯息,後来突然熊熊发现
所附的光碟里头有支援FreeBSD的 ups daemon,因此
小弟就把一些经验分享给大家,如果有什麽漏误还请诸位大大指正。
II.规格
厂牌:台达电不断电供应系统(Delta UPS)
型号:S-series; S-650
类型:离线式(Off-Line) UPS
用途:个人工作站使用。
网页:
http://www.deltaww.com/products/ups/s.htm (English)
http://www.deltaww.com/ups/products/hardware/s650_series.htm (中文)
通讯介面: RS232 via com1 or com2 (/dev/cuaa0; /dev/cuaa1)
所附的软体:电力管理大师2000(UPSentury Smart 2000)
(
http://www.deltaww.com/ups/products/software/manager.htm)
III. 网路资源/文件
For FreeBSD说明:
http://www.deltaww.com/ups/products/software/spec_freebsd.htm
同时这个网页上也有简繁体、英文的pdf档使用说明。
IV. 测试平台及软体版本
测试平台: 4.8-STABLE
安装版本: FreeBSD 3.4 3.01.10版
V. 安装
简易安装:若要更详细的安装过程说明,请参阅官方网站上的说明。
1. 解压缩 freebsd3_4.tar
#tar -xvf freebsd3_4.tar
2. 利用所附的 install shell安装
#./install
3. 之後会 step by step去设定安装的资料夹
Master / Slave 等问题,就依照个人需求
设定。
--> 详细安装过程:
i. 安装开始,选择安装的目录:
The default destination directory is" /usr/local/smart ".
Enter your new destination directory below,
or just press 'Enter' key for default.
New destination directory:
(直接按 Enter 接受预设。)
ii. 是否确定要安装 UPSentry Smart 2000这个程式?
Do you want to install the UPSentry Smart 2000 now ?[y|n]
(按 y 继续安装程序。)
iii.选择安装的介面:
Please enter the COM port which connects to your UPS."
For example: COM1 is /dev/cuaa0, COM2 is /dev/cuaa1."
COM Port:
(我是接在COM1 port, 所以我键入 /dev/cuaa0)
iv. 输入主机的ip(rs232连线的主机)
Please enter the IP address of the master
which this computer will connect to.
IP address is :
(输入您的ip: ex:140.112.250.151)
v. 选择通讯的模式:
Please select the communication mode.
1. Master:
If this computer connects to an UPS directly(RS232 or USB)
and will administrate the UPS.
2. Serial Slave:
If this computer connects to an UPS directly(RS232 or USB)
but will only monitor the UPS.
3. Networking Slave:
If this computer powered by an UPS but doesn't communicate
with the UPS directly.
Please enter '1' for Master, '2' for Serial Slave or '3' for
Networking Slave:
(我选择1,直接连线,Master模式。)
vi. 是否启动UPS daemon
Do you want to start upsd now ?[y|n]
(我选择 y)
vii.启动 upsd
Starting upsd ...
*下次 reboot之後,就会自动启动 upsd
4. 其他的问题在网页上的pdf档都写得蛮详尽的,我也正在阅读中。
V. 设定问题
相关设定:还在阅读中 ^^;
VI.附录:
A. 以下罗列出ports底下有的 upsd 软体
Port: apcupsd-3.8.6
Path: /usr/ports/sysutils/apcupsd
Port: bkpupsd-1.0a
Path: /usr/ports/sysutils/bkpupsd
Port: mgeupsd-0.3
Path: /usr/ports/sysutils/mgeupsd
Port: upsd-2.0.1.6_1
Path: /usr/ports/sysutils/upsd
B. screenshot
http://tchaikovsky.m7.ntu.edu.tw/~psilotum/img/upsd_main.jpg
upsd_scroll.jpg
upsd_diagram.jpg
upsd_config.jpg
如果有错误,还希望各位指正,多谢。 :)
--
※ 发信站: 批踢踢实业坊(ptt.csie.ntu.edu.tw)
◆ From: 140.112.250.151