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
UPS). The :3551 that follows the NIS server address is the port to use. The
default is 3551, but older versions of apcupsd used port 7000.
Please do not confuse this NIS server/slave mode with the old master/slave
network configuration that is described above. This is a master/slave setup,
but much simpler (the NIS server does not know about the slaves), and any
NIS server, even a slave, can act as a server to a slave that listens to it.
The NETTIME directive defines the time interval that the slave uses to
poll the NIS server. If you set this too large, your slave may not see the
change in state of the NIS server before the server has shutdown. Normally,
you have at least 30 seconds of grace time between the time the NIS server
decides to shutdown and the time it no longer responds. Your slave must
poll during this interval.
This mode works principally by reading the STATFLAG record that is sent
by the NIS (present in the output of apcaccess). The low 16 bits are the
standard APC status flag, and the upper 16 bits represent the internal state
of apcupsd, so the slave can see when the power fails and know when to
shutdown.
As with the Master/Slave configuration, any slave run using the Net driver
will shutdown when its own timers expire or when the NIS server shuts down,
whichever occurs first. This means that if you want the slave to shutdown
before the server, you need only set BATTERYLEVEL, or any of the other
values on the slave for a faster shutdown than the values defined on the NIS
server.
Testing Apcupsd
The following testing procedures apply for the most part to apcsmart UPSes,
whether USB or serial. If you have a dumb voltage-signalling UPS, your
testing procedures will be somewhat different, and you should see the section
on Testing Serial UPSes (see Testing Serial-Line UPSes).
Process-Status Test
After you start apcupsd, execute the following command:
ps fax
58










