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
A: This problem and the problem of cannot create shm area are due
to the fact that the shared memory key that apcupsd wants to use
is already in use. This happens most frequently when there is an old
zombie apcupsd process still in the system. The solution is to remove
the old process. You can often see what is going on by doing a: ipcs
command as root when apcupsd is not running. If you see a segment
with the key 0x10feed01, you can be sure there is some old apcupsd
process still using it. If you cannot kill the old process, you can try
using ipcrm (see the man pages). Recent versions of apcupsd starting
with apcupsd-3.8.2Beta6 should no longer have this problem as they
will automatically try using a different key.
Q: I get the following error: “Starting apcupsd power management. Mar 20
21:19:40 box apcupsd[297]: apcupsd FATAL ERROR in apcserial.c at
line 83. Cannot open UPS tty /dev/cua01: No such file or directory.”
What is the problem?
A: The two most likely causes of your problem are: 1. You have the wrong
serial port device name in the apcupsd.conf file. 2. The device name
is not defined on your system. Suggestions for proceeding:For the first
item, check what your serial port device should be named. You might
be able to find the name with an:
ls /dev
Normally there will be hundreds or even thousands of names that print.
If that doesn’t produce anything useful, you can try step 2. Perhaps
your device is not defined. To get more information on your devices
try man MAKEDEV or find / -name MAKEDEV. It is often located in
/dev/MAKEDEV. Looking at the documentation may tell you what the
correct name is, or at least allow you to create the device.
Q: How do I ensure that the slaves shutdown before the master?
A: There are several strategies for getting the slaves properly shutdown
before shutting down the master. The first is to make the master
wait a period of time for the slaves to shutdown before doing its
own shutdown. Currently, the master always waits 30 seconds be-
fore starting its own shutdown. If this is insufficient, you can add
additional time by putting an appropriate sleep shell command in the
/etc/apcupsd/apccontrol file just before the actual system shutdown
command is executed (there are something like 3 places). The second
strategy is to put a TIMEOUT value in the apcupsd.conf file on the
98










