
CyberPower Personal Linux Software

Commencer
Nom
pwrstat L'outil de commande de l'état de l'alimentation de l'onduleur.
Synopsis

Description
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
Options
Les paramètres pwrstat, leurs fonctions et les exampsont décrits ci-dessous :


Note 1
Les arguments suivants doivent suivre -pwrfail.

Note 2
Les arguments suivants doivent suivre -lowbatt.

Note 3
Les arguments suivants doivent suivre -cloud.

Note 4
- Les paramètres de -pwrfail et -lowbatt doivent être définis indépendamment.
- 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'ExampFichiers de configuration des options de 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 : Configurez la connexion à PowerPanel Cloud.
pwrstat -cloud -actif sur -compte example@cyberpower.com -mot de passe 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 : Vérifiez la connexion à PowerPanel Cloud.
pwrstat -vérifier
Pour vérifier si le compte et le mot de passe sont corrects, entrez la commande ci-dessus.
Il y a trois résultats, décrits ci-dessous :
- Lorsque le compte et le mot de passe sont corrects, le système affiche Vérifier avec succès.
- Lorsque le compte ou le mot de passe est incorrect, le système affichera Échec de la vérification.
- When a network issue exists, the system will show Connect failed
La page Démon
Nom
pwrstatd Démon d'état de l'alimentation de l'onduleur.
Description
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
Opérations du démon
Les commandes d'utilisation du démon pwrstatd et leurs fonctions sont décrites ci-dessous :

Configuration Files du Démon
La configuration files et leurs fonctions sont décrites ci-dessous :

Note 5
pwrstatd.conf peut être modifié à l'aide de n'importe quel éditeur de texte. Pour commencer à modifier la configuration file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for example.
Les modifications apportées dans l'éditeur de texte prendront effet après le redémarrage de pwrstatd. Pour redémarrer le démon, tapez la commande suivante : /etc/init.d/pwrstatd restart
Note 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.
Journaux des événements du démon
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file nommé pwrstatd.log enregistre tous les événements d'alimentation.
Vérification des paramètres du démon
Type the following command to show the configuration of pwrstat:
Ci-dessous l'example for daemon configuration:

Action en cas de panne de courant :
Action pour batterie faible :

Surveillance de l'état de l'onduleur
Type the following command to show UPS properties and the current status:
pwrstat -status
Ci-dessous un exampfichier pour le modèle UPS, CP585 :

Note 7
Certains des éléments répertoriés ci-dessus ne s'affichent que lorsque le modèle d'onduleur prend en charge les fonctions associées.
CYBERPOWER POWERPANEL
S'il vous plaît visitez https://www.cyberpower.com/content/software/eula/pour consulter l'intégralité des conditions générales d'utilisation.
Documents / Ressources
![]() | Personal Linux Software |
Références
- 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
- Manuel d'utilisationmanual.tools

