Getting UPS capabilities.SUCCESS Please select the function you want to perform. 1) Test kill UPS power.If power is not restored my server must shutdown when the battery is exhausted.Apcupsd works with most of APCs Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office.During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur.
If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apc Auto Shutdown Software Install Apcupsd SoftwareADVERTISEMENTS Step 1: Install Apcupsd Type the following apt-get command under Debian Ubuntu Linux install apcupsd software: apt-get install apcupsd Sample outputs. After this operation, 672 kB of additional disk space will be used. Please check your configuration ISCONFIGURED in etcdefaultapcupsd. Jul 28 14:11:18 nas02 kernel: 3.060349 usb 2-1: Product: Back-UPS RS 150 0 FW:8.g9a.I USB FW:g9a. Jul 28 14:11:18 nas02 kernel: 5.348979 generic-usb 0003:051D:0002.0001: hiddev0,hidraw0: USB HID v1.10 Device American Power Conversion Back-UPS RS 1500 FW:8.g9a.I USB FW:g9a on usb-0000:00:10.0-1input0. It should be 8 characters or less: UPSNAME homeups1 UPSNAME homeups1 Next, defines the type of cable connecting the UPS to your Linux server. In this example, Im connecting my UPS using usb: UPSCABLE usb UPSCABLE usb Possible generic choices for cable are simple, smart, ether, and usb. Or a specific cable model number may be used such as 940-0119A. For other UPS types, you must specify an appropriate port or address (see config file): set ups type to usb. DEVICE Configuration parameters used during power failures The ONBATTERYDELAY directive defined the time in seconds from when a power failure s detected until we react to it with an onbattery event: ONBATTERYDELAY 6 ONBATTERYDELAY 6 If during a power failure, the remaining battery percentage (as reported by the UPS) is below or equal to BATTERYLEVEL, apcupsd will initiate a Linux system shutdown: BATTERYLEVEL 5 BATTERYLEVEL 5 If during a power failure, the remaining runtime in minutes (as calculated internally by the UPS) is below or equal to MINUTES, apcupsd, will initiate a system shutdown. MINUTES 3 MINUTES 3 If during a power failure, the UPS has run on batteries for TIMEOUT many seconds or longer, apcupsd will initiate a system shutdown. A value of 0 disables this timer: TIMEOUT 0 TIMEOUT 0 Note: If you have an older dumb UPS, you will want to set this to less than the time you know you can run on batteries. Configuration apcupsd network information server You can use CGI or GUI programs from remote system to get information about your UPS. Turn on network information server: NETSERVER on NETSERVER on Set IP address on which NIS server will listen for incoming connections. You need to configure this setting to any specific IP address of your server and NIS will listen for connections only on that interface. Use the loopback address (127.0.0.1) to accept connections only from the local machine (default). NISIP 127.0.0.1. Step 4: Test ups Type the following command: apctest Sample outputs: 2012 -07- 29 16: 52: 40 apctest 3.14.8 ( 16 January 2010 ) debian. Select function number: 2012-07-29 16:52:40 apctest 3.14.8 (16 January 2010) debian. Getting UPS capabilities.SUCCESS Please select the function you want to perform. Test kill UPS power.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |