Ensure user account is root, because the installation/un-installation needs root privilege to setup system. Ensure kernel module usbhid.ko is loaded on system in kernel 2.4 and hid.o in kernel Cannot installation or un-installation a. Ensure Linux kernel version is more than or 2.6. Ensure hid device can be found at directory of /dev such as ttys0 if UPS is connected by serial cable. Ensure hid device can be found at directory of /dev/hiddev, /dev/usb/hiddev, /dev/usb/hid/hiddev such as hiddev0 if UPS is connected by USB cable. Try to unplug and plug the USB cable with UPS. Directly connect computer and UPS without USB Hub is helpful to solve if which have communication problem. Ensure USB or Serial cable is connected between UPS and computer. Ensure UPS type is supported by PowerPanel for Linux. A UPS is designed under architecture of USB HID/Power Class A UPS has DB-9 connector for RS-232 or Dry-Contact communication. The pwrstatd support USB port and Serial port to monitor UPS. What kind of UPS is supported by PowerPanel for Linux? a. Daemon Event Log The daemon will record the power event in pwrstatd.log log file, which can be found on /var/log directory. Daemon Configuration The daemon's configuration file is located at /etc/nf. 3ĥ Request UPS to Do A Battery Test pwrstat -test To verify the UPS will work well in battery power. Mute UPS s Alarm Temporary pwrstat -mute To mute UPS's alarm for this power event until next one. Turn UPS s Alarm On and Off pwrstat -alarm on pwrstat -alarm off To turn UPS's alarm on or off. The default action setting for both of -pwrfail and -lowbatt are same as above setting of example. The option of -cmd can be any shell script in system, but it will be run by root authority. At least one of parameters -delay, -active, -cmd, -duration or -shutdown is necessary. Both shell script /etc/pwrstatd-powerfail.sh and /etc/pwrstatd-lowbatt.sh were copied during installation procedure. The parameter -pwrfail and -lowbatt are exclusively. The battery capacity Threshold can be changed in file /etc/nf. Setup Action for Low Battery as Example pwrstat -lowbatt -delay 5 -active on -cmd /etc/pwrstatd-lowbatt.sh -duration 1 -shutdown on As above setting, it will take 1 second to run a shell script named /etc/pwrstatd-lowbatt.sh and shutdown system since UPS's battery capacity has low then a threshold for 5 seconds. on Setup the UPS and Daemon Setup Action for Power Failure as Example pwrstat -pwrfail -delay 60 -active on -cmd /etc/pwrstatd-powerfail.sh -duration 1 -shutdown on As above setting, it will take 1 second to run a shell script named /etc/pwrstatd-powerfail.sh and shutdown system since utility power has failure for 1 minute. etc/pwrstatd-lowbatt.sh Duration of command running. on 2Ĥ Action for Battery Low: Delay time since Battery Low. etc/pwrstatd-powerfail.sh Duration of command running. On Action for Power Failure: Delay time since Power Failure sec. Getting the Daemon Settings pwrstat -config Listing current daemon settings as following. Battery Capacity % Note: These display items depends on UPS specification. UPS CP585 Rating Voltage V Rating Power VA (335 Watt) Current UPS status: State. The other way, you can get more information about pwrstat and pwrstatd man page helps as below: man pwrstat man pwrstatd Getting the UPS Status pwrstat -status Listing current UPS properties and status as following. 4 Troubleshootingģ Getting Help pwrstat -help Listing help contents with each direction and options for pwrstat command. 3 Setup Action for Low Battery as Example. 3 Setup Action for Power Failure as Example. 1 PowerPanel for Linux Software User s User's Manual PowerPanel Business Edition Rev /08/26 Rev /09/03Ģ Table of Contents Getting Help 2 Getting the UPS Status.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |