CyberPower Personal Linux Software User Guide

CyberPower-LOGO

CyberPower Personal Linux Software

CyberPower-Personal-Linux-Software-PRODUCT

Começando

Nome
pwrstat A ferramenta de comando do estado de energia do UPS.

Sinopse

CyberPower-Personal-Linux-Software-FEATURED

Descrição
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

Opções
Os parâmetros pwrstat, suas funções e o examparquivos são descritos abaixo:

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

Nota 1
Os seguintes argumentos devem seguir -pwrfail.

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

Nota 2
Os seguintes argumentos devem seguir -lowbatt.

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

Nota 3
Os argumentos a seguir devem seguir -cloud.

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

Nota 4

  1. Os parâmetros de -pwrfail e -lowbatt precisam ser configurados independentemente.
  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

O Examparquivos para configurar as opções do 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%.
  • ExampFigura 3a: Configure a conexão com o PowerPanel Cloud.
    pwrstat -cloud -ativo na -conta example@cyberpower.com -senha 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: Verifique a conexão com o PowerPanel Cloud.

pwrstat -verificar

Para verificar se a conta e a senha estão corretas, digite o comando acima.

São três resultados, descritos a seguir:

  1. Quando a conta e a senha estiverem corretas, o sistema mostrará Verificar com sucesso.
  2. Quando a conta ou a senha estiverem incorretas, o sistema mostrará Falha na verificação.
  3. When a network issue exists, the system will show Connect failed

A página do demônio

Nome
pwrstatd O daemon de estado de energia do UPS.

Descrição
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

Operações do Demônio
Os comandos para operar o daemon pwrstatd e suas funções são descritos abaixo:

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

Configuração Files do Daemon
A configuração files e suas funções são descritas abaixo:

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

Nota 5
pwrstatd.conf pode ser editado usando qualquer editor de texto. Para começar a editar a configuração file, type the following command as root:  vi/etc/pwrstatd.conf *

Take the text editor, vi, for exampeu.
As alterações editadas no editor de texto terão efeito após a reinicialização do pwrstatd. Para reiniciar o daemon, digite o seguinte 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.

Registros de Eventos do Daemon
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file nomeado pwrstatd.log registra todos os eventos de energia.

Verificando as configurações do daemon

Type the following command to show the configuration of pwrstat:

Abaixo está o example for daemon configuration:

CyberPower-Personal-Linux-Software-FIG10

Ação para falha de energia:CyberPower-Personal-Linux-Software-FIG11

Ação para bateria fraca:

CyberPower-Personal-Linux-Software-FIG11

Monitorando o Status do UPS

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

pwrstat -status
Abaixo está um examparquivo para o modelo UPS, CP585:

CyberPower-Personal-Linux-Software-FIG11

Nota 7
Alguns dos itens listados acima serão exibidos apenas quando o modelo do UPS suportar as funções relacionadas.

CYBERPOWER POWERPANEL
Por favor visite https://www.cyberpower.com/content/software/eula/Para ver os termos completos do EULA.

Documentos / Recursos

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

Faça uma pergunta

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

Faça uma pergunta

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