Installing apcupsd
Submitted by saurabh on Thu, 2006-10-12 18:24
HOW TO INSTALL AND CONFIGURE APCUPSD
- Obtain the tar gz for the installation of apcupsd on apps
- cp /var/warehouse/MercE/mods/apcupsd/apcupsd_install_20061012.tgz /var/tmp
- scp the same to the destination machine's /var/tmp where apcupsd has to be installed
- We are assuming that you have copied apcupsd_install_20061012.tgz in /var/tmp/apcupsd
- cd /var/tmp/apcupsd
- tar -zvxf apcupsd_install_20061012.tgz
- Install the pre requisite rpms for apcupsd
- cd /var/tmp/apcupsd/apcupsd_install_codes
- This directory contains a perl script install_1shot.pl which can install the rpms which are required for the installation of apcupsd
- For execution of this script you need to know on which configuration of Linux has been carried out.
- This rpms have been taken considering the 3 configurations of linux
- SusE Linux 9.1 minimum installation without mtracks
- Execute the following command
- cd /var/tmp/apcupsd/apcupsd_install_codes
-
perl install_1shot.pl/var/tmp/apcupsd/apcupsd_min_default_dependencies/rpms
- SusE Linux 9.1 default installation without mtracks
- Execute the following command
- cd /var/tmp/apcupsd/apcupsd_install_codes
-
perl install_1shot.pl/var/tmp/apcupsd/apcupsd_min_default_dependencies/rpms
- SusE Linux 9.1 (default/minimum) with mtracks
- Execute the following command
- cd /var/tmp/apcupsd/apcupsd_install_codes
-
perl install_1shot.pl/var/tmp/apcupsd/mtracks_apcupsd_dependencies/rpms
- SusE Linux 9.1 minimum installation without mtracks
- Execute this command 3 times because some rpms may have dependency which would be installed later.
- The output of this command would say that "going to execute rpm -ivh
" for the rpms corresponding to the installation. - This would carry out the installation of the packages that are required for working of apcupsd
- cd /var/tmp/apcupsd/apcupsd_rpms/
- rpm -ivh apcupsd-3.10.11-47.i586.rpm
- This would install apcupsd. If any failed dependencies are shown please install them first and then install this rpm
- Set up the apc ups. Note down the make, the cable that is connected and the cable via which you are connecting the ups to your controlling machine.
- In our current configuration the make is Back UPS RS 1500, the cable is "usb" and is connected to apps.
- The configuration file for apcupsd is /etc/apcupsd.conf and is set as per the documentation of it. This docuemntation can be accessed on apps at /usr/src/packages/BUILD/apcupsd-3.10.11/doc/docbook and is also attached to this documentation.
- The current configuration file for apps has been attached to this documentation
- As per the configuration on apps the GUI for looking at the status of battery charge and various other parameters is at the url
http://apps1.starcomsoftware.com/apcupsd_cgi/multimon.cgi- The command line check can be done by executing the command
apcaccess- The current configuration of apcupsd as per its configuration file says that
if the battery level for apcupsd reaches below 10% then apps should shutdown all the slaves and then shutdown itself.
Attachment | Size |
---|---|
apcupsd.pdf | 512.19 KB |
apcupsd.conf | 10.45 KB |
»
- Login to post comments
- Printer-friendly version
- Send to friend