User's Manual UPS control system
Table Of Contents
- Apcupsd User's Manual
- Release Notes
- How To Use This Manual
- Basic User's Guide
- Planning Your Installation
- Building and Installing apcupsd
- After Installation
- Configuration Examples
- Testing Apcupsd
- Troubleshooting Your Installation
- Monitoring and Tuning your UPS
- Maintaining Your UPS
- Frequently-Asked Questions
- Apcupsd Bugs
- Advanced topics
- Customizing Event Handling
- Master/Slave Configurations
- Controlling Multiple UPSes on one Machine
- Support for SNMP UPSes
- Alternate Ways To Run The Network Information Server
- apcupsd System Logging
- Installation: Windows
- Windows Version of apcupsd
- Installation: Serial-Line UPSes
- Overview of Serial-Interface UPSes
- Connecting a Serial-Line UPS to a USB Port
- Connecting a APC USB UPS to either a PC USB or Serial Port
- Cables
- Smart-Custom Cable for SmartUPSes
- Smart Signalling Cable for BackUPS CS Models
- Voltage-Signalling Cable for "dumb" UPSes
- Other APC Cables that apcupsd Supports
- Voltage Signalling Features Supported by Apcupsd for Various Cables
- Voltage Signalling
- Back-UPS Office 500 signals
- Analyses of APC Cables
- Win32 Implementation Restrictions for Simple UPSes
- Internal Apcupsd Actions for Simple Cables
- RS232 Wiring and Signal Conventions
- Pin Assignment for the Serial Port (RS-232C), 25-pin and 9-pin, Female End
- Ioctl to RS232 Correspondence
- Testing Serial-Line UPSes
- Troubleshooting Serial Line communications
- Recalibrating the UPS Runtime
- DATA Logging
- Technical Reference
- Configuration Directive Reference
- apcupsd Status Logging
- Shutown Sequence and its Discontents
- APC smart protocol
- Apcupsd --- RPM Packaging FAQ
- Credits
- Kernel Config

Q: Does apcupsd support Windows?
A: With release 3.8.0, apcupsd now runs on Win95/98, WinMe, WinNT,
and Win2000 machines. All features of the Unix versions of apcupsd
are implemented. The UPS EEPROM programming features of
apcupsd have not been tested under Windows. Version 3.8.0 does
not support simple signaling UPSes (BackUPS, etc). Version 3.8.1
does support most simple signaling UPSes, but not all cables (due
to deficiencies in the Windows serial port API). Please note that we
have had reports that apcupsd does not work properly on the WinXP
system. If you have any information on this, please email us.
Q: I don’t have a cable, which one should I build?
A: First you must know if you have an apcsmart UPS or a voltage-signalling
UPS. See the table of supported UPSes (see type table). If you
have a apcsmart UPS, we recommend building a Custom Smart (see
Smart-Custom Cable for SmartUPSes) cable. If you have a voltage-
signaling UPS, we recommend that you build a Custom Simple (see
Voltage-Signalling Cable for ”dumb” UPSes) cable.
Q: How much CPU resources does apcupsd use?
A: Depending on your CPU speed, you may see more or less of the CPU
consumed by apcupsd. On a 400MHz Unix system, the CPU usage
should fall well below 0.1%. On slower systems, the percentage will in-
crease proportionally to the decrease in the CPU speed. On a 400Mhz
Win98 machine, the CPU usage will be on the order of 0.5-1.0%. This
is higher than for Unix systems. However, compared to the 30% CPU
usage by APC’s PowerChute (the version on the CDROM shipped
with my UPS), apcupsd’s 0.5-1.0% is very modest.
If you configure apcupsd to run with pthreads (--with-pthreads on
the ./configure line), apcupsd will run considerably faster, otherwise
said, it will consume less of your CPU, and it will use approximately
one third of the memory. For example, Carl Erhorn reports that on
his Solaris system, “With the old 3-process version, we averaged about
4.8MB of total memory used. With the new single process, we use only
about 1.7MB! That’s also a very good improvement.”
Q: What language is apcupsd written in?
A: It is written entirely in C.
Q: We are using apcupsd-3.8.1-1 in RedHat 6.2. The slave, when shutting
down, is reporting an error at line 436 of apcupsd.c. The error is
initiated by apcupsd --killpower! What can we do to fix this, and
is it critical?
96










