
CyberPower Personal Linux Software

Початок роботи
Ім'я
pwrstat Інструмент керування станом живлення ДБЖ.
Конспект

опис
pwrstat is an interface in PowerPaneI for Linux which allows users to receive UPS status and configure UPS settings.
Type the following command to list the manual: man pwrstat
Опції
Параметри pwrstat, їхні функції та напрampописано нижче:


Примітка 1
Наступні аргументи повинні слідувати за -pwrfail.

Примітка 2
Наступні аргументи повинні слідувати за -lowbatt.

Примітка 3
Наступні аргументи мають слідувати -хмара.

Примітка 4
- Параметри -pwrfail і -lowbatt потрібно встановити незалежно.
- Both the shell scripts pwrstatd-lowbatt.sh and pwrstatd-powerfail.sh will be copied to Jetc during the installation procedure.
- The parameter —cmd can be any shell script in the system, and it should be run as root to modify the settings.
- The default system settings for -pwrfail and -lowbatt
Ексampфайли для налаштування параметрів pwrstat
- Example 1: Configure the setting when a power failure event occurs. pwrstat -pwrfail -delay 60 -active on -cmd/etc/pwrstatd-powerfail.sh -duration 60 -shutdown on In the setting above, it will take 60 seconds to run a shell script named pwrstatd-powerfail.sh in the directory /etc, and the system will be shut down after a power failure event occurs for 60 seconds.
- Example 2: Configure the setting when the low battery event occurs. pwrstat-lowbatt -runtime -runtime -capacity -capacity – active on -cmd /etc/pwrstatd-lowbatt.sh -duration 1 -shutdown on In the setting above, it will take 1 minute to run a shell script named pwrstatd-lowbatt.sh in the directory /etc, and the system will be shut down when either the remaining runtime is less than 300 seconds, or the battery capacity is lower than 35%.
- ExampLe 3a: Налаштуйте підключення до PowerPanel Cloud.
pwrstat -cloud -active on -account example@cyberpower.com -пароль pass123
Assuming PowerPanel Cloud account/password: example@cyberpower.com / pass123. In the setting above, the connection to PowerPanel Cloud will be activated when users correctly enter their PowerPanel Cloud account and password. - ExampLe 3b: Перевірте підключення до PowerPanel Cloud.
pwrstat -перевірити
Щоб перевірити правильність облікового запису та пароля, введіть наведену вище команду.
Є три результати, описані нижче:
- Якщо і обліковий запис, і пароль правильні, система покаже Перевірити успішно.
- Якщо обліковий запис або пароль неправильні, система покаже Помилка підтвердження.
- When a network issue exists, the system will show Connect failed
Сторінка Демона
Ім'я
pwrstatd Демон стану живлення ДБЖ.
опис
pwrstatd is the daemon of PowerPanel for Linux, which runs immediately when the system starts up and communicates with the UPS.
Type the following command to list the operations and the configuration files of the daemon: man pwrstatd
Операції Демона
Команди для роботи з демоном pwrstatd та їхні функції описані нижче:

Конфігурація Files Демона
Конфігурація files та їхні функції описані нижче:

Примітка 5
pwrstatd.conf можна редагувати за допомогою будь-якого текстового редактора. Щоб почати редагування конфігурації file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for example.
Зміни, відредаговані в текстовому редакторі, набудуть чинності після перезапуску pwrstatd. Щоб перезапустити демон, введіть таку команду: /etc/init.d/pwrstatd restart
Примітка 6
To send the e-mail content in /etc/pwrstatd-email.sh, it is necessary to set ENABLE_EMAIL=yes and enter both the RECEIPT_ADDRESS and the SENDER_ADDRESS correctly in /etc/pwrstatd-lowbatt.sh or /etc/pwrstatd- powerfail.sh. For details about installing the e-mail package in Ubuntu, please refer to troubleshooting 6.
Журнали подій демона
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file pwrstatd.log записує всі події живлення.
Перевірка налаштувань Daemon
Type the following command to show the configuration of pwrstat:
Нижче наведено ексample for daemon configuration:

Дії у разі збою живлення:
Дії при низькому заряді батареї:

Моніторинг стану ДБЖ
Type the following command to show UPS properties and the current status:
pwrstat -status
Нижче колишнійampфайл для моделі ДБЖ CP585:

Примітка 7
Деякі з перелічених вище елементів відображатимуться, лише якщо модель ДБЖ підтримує відповідні функції.
CYBERPOWER POWERPANEL
Будь ласка, відвідайте https://www.cyberpower.com/content/software/eula/to see the complete EULA terms.
Документи / Ресурси
![]() | Personal Linux Software |
Список літератури
- cp.mcafee.com/d/2DRPoQ86Qm6jhO-OOVt4TsSepd79EVuKqerCNP9EVd7bOb8USepd79EVuKqekPqdXIzDD4Snzq1foR1lBG637bCXbkc6end-zHO5DT-LObzXXwW_nKnjjhjVBBdBV5zG8FHnjlKejVkffGhBrwqrhdFECXYDtNwse7cFL6XCM0lyN3UHlcv7BPvDOxRysLw2H5y7NmGo-fbCQQPhPtMQsCMmd96y09Q-9EDEq81Locp.mcafee.com
- pwrstatd-email.shpwrstatd-email.sh
- pwrstatd-lowbatt.shpwrstatd-lowbatt.sh
- pwrstatd-powerfail.shpwrstatd-powerfail.sh
- rpmfind.net/rpmfind.net
- sourceforge.net/sourceforge.net
- cyberpower.comwww.cyberpower.com
- cyberpower.com/content/software/eula/www.cyberpower.com
- Посібник користувачаmanual.tools

