
CyberPower Personal Linux Software

Početak rada
Ime
pwrstat Alat za naredbe stanja napajanja UPS-a.
Sinopsis

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
Mogućnosti
Pwrstat parametri, njihove funkcije i exampdatoteke su opisane u nastavku:


Napomena 1
Sljedeći argumenti trebaju slijediti -pwrfail.

Napomena 2
Sljedeći argumenti trebali bi slijediti -lowbatt.

Napomena 3
Sljedeći argumenti trebali bi uslijediti -cloud.

Napomena 4
- Parametri -pwrfail i -lowbatt moraju se postaviti neovisno.
- 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
Bivšiampdatoteke za konfiguriranje pwrstat opcija
- 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: Konfigurirajte vezu na PowerPanel Cloud.
pwrstat -cloud -aktivan na -računu example@cyberpower.com -lozinka 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: Provjerite vezu s PowerPanel Cloudom.
pwrstat -provjeri
Da biste provjerili jesu li račun i lozinka točni, unesite gornju naredbu.
Postoje tri rezultata, opisana u nastavku:
- Kada su i račun i lozinka ispravni, sustav će prikazati Uspješna provjera.
- Ako su ili račun ili lozinka netočni, sustav će prikazati Provjera nije uspjela.
- When a network issue exists, the system will show Connect failed
Stranica Daemon
Ime
pwrstatd Demon stanja napajanja UPS-a.
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
Operacije Daemona
Naredbe za rad pwrstatd demona i njihove funkcije opisane su u nastavku:

Konfiguracija Files Daemona
Konfiguracija files i njihove funkcije opisane su u nastavku:

Napomena 5
pwrstatd.conf se može uređivati pomoću bilo kojeg uređivača teksta. Za početak uređivanja konfiguracije file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for example.
Promjene uređene u uređivaču teksta stupit će na snagu nakon ponovnog pokretanja pwrstatda. Za ponovno pokretanje demona upišite sljedeću naredbu: /etc/init.d/pwrstatd restart
Napomena 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.
Dnevnici događaja Daemona
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file pod nazivom pwrstatd.log bilježi sve događaje napajanja.
Provjera postavki demona
Type the following command to show the configuration of pwrstat:
Ispod je bivšiample for daemon configuration:

Radnje u slučaju nestanka struje:
Radnja za praznu bateriju:

Praćenje statusa UPS-a
Type the following command to show UPS properties and the current status:
pwrstat -status
Ispod je bivšiample za UPS model, CP585:

Napomena 7
Neke od gore navedenih stavki bit će prikazane samo ako model UPS-a podržava povezane funkcije.
CYBERPOWER POWERPANEL
Molimo posjetite https://www.cyberpower.com/content/software/eula/kako biste vidjeli potpune uvjete EULA-e.
Dokumenti / Resursi
![]() | Personal Linux Software |
Reference
- 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
- korisnički priručnikmanual.tools

