CyberPower Personal Linux Software User Guide

CyberPower Personal Linux Software User Guide

CyberPower-LOGO

CyberPower Personal Linux Software

CyberPower-Personal-Linux-Software-PRODUCT

Kom godt i gang

Navn
pwrstat UPS-strømtilstandskommandoværktøjet.

Synopsis

CyberPower-Personal-Linux-Software-FEATURED

Beskrivelse
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

Valgmuligheder
Pwrstat-parametrene, deres funktioner og examples er beskrevet nedenfor:

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

Note 1
Følgende argumenter bør følge -pwrfail.

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

Note 2
Følgende argumenter bør følge -lowbatt.

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

Note 3
Følgende argumenter bør følge -cloud.

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

Note 4

  1. Parametrene for -pwrfail og -lowbatt skal indstilles uafhængigt.
  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

Eksamples til konfiguration af pwrstat-indstillinger

  • 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: Konfigurer forbindelsen til PowerPanel Cloud.
    pwrstat -cloud -aktiv på -konto example@cyberpower.com -adgangskode 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.
  • Exampdel 3b: Bekræft forbindelsen til PowerPanel Cloud.

pwrstat -bekræft

For at kontrollere, om kontoen og adgangskoden er korrekt, skal du indtaste kommandoen ovenfor.

Der er tre resultater, beskrevet nedenfor:

  1. Når både kontoen og adgangskoden er korrekt, viser systemet Bekræft med succes.
  2. Når enten kontoen eller adgangskoden er forkert, viser systemet Bekræft mislykket.
  3. When a network issue exists, the system will show Connect failed

Dæmonsiden

Navn
pwrstatd UPS-strømtilstandsdæmonen.

Beskrivelse
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

Dæmonens operationer
Kommandoerne til at betjene pwrstatd-dæmonen og deres funktioner er beskrevet nedenfor:

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

Konfiguration Files af Dæmonen
Konfigurationen files og deres funktioner er beskrevet nedenfor:

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

Note 5
pwrstatd.conf kan redigeres ved at bruge en hvilken som helst teksteditor. For at begynde at redigere konfigurationen file, type the following command as root:  vi/etc/pwrstatd.conf *

Take the text editor, vi, for example.
Ændringerne, der er redigeret i teksteditoren, træder i kraft efter genstart af pwrstatd. For at genstarte dæmonen skal du skrive følgende kommando: /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.

Hændelseslogs for Dæmonen
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file navngivet pwrstatd.log registrerer alle strømhændelser.

Kontrollerer Daemon-indstillinger

Type the following command to show the configuration of pwrstat:

Nedenfor ses example for daemon configuration:

CyberPower-Personal-Linux-Software-FIG10

Handling for strømsvigt:CyberPower-Personal-Linux-Software-FIG11

Handling for lavt batteri:

CyberPower-Personal-Linux-Software-FIG11

Overvågning af UPS-status

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

pwrstat -status
Nedenfor er en example til UPS-modellen, CP585:

CyberPower-Personal-Linux-Software-FIG11

Note 7
Nogle af de nævnte elementer ovenfor vil kun blive vist, når UPS-modellen understøtter de relaterede funktioner.

CYBERPOWER POWERPANEL
Besøg venligst https://www.cyberpower.com/content/software/eula/for at se de komplette EULA-vilkår.

Dokumenter/ressourcer

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

Stil et spørgsmål

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

Stil et spørgsmål

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