Graceful UPS Shutdowns on Linux - Page 2

By  Carla Schroder | Jan 7, 2004
Page 2 of 3   |  Back to Page 1
Print ArticleEmail Article
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

Linux-Friendly UPS

Tripp Lite, APC, and Minuteman all provide some Linux software bundles, but not for all of their products. As usual, heroic persons in the Linux world have risen to the occasion to fill in the gaps. Here are a couple of Linux projects that should meet your needs.

Apcupsd
Apcupsd is a great project for APC products. It works best when used with newer APC devices over a USB interface, and when run on newer Linux distributions, although it does also support older, serial-port APC UPS models.

Apcupsd comes in RPMs, source tarballs, and is also in Debian's repositories, so a simple 'apt-get install apcupsd' will fetch and install it.


Some of the so-called Linux drivers supplied by vendors are little more than dumb signal interfaces — all they know to do is how to switch to battery, and then shut the system down after so many minutes, even for UPS units with "smart" capabilities. Or they expect the Linux PCs will be monitored from a Windows server. As if!

Apcupsd, on the other hand, comes with a number of useful system monitors. All of the collected information is displayed on a nice, colorful HTML page, showing the current status for all of your UPS units. Useful information like online status, charge level, load level, and battery run time is displayed on the Apcupsd status page.

Apcupsd also does "slave" shutdowns. When there is more than one PC connected to a UPS, only the "master" PC needs to be connected via the USB or serial cable, and only that computer needs to have the drivers and management software installed. The slave machine runs a monitoring daemon that responds to any shutdown command from the master.

The slave machines can be configured individually; I usually set them to shutdown quickly, to save battery power for the master. (Note: I use "master" and "slave" for consistency with the Apcupsd documentation. You are welcome to call them anything you want.)

You can also turn any networked computer into a slave using NIS. (Obviously this has little utility if the PC is not connected to a UPS.) This lets you use any NIS server as the master.

The Apcupsd site provides a wealth of documentation, including wiring diagrams should you need to make your own cables.

Page 3: Network UPS Tools (NUT)

Comment and Contribute
(Maximum characters: 1200). You have
characters left.
Get the Latest Scoop with Enterprise Networking Planet Newsletter
Helpful Links
  • Yankee Group Mobile WAN Optimization Report

    Mobile work continues to evolve. Your organization must keep up with the demands of its mobile workforce. This report introduces the concept of mobile WAN optimization and provides three case studies including RCM, PRTM and Einstein that highlight how this emerging technology can help IT departments achieve what previously appeared to be conflicting goals. Read >

  • Network Security Resources

    More threats than ever before pose a danger to today's enterprise network. Get the latest tips and intel on the newest risks in our guide to network security resources. Read >

  • Extreme Savings: Cutting Costs with WAN Optimization

    Did you know it's possible to cut IT costs without impacting day-to-day IT operations? In fact, when you download this whitepaper from Riverbed on cost-savings through WAN optimization, you'll discover how businesses of all different sizes have realized a return on investment in just a few months through significant hard cost savings in areas such as bandwidth reduction and IT consolidation. It's called Extreme Savings and its only from Riverbed. Read >