Installing apcupsd

HOW TO INSTALL AND CONFIGURE APCUPSD

  1. Obtain the tar gz for the installation of apcupsd on apps
  2. cp /var/warehouse/MercE/mods/apcupsd/apcupsd_install_20061012.tgz /var/tmp
  3. scp the same to the destination machine's /var/tmp where apcupsd has to be installed
  4. We are assuming that you have copied apcupsd_install_20061012.tgz in /var/tmp/apcupsd
  5. cd /var/tmp/apcupsd
  6. tar -zvxf apcupsd_install_20061012.tgz
  7. Install the pre requisite rpms for apcupsd
  8. cd /var/tmp/apcupsd/apcupsd_install_codes
  9. This directory contains a perl script install_1shot.pl which can install the rpms which are required for the installation of apcupsd
  10. For execution of this script you need to know on which configuration of Linux has been carried out.
  11. 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
  12. Execute this command 3 times because some rpms may have dependency which would be installed later.
  13. The output of this command would say that "going to execute rpm -ivh " for the rpms corresponding to the installation.
  14. This would carry out the installation of the packages that are required for working of apcupsd
  15. cd /var/tmp/apcupsd/apcupsd_rpms/
  16. rpm -ivh apcupsd-3.10.11-47.i586.rpm
  17. This would install apcupsd. If any failed dependencies are shown please install them first and then install this rpm
  18. 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.
  19. In our current configuration the make is Back UPS RS 1500, the cable is "usb" and is connected to apps.
  20. 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.
  21. The current configuration file for apps has been attached to this documentation
  22. 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
  23. The command line check can be done by executing the command
    apcaccess
  24. 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.
AttachmentSize
apcupsd.pdf512.19 KB
apcupsd.conf10.45 KB