CyberPower Personal Linux Software User Guide

CyberPower Personal Linux Software User Guide

CyberPower-LOGO

CyberPower Personal Linux Software

CyberPower-Personal-Linux-Software-PRODUCT

Primers passos

Nom
pwrstat L'eina d'ordres d'estat d'alimentació del SAI.

Sinopsi

CyberPower-Personal-Linux-Software-FEATURED

Descripció
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

Opcions
Els paràmetres pwrstat, les seves funcions i l'examples es descriuen a continuació:

CyberPower-Personal-Linux-Software-FIG (2)CyberPower-Personal-Linux-Software-FIG (3)

Nota 1
Els arguments següents haurien de seguir -pwrfail.

CyberPower-Personal-Linux-Software-FIG (4)

Nota 2
Els arguments següents haurien de seguir -lowbatt.

CyberPower-Personal-Linux-Software-FIG (5)

Nota 3
Els arguments següents haurien de seguir -cloud.

CyberPower-Personal-Linux-Software-FIG (6)

Nota 4

  1. Els paràmetres de -pwrfail i -lowbatt s'han d'establir de manera independent.
  2. Both the shell scripts pwrstatd-lowbatt.sh and pwrstatd-powerfail.sh will be copied to Jetc during the installation procedure.
  3. The parameter —cmd can be any shell script in the system, and it should be run as root to modify the settings.
  4. The default system settings for -pwrfail and -lowbatt

L'Exampfitxers per configurar les opcions 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%.
  • Examplle 3a: configureu la connexió a PowerPanel Cloud.
    pwrstat -cloud -active al -compte example@cyberpower.com -contrasenya contrasenya 123
    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.
  • Examplle 3b: Verifiqueu la connexió al PowerPanel Cloud.

pwrstat -verify

Per verificar si el compte i la contrasenya són correctes, introduïu l'ordre anterior.

Hi ha tres resultats, que es descriuen a continuació:

  1. Quan tant el compte com la contrasenya són correctes, el sistema mostrarà Verificar correctament.
  2. Quan el compte o la contrasenya són incorrectes, el sistema mostrarà Verificació fallada.
  3. When a network issue exists, the system will show Connect failed

La pàgina del dimoni

Nom
pwrstatd El dimoni d'estat d'alimentació de l'UPS.

Descripció
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

Operacions del dimoni
Les ordres per operar el dimoni pwrstatd i les seves funcions es descriuen a continuació:

CyberPower-Personal-Linux-Software-FIG (7)

Configuració Files del dimoni
La configuració files i les seves funcions es descriuen a continuació:

CyberPower-Personal-Linux-Software-FIG (7)

Nota 5
pwrstatd.conf es pot editar amb qualsevol editor de text. Per començar a editar la configuració file, type the following command as root:  vi/etc/pwrstatd.conf *

Take the text editor, vi, for example.
Els canvis editats a l'editor de text tindran efecte després de reiniciar pwrstatd. Per reiniciar el dimoni, escriviu l'ordre següent: /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.

Registres d'esdeveniments del dimoni
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file anomenat pwrstatd.log registra tots els esdeveniments d'energia.

Comprovació de la configuració del dimoni

Type the following command to show the configuration of pwrstat:

A continuació es mostra l'example for daemon configuration:

CyberPower-Personal-Linux-Software-FIG10

Acció per fallada de corrent:CyberPower-Personal-Linux-Software-FIG11

Acció per a la bateria baixa:

CyberPower-Personal-Linux-Software-FIG11

Supervisió de l'estat del SAI

Type the following command to show UPS properties and the current status:

pwrstat -status
A continuació hi ha un exampli per al model SAI, CP585:

CyberPower-Personal-Linux-Software-FIG11

Nota 7
Alguns dels elements enumerats anteriorment només es mostraran quan el model de SAI admeti les funcions relacionades.

CYBERPOWER POWERPANEL
Si us plau, visiteu https://www.cyberpower.com/content/software/eula/to see the complete EULA terms.

Documents/Recursos

PDF thumbnailPersonal Linux Software
User Guide · Personal Linux Software, Software

Fes una pregunta

Use this section to ask about setup, compatibility, troubleshooting, or anything missing from this manual.

Fes una pregunta

Ask about setup, compatibility, troubleshooting, or anything missing from this manual. Name and email are optional.