2011-01-26 09:35:08 +00:00
|
|
|
APCSMART(8)
|
|
|
|
===========
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
|
|
|
|
apcsmart - Driver for American Power Conversion Smart Protocol UPS equipment
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
*apcsmart* -h
|
|
|
|
|
|
|
|
*apcsmart* -a 'UPS_NAME' ['OPTIONS']
|
|
|
|
|
|
|
|
NOTE: This man page only documents the hardware-specific features of the
|
2010-03-25 23:20:59 +00:00
|
|
|
apcsmart driver. For information about the core driver, see
|
2011-01-26 09:35:08 +00:00
|
|
|
linkman:nutupsdrv[8].
|
|
|
|
|
|
|
|
SUPPORTED HARDWARE
|
|
|
|
------------------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
apcsmart should recognize all recent APC models that use a serial
|
2011-01-26 09:35:08 +00:00
|
|
|
protocol at 2400 bps. This is primarily the Smart-UPS, Matrix-UPS and
|
|
|
|
Back-UPS Pro lines.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
The driver attempts to support every bell and whistle of the APC
|
|
|
|
reporting interface, whether or not this is strictly sensible.
|
|
|
|
|
|
|
|
Some older hardware may only report a handful of variables. This is
|
2011-01-26 09:35:08 +00:00
|
|
|
usually not a bug--they just don't support anything else.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
CABLING
|
|
|
|
-------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
This driver expects to see a 940-0024C cable or a clone by default. You
|
|
|
|
can switch to the 940-0095B dual-mode cable support with the `cable=`
|
2010-03-25 23:20:59 +00:00
|
|
|
definition described below.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
If your 940-0024C cable is broken or missing, use this diagram to build
|
2010-03-25 23:20:59 +00:00
|
|
|
a clone:
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
http://www.networkupstools.org/cables/940-0024C.jpg
|
|
|
|
|
|
|
|
EXTRA ARGUMENTS
|
|
|
|
---------------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
This driver supports the following optional settings in the
|
2011-01-26 09:35:08 +00:00
|
|
|
linkman:ups.conf[5]:
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*cable=940-0095B*::
|
|
|
|
Configure the serial port for the APC 940-0095B dual-mode cable.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*sdtype=*'num'::
|
|
|
|
Use shutdown type 'num', according to this table:
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
0;; soft shutdown or powerdown, depending on battery status
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
1;; soft shutdown followed by powerdown
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
2;; instant power off
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
3;; power off with grace period
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
4;; "force OB" hack method for CS 350
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
Modes 0 and 1 will power up the load when power returns. Modes 2 and 3
|
|
|
|
will keep the load turned off when the power returns.
|
|
|
|
|
|
|
|
Mode 4 exploits an oddity in the CS 350 models since they only seem to
|
|
|
|
support the S command, but then only when running on battery. As a
|
|
|
|
result, the driver will force the UPS to go on battery if necessary
|
|
|
|
before sending the shutdown command. This ensures that the load gets
|
|
|
|
reset.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
BUGS
|
|
|
|
----
|
|
|
|
|
2010-03-25 23:20:59 +00:00
|
|
|
Some older APC UPS models return bogus data in the status register during
|
|
|
|
a front panel test. This is usually detected and discarded, but some
|
|
|
|
other unexpected values have occasionally slipped through.
|
|
|
|
|
|
|
|
APC UPS models with both USB and serial ports require a power cycle when
|
|
|
|
switching from USB communication to serial, and perhaps vice versa.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
AUTHOR
|
|
|
|
------
|
2010-03-25 23:20:59 +00:00
|
|
|
Nigel Metheringham <Nigel.Metheringham@Intechnology.co.uk> (drawing
|
|
|
|
heavily on the original apcsmart driver by Russell Kroll). This driver
|
|
|
|
was called newapc for a time and was renamed in the 1.5 series.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
The core driver:
|
|
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
linkman:nutupsdrv[8]
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
Internet resources:
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2010-03-25 23:20:59 +00:00
|
|
|
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
|