CyberPower Personal Linux Software User Guide

CyberPower Personal Linux Software User Guide
CyberPower-LOGO

CyberPower Personal Linux Software

CyberPower-Personal-Linux-Software-PRODUCT

Noțiuni de bază

Nume
pwrstat Instrumentul de comandă a stării alimentării UPS-ului.

Rezumat

CyberPower-Personal-Linux-Software-FEATURED

Descriere
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țiuni
Parametrii pwrstat, funcțiile acestora și exampfișierele sunt descrise mai jos:

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

Nota 1
Următoarele argumente ar trebui să urmeze -pwrfail.

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

Nota 2
Următoarele argumente ar trebui să urmeze -lowbatt.

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

Nota 3
Următoarele argumente ar trebui să urmeze -cloud.

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

Nota 4

  1. Parametrii -pwrfail și -lowbatt trebuie setați 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

Exampfișiere pentru configurarea opțiunilor 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: Configurați conexiunea la PowerPanel Cloud.
    pwrstat -cloud -activ pe -account example@cyberpower.com -parola parola 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.
  • Example 3b: Verificați conexiunea la PowerPanel Cloud.

pwrstat -verify

Pentru a verifica dacă contul și parola sunt corecte, introduceți comanda de mai sus.

Există trei rezultate, descrise mai jos:

  1. Când atât contul, cât și parola sunt corecte, sistemul va afișa Verificare cu succes.
  2. Când fie contul, fie parola este incorectă, sistemul va afișa Verificarea eșuată.
  3. When a network issue exists, the system will show Connect failed

Pagina Daemonului

Nume
pwrstatd Daemonul de stare a alimentării UPS-ului.

Descriere
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țiunile Daemonului
Comenzile pentru operarea demonului pwrstatd și funcțiile acestora sunt descrise mai jos:

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

Configurare Files ale Daemonului
Configurația filee și funcțiile lor sunt descrise mai jos:

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

Nota 5
pwrstatd.conf poate fi editat folosind orice editor de text. Pentru a începe editarea configurației file, type the following command as root:  vi/etc/pwrstatd.conf *

Take the text editor, vi, for example.
Modificările editate în editorul de text vor intra în vigoare după repornirea pwrstatd. Pentru a reporni demonul, tastați următoarea comandă: /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.

Jurnalele de evenimente ale Daemonului
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file numit pwrstatd.log înregistrează toate evenimentele de putere.

Verificarea setărilor Daemon

Type the following command to show the configuration of pwrstat:

Mai jos este example for daemon configuration:

CyberPower-Personal-Linux-Software-FIG10

Acțiune pentru întrerupere de curent:CyberPower-Personal-Linux-Software-FIG11

Acțiune pentru baterie descărcată:

CyberPower-Personal-Linux-Software-FIG11

Monitorizarea stării UPS

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

pwrstat -status
Mai jos este un exampfișier pentru modelul UPS, CP585:

CyberPower-Personal-Linux-Software-FIG11

Nota 7
Unele dintre elementele enumerate mai sus vor fi afișate numai atunci când modelul UPS acceptă funcțiile aferente.

CYBERPOWER POWERPANEL
Vă rugăm să vizitați https://www.cyberpower.com/content/software/eula/to see the complete EULA terms.

Documente/Resurse

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

Pune o întrebare

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

Pune o întrebare

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