
CyberPower Personal Linux Software

Iniziare
Nome
pwrstat Lo strumento di comando dello stato di alimentazione dell'UPS.
Sinossi

Descrizione
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
Opzioni
I parametri pwrstat, le loro funzioni e l'exampi sono descritti di seguito:


Nota 1
I seguenti argomenti dovrebbero seguire -pwrfail.

Nota 2
I seguenti argomenti dovrebbero seguire -lowbatt.

Nota 3
I seguenti argomenti dovrebbero seguire -cloud.

Nota 4
- I parametri di -pwrfail e -lowbatt devono essere impostati in modo indipendente.
- 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
L'example per la configurazione delle opzioni 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: Configurare la connessione a PowerPanel Cloud.
pwrstat -cloud -attivo su -account example@cyberpower.com -passwordpass123
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: Verificare la connessione a PowerPanel Cloud.
pwrstat - verifica
Per verificare se l'account e la password sono corretti, inserisci il comando sopra.
I risultati sono tre, descritti di seguito:
- Quando sia l'account che la password sono corretti, il sistema mostrerà Verifica riuscita.
- Quando l'account o la password non sono corretti, il sistema mostrerà Verifica non riuscita.
- When a network issue exists, the system will show Connect failed
La pagina dei demoni
Nome
pwrstatd Il demone dello stato di alimentazione dell'UPS.
Descrizione
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
Operazioni del demone
I comandi per il funzionamento del demone pwrstatd e le relative funzioni sono descritti di seguito:

Configurazione Files del Demone
La configurazione files e le loro funzioni sono descritte di seguito:

Nota 5
pwrstatd.conf può essere modificato utilizzando qualsiasi editor di testo. Per iniziare a modificare la configurazione file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for examplui.
Le modifiche modificate nell'editor di testo avranno effetto dopo il riavvio di pwrstatd. Per riavviare il demone, digita il seguente comando: /etc/init.d/pwrstatd restart
Nota 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.
Registri eventi del demone
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file denominato pwrstatd.log registra tutti gli eventi di alimentazione.
Controllo delle impostazioni del demone
Type the following command to show the configuration of pwrstat:
Di seguito è riportato l'example for daemon configuration:

Azione per interruzione di corrente:
Azione per batteria scarica:

Monitoraggio dello stato dell'UPS
Type the following command to show UPS properties and the current status:
pwrstat -status
Di seguito è riportato un example per il modello UPS, CP585:

Nota 7
Alcuni degli elementi sopra elencati verranno visualizzati solo quando il modello UPS supporta le relative funzioni.
CYBERPOWER POWERPANEL
Per favore visita https://www.cyberpower.com/content/software/eula/per visualizzare i termini completi dell'EULA.
Documenti / Risorse
![]() | Personal Linux Software |
Riferimenti
- 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/http://rpmfind.net
- sourceforge.net/sourceforge.net
- cyberpower.comwww.cyberpower.com
- cyberpower.com/content/software/eula/www.cyberpower.com
- Manuale d'usomanual.tools

