
CyberPower Personal Linux Software

Pierwsze kroki
Nazwa
pwrstat Narzędzie do sterowania stanem zasilania UPS.
Streszczenie

Opis
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
Opcje
Parametry pwrstat, ich funkcje i exampPoniżej opisano:


Uwaga 1
Następujące argumenty powinny występować po -pwrfail.

Uwaga 2
Poniższe argumenty powinny być postawione po -lowbatt.

Uwaga 3
Poniższe argumenty powinny być postawione po -cloud.

Uwaga 4
- Parametry -pwrfail i -lowbatt muszą być ustawione niezależnie.
- 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
Byłyamples do konfiguracji opcji 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: Skonfiguruj połączenie z PowerPanel Cloud.
pwrstat -cloud -aktywny na -koncie example@cyberpower.com -hasło 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: Sprawdź połączenie z PowerPanel Cloud.
pwrstat - sprawdź
Aby sprawdzić, czy konto i hasło są poprawne, wpisz polecenie powyżej.
Poniżej opisano trzy wyniki:
- Jeśli zarówno konto, jak i hasło będą prawidłowe, system wyświetli komunikat o pomyślnej weryfikacji.
- Jeśli konto lub hasło są nieprawidłowe, system wyświetli komunikat o błędzie weryfikacji.
- When a network issue exists, the system will show Connect failed
Strona Daemona
Nazwa
pwrstatd Demon stanu zasilania UPS.
Opis
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
Operacje Daemona
Poniżej opisano polecenia służące do obsługi demona pwrstatd i ich funkcje:

Konfiguracja Files Demona
Konfiguracja files i ich funkcje opisano poniżej:

Uwaga 5
pwrstatd.conf można edytować za pomocą dowolnego edytora tekstu. Aby rozpocząć edycję konfiguracji file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for example.
Zmiany edytowane w edytorze tekstu zaczną obowiązywać po ponownym uruchomieniu pwrstatd. Aby ponownie uruchomić demona, wpisz następujące polecenie: /etc/init.d/pwrstatd restart
Uwaga 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.
Dzienniki zdarzeń demona
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file Plik o nazwie pwrstatd.log rejestruje wszystkie zdarzenia związane z zasilaniem.
Sprawdzanie ustawień demona
Type the following command to show the configuration of pwrstat:
Poniżej znajduje się example for daemon configuration:

Działanie w przypadku awarii zasilania:
Działanie w przypadku niskiego poziomu naładowania baterii:

Monitorowanie statusu UPS
Type the following command to show UPS properties and the current status:
pwrstat -status
Poniżej znajduje się byłyampdla modelu UPS CP585:

Uwaga 7
Niektóre z wymienionych powyżej elementów będą wyświetlane tylko wtedy, gdy model UPS obsługuje powiązane funkcje.
CYBERPOWER POWERPANEL
Proszę odwiedzić https://www.cyberpower.com/content/software/eula/to see the complete EULA terms.
Dokumenty / Zasoby
![]() | Personal Linux Software |
Odniesienia
- 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/pl.rpmfind.net
- źródłoforge.net/sourceforge.net
- cyberpower.comwww.cyberpower.com
- cyberpower.com/content/software/eula/www.cyberpower.com
- Instrukcja obsługimanual.tools

