Status logging consists of periodically logging ALL available information concerning the UPS. Since the volume of data is rather large (over 1000 bytes per status), the STATUS data is not automatically sent to the system log file, instead, it is written as a series of data records to a specific file (normally /etc/apcupsd/apcupsd.status).

After each write, the file is rewound so that the size of the file remains constant. At the current time, this file is 1135 bytes. The format of this file is very similar to the old apcupsd procfs file. The STATUS file is kept for backward compatibility and will be eliminated in a future version of apcupsd. The preferred method for obtaining this information is from apcaccess or by using the CGI interface (see apcupsd Network Monitoring [CGI] Programs).

To make reading the status data reliable via a named pipe, the first record written contains a version number, the number of records that follow the first record, and the total number of bytes in those subsequent records. An actual example of such a status file (/etc/apcupsd/apcupsd.status) is:

Consequently, the first record always consists of 24 bytes (23 characters followed by a newline). This record starts with APC and as indicated in the example above is followed by 28 records consisting of 675 bytes. The last record begins with END APC and contains the date and time matching the DATE record.

Documentation of each record needs to be written. In the coming weeks, I plan to add additional records and possibly change the names of some of the fields.

When this data is written to a file, it is written as two records, the first record, and all the other records together. In reading the file, it can be either be read a record at a time, or in one big read.

When this data is written to syslog(), it is written a record at a time. The first record is the first 24 bytes. By having the number of records and the size in the first record, the complete status can be reliably reassembled.

Status Report Example

An example of output from an international SmartUPS 1000 follows:

DATE

: Wed Sep 27 17:30:23 CEST 2000

HOSTNAME : polymatou.sibbald.com

RELEASE

: 3.7.3-20000925

CABLE

: Custom Cable Smart

176

Page 177
Image 177
APC UPS control system manual Status Report Example, 176

UPS control system specifications

APC UPS (Uninterruptible Power Supply) control systems are vital components for ensuring uninterrupted power supply and protecting critical equipment from power interruptions, surges, or fluctuations. Designed by Schneider Electric, APC UPS systems are renowned for their high quality and reliability. They utilize advanced technologies and features to suit diverse applications, from home offices to large industrial settings.

One of the main features of APC UPS systems is the ability to provide backup power during outages. This is achieved through a battery system that activates immediately when the mains power fails. This seamless transition minimizes downtime and ensures that electronic devices continue to operate, protecting data integrity and equipment lifespan.

Another significant characteristic of APC UPS systems is their intelligent management capabilities. Most models come with PowerChute software, which provides users with real-time monitoring of power conditions and the status of the UPS. This software allows for graceful shutdowns of connected devices during extended outages, thereby preventing data loss and damage to devices.

APC UPS systems also incorporate advanced technologies such as Automatic Voltage Regulation (AVR). AVR technology ensures that the output voltage remains stable by correcting minor fluctuations without switching to battery mode. This not only prolongs the battery life but also provides a consistent power supply to the connected equipment.

Thermal management is another critical aspect of APC UPS control systems. The design often includes efficient cooling systems that prevent overheating, ensuring optimal performance and longevity of the unit. Some models feature EcoMode, which reduces energy consumption and lowers operational costs by working at high efficiency only when battery backup is not required.

APC UPS systems are designed with scalability in mind. Users can easily add more batteries or connect additional UPS units to accommodate growing power needs. Features such as hot-swappable batteries and modular design facilitate easy upgrades and servicing without interrupting power supply.

In terms of connectivity, APC UPS products often feature multiple options including USB, RS-232, and network management capabilities. This enables users to connect remote management tools and integrate the UPS with existing IT infrastructure.

In summary, APC UPS control systems deliver reliability, efficiency, and advanced technology features that cater to a wide array of power protection needs, making them a trusted choice for individuals and businesses alike.