TWiki> CF Web>Linux>UbuntuInCS>APCUPSD (revision 1)EditAttach
-- MikeGore - 04 Mar 2013

APCUPSD setup and networking notes for Ubuntu

This document contains minimal basic instructions for using a standalone or cluster managed networked UPS. Please See the documentation link for full details.

External documentation

Installation

  • apt-get install apcupsd

Configuration

Standalone USB UPS

  • Make the following changes to /etc/default/apcupsd
    • ISCONFIGURED=yes

  • Make the following changes to /etc/apcupsd/apcupsd.conf
    • UPSCABLE usb
    • UPSTYPE usb
    • DEVICE

Network Server

In this example we have two private networks we want to share APC status on
  • Make the following changes to /etc/default/apcupsd
    • ISCONFIGURED=yes
  • Make the following changes to /etc/apcupsd/apcupsd.conf
    • UPSCABLE usb
    • UPSTYPE usb
    • DEVICE
    • NETSERVER on*
    • NISIP 127.0.0.1 10.0.2.1 192.168.2.1
      • You must always have 127.0.0.1 listed

Network Client

We will listen on the 10.0.2.1 interface example above
  • Make the following changes to /etc/default/apcupsd
    • ISCONFIGURED=yes
  • Make the following changes to /etc/apcupsd/apcupsd.conf
    • UPSCABLE ether
    • UPSTYPE net
    • DEVICE 10.0.2.1:3551
    • POLLTIME 10
      • Note: Likely want to poll quickly

Running and Testing

Starting service

  • service apcupsd start

Stopping service

  • service apcupsd stop

Getting Status - gives LOTS of detailed information on the UPS state

  • service apcupsd status
Edit | Attach | Watch | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2013-03-04 - MikeGore
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback