CyberPower

1.範例:安裝對應版本1000va

https://www.cyberpower.com/tw/zh/product/sku/cp1000avrlcda#downloads

2.dbkg -i cyberpower.deb

3.查看 pwestat -status

4. show pwestat-config

他的shll都在 /etc/sh下
hibernate.sh 休眠
pwrstatd-email.sh 樣板
pwrstatd-lowbatt.sh 低電量執行
shutdown.sh

設定檔 /etc/pwrstatd.conf
Power Failure 停電事件

powerfail-delay = 60
0~3600秒
延遲n秒後,執行 script、shutdown
powerfail-active = yes
yes | no
允許執行 script
powerfail-cmd-path = /etc/pwrstatd-powerfail.sh
pwrstatd-powerfail.sh 路徑
powerfail-duration = 0
0~3600秒
script 執行秒數
powerfail-shutdown = yes
yes | no
允許 deamon 執行關機動作

Battery Low 低電量事件
lowbatt-threshold = 35
0~90
電池剩幾 % 就觸發事件
runtime-threshold = 300
0~3600 秒
Remaining Runtime(剩餘可執行的分鐘數),低於幾秒後,觸發事件
優先權高於 shutdown-sustain
lowbatt-active = yes
yes | no
允許執行 script
lowbatt-cmd-path = /etc/pwrstatd-lowbatt.sh
pwrstatd-lowbatt.sh 路徑
lowbatt-duration = 0
0~60秒
script 執行秒數
lowbatt-shutdown = yes
yes | no
允許 deamon 執行關機動作
enable-alarm = yes
yes | no
允許警報
shutdown-sustain = 600
0~3600秒
系統關機所需時間
遇到低電量事件,若低於此「關機所需時間」,會直接關機
turn-ups-off = yes
yes | no
一旦由於電源事件而導致系統關機,Daemon將關閉UPS電源
ups-polling-rate = 3
1~60秒
詢問 UPS 的頻率
ups-retry-rate = 10
1~300秒
沒問到 UPS,則多久重試一次
prohibit-client-access = no
禁止與 client 端通訊
allowed-device-nodes =
支援四種節點裝置 ttyS, ttyUSB, hiddev, libusb
寫法
/dev/ttyS1;/dev/ttyS2;/dev/hiddev1
ttyS;ttyUSB #包含了 ttyS0~SN, ttyUSB0~N
hibernate = yes | no
使用休眠,當事件發生,用休眠取代關機
修改完 需 /etc/init.d/pwrstatd restart

來源:https://www.latech.tw/2017/11/ubuntu-ups-cyberpower-cp1000pfclcd.html

本篇發表於 未分類。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>