
CyberPower Personal Linux Software

การเริ่มต้น
ชื่อ
pwrstat เครื่องมือคำสั่งสถานะพลังงานของ UPS
เนื้อเรื่องย่อ

คำอธิบาย
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
ตัวเลือก
พารามิเตอร์ pwrstat ฟังก์ชัน และตัวอย่างampมีคำอธิบายไว้ด้านล่าง:


หมายเหตุ 1
อาร์กิวเมนต์ต่อไปนี้ควรเป็นไปตาม -pwrfail

หมายเหตุ 2
อาร์กิวเมนต์ต่อไปนี้ควรเป็นไปตาม -lowbatt

หมายเหตุ 3
ข้อโต้แย้งต่อไปนี้ควรเป็นไปตาม -cloud

หมายเหตุ 4
- ต้องตั้งค่าพารามิเตอร์ของ -pwrfail และ -lowbatt แยกกัน
- 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
อดีตampไฟล์สำหรับการกำหนดค่าตัวเลือก 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%.
- Exampขั้นตอนที่ 3a: กำหนดค่าการเชื่อมต่อกับ PowerPanel Cloud
pwrstat -cloud -ใช้งานบน -บัญชี example@cyberpower.com -รหัสผ่าน 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: ตรวจสอบการเชื่อมต่อกับ PowerPanel Cloud
pwrstat - ตรวจสอบ
หากต้องการตรวจสอบว่าบัญชีและรหัสผ่านถูกต้องหรือไม่ ให้ป้อนคำสั่งด้านบน
มีสามผลลัพธ์ที่อธิบายไว้ด้านล่าง:
- เมื่อทั้งบัญชีและรหัสผ่านถูกต้อง ระบบจะแสดง Verify สำเร็จ
- เมื่อบัญชีหรือรหัสผ่านไม่ถูกต้อง ระบบจะแสดงการยืนยันล้มเหลว
- When a network issue exists, the system will show Connect failed
หน้าภูต
ชื่อ
pwrstatd daemon สถานะพลังงานของ UPS
คำอธิบาย
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
ปฏิบัติการของภูต
คำสั่งสำหรับการปฏิบัติการ pwrstatd daemon และฟังก์ชันของคำสั่งมีอธิบายไว้ด้านล่าง:

การกำหนดค่า Files ของ Daemon
การกำหนดค่า files และฟังก์ชันต่างๆ อธิบายไว้ด้านล่าง:

หมายเหตุ 5
pwrstatd.conf สามารถแก้ไขได้โดยใช้โปรแกรมแก้ไขข้อความใดๆ เพื่อเริ่มแก้ไขการกำหนดค่า file, type the following command as root: vi/etc/pwrstatd.conf *
Take the text editor, vi, for exampเล.
การเปลี่ยนแปลงที่แก้ไขในโปรแกรมแก้ไขข้อความจะมีผลหลังจากรีสตาร์ท pwrstatd เมื่อต้องการรีสตาร์ท daemon ให้พิมพ์คำสั่งต่อไปนี้: /etc/init.d/pwrstatd restart
หมายเหตุ 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.
บันทึกเหตุการณ์ของ Daemon
The event logs of the pwrstatd daemon are located in the directory: /var/log. The file ชื่อ pwrstatd.log บันทึกเหตุการณ์พลังงานทั้งหมด
ตรวจสอบการตั้งค่า Daemon
Type the following command to show the configuration of pwrstat:
ด้านล่างคืออดีตample for daemon configuration:

การดำเนินการสำหรับไฟฟ้าขัดข้อง:
การดำเนินการสำหรับแบตเตอรี่ต่ำ:

การตรวจสอบสถานะของ UPS
Type the following command to show UPS properties and the current status:
pwrstat -status
ด้านล่างนี้เป็นตัวอย่างampไฟล์สำหรับ UPS รุ่น CP585:

หมายเหตุ 7
บางรายการด้านบนจะแสดงเฉพาะเมื่อรุ่นของ UPS รองรับฟังก์ชันที่เกี่ยวข้องเท่านั้น
CYBERPOWER POWERPANEL
กรุณาเข้าเยี่ยมชม https://www.cyberpower.com/content/software/eula/เพื่อดูข้อกำหนด EULA ฉบับเต็ม
เอกสาร / แหล่งข้อมูล
![]() | Personal Linux Software |
อ้างอิง
- 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
- แหล่งที่มาforge.net/แหล่งที่มาforge.net
- ไซเบอร์พาวเวอร์.คอมwww.cyberpower.com
- cyberpower.com/content/software/eula/www.cyberpower.com
- คู่มือการใช้งานmanual.tools

