1 .\" manual page [] for apctest version 3.14.6
7 .Nd retrieve status information from apcupsd(8)
10 [status [ [<hostname>][:<port>] ] ]
13 is a program which prints out the complete status of most American Power
14 Conversion Corp. (APC) UPSes provided you have the
16 daemon installed, properly configured and running. It can access status
17 information from any APC UPS attached to the localhost or attached to
18 any computer on the network which is running apcuspd in NIS mode.
20 The command line options are:
21 .Bl -hang -width "<hostname>"
23 An optional command, unless a hostname is also being specified. Shorthand for
24 .Em status\& localhost:3551 .
25 This produces a full printout of the available status information for the
28 An optional hostname which may be a bare machine name, fully qualified
29 domain name or IP address.
31 An optional port number where a hostname argument has been specified. The
32 default is 3551, the official port number assigned by
34 for the apcupsd NIS server.
38 uses apcupsd's inbuilt Network Information Server (NIS) -- no relation
39 to Sun's NIS/YP service -- to obtain the current status information from the
40 UPS on the local or remote computer. It is therefore
41 necessary to have the following configuration directives:
51 .Pa /etc/apcupsd/apcupsd.conf
52 configuration file so that the Network Information Server will be accessible.
53 Firewall rules for appropriate network access may also be needed.
54 .Sh STATUS REPORT FORMAT
55 The status report output format is simple ASCII. Generally there
56 is a single piece of information on each line of output. The
57 content varies based on the model of UPS being used and, in some cases,
60 Set out below is a sample of the status output which may be
61 generated for the specified UPS models.
64 .Bl -hang -width "xxxxxxxx" -compact
66 : version, number of records and number of bytes following
68 : Date and time of last update from UPS
70 : hostname of computer running apcupsd
72 : apcupsd version number, date and operating system
74 : UPS name from configuration file (dumb) or EEPROM (smart)
76 : Cable type specified in the configuration file
78 : UPS model derived from UPS information
80 : Mode in which UPS is operating
82 : Date and time apcupsd was started
84 : UPS status (online, charging, on battery etc)
86 : Last time the master sent an update to the slave
88 : Date and time of status information was written
90 .Ss Smart-UPS and Matrix-UPS (Smart Signalling)
91 .Bl -hang -width "xxxxxxxx"-compact
93 : Current input line voltage
95 : Percentage of UPS load capacity used as estimated by UPS
97 : Current battery capacity charge percentage
99 : Remaining runtime left on battery as estimated by the UPS
101 : Min battery charge % (BCHARGE) required for system shutdown
103 : Min battery runtime (MINUTES) required for system shutdown
105 : Max battery runtime (TIMEOUT) after which system is shutdown
107 : Maximum input line voltage since apcupsd started
109 : Min (observed) input line voltage since apcupsd started
111 : Current UPS output voltage
113 : Current UPS sensitivity setting for voltage fluctuations
115 : Time UPS waits after power off when the power is restored
117 : Delay before UPS powers down after command received
119 : Low battery signal sent when this much runtime remains
121 : Input line voltage below which UPS will switch to battery
123 : Input line voltage above which UPS will switch to battery
125 : Battery charge % required after power off to restore power
127 : UPS internal temperature in degrees Celcius
129 : Delay period before UPS starts sounding alarm
131 : Current battery voltage
133 : Current line frequency in Hertz
135 : Reason for last transfer to battery since apcupsd startup
137 : Number of transfers to battery since apcupsd startup
139 : Date, time of last transfer to battery since apcupsd startup
141 : Seconds currently on battery
143 : Cumulative seconds on battery since apcupsd startup
145 : Date, time of last transfer off battery since apcupsd startup
147 : Date and time of last self test since apcupsd startup
151 : UPS status flag in hex
153 : Current UPS DIP switch settings
155 : Fault register 1 in hex
157 : Fault register 2 in hex
159 : Fault register 3 in hex
161 : UPS date of manufacture
165 : Date battery last replaced (if set)
167 : Nominal output voltage to supply when on battery power
169 : Nominal battery voltage
171 : Number of external batteries (for XL models)
173 : Number of bad external battery packs (for XL models)
175 : UPS firmware version
177 : APC model information
179 .Ss Newer Back-UPS Pro (Smart Signalling)
180 .Bl -hang -width "xxxxxxxx"-compact
182 : Current input line voltage
184 : Percentage of UPS load capacity used
186 : Min battery charge % (BCHARGE) required for system shutdown
188 : Min battery runtime (MINUTES) required for system shutdown
190 : Max battery runtime (TIMEOUT) after which system is shutdown
192 : Maximum input line voltage since apcupsd startup
194 : Minimum input line voltage since apcupsd startup
196 : Current UPS output voltage
198 : Current battery charge voltage
200 : UPS status flag in hex
202 .Ss Back-UPS RS 1500 (USB)
203 .Bl -hang -width "xxxxxxxx"-compact
205 : Current input line voltage
207 : Percentage of UPS load capacity used
209 : Current battery capacity charge percentage
211 : Remaining runtime left on battery as estimated by UPS
213 : Min battery charge % (BCHARGE) required for system shutdown
215 : Min battery runtime (MINUTES) required for system shutdown
217 : Max battery runtime (TIMEOUT) after which system is shutdown
219 : Current UPS output voltage
221 : Time UPS waits after power off when the power is restored
223 : Delay before UPS powers down after command received
225 : Input line voltage below which UPS will switch to battery
227 : Input line voltage above which UPS will switch to battery
229 : Battery charge % required after power off to restore power
231 : UPS internal temperature in degrees Celcius
233 : Delay period before UPS starts sounding alarm
235 : Current battery voltage
237 : Current line frequency in Hertz
239 : Reason for last transfer to battery since apcupsd startup
241 : Number of transfers to battery since apcupsd startup
243 : Date, time of last transfer to battery since apcupsd startup
245 : Seconds currently on battery
247 : Cumulative seconds on battery since apcupsd startup
249 : Date, time of last transfer off battery since apcupsd startup
251 : Date and time of last self test since apcupsd startup
253 : UPS status flag in hex
255 : UPS date of manufacture
259 : Date battery last replaced (if set)
261 : Nominal battery voltage
263 : UPS firmware version
265 : APC model information
266 .It * presence dependant on USB firmware version.
268 .Ss Web/SNMP (AP9716) or PowerNet SNMP (AP9605) SmartSlot Card
269 .Bl -hang -width "xxxxxxxx"-compact
271 : Current input line voltage
273 : Percentage of UPS load capacity used as estimated by UPS
275 : Current battery capacity charge percentage
277 : Remaining runtime left on battery as estimated by UPS
279 : Min battery charge % (BCHARGE) required for system shutdown
281 : Min battery runtime (MINUTES) required for system shutdown
283 : Max battery runtime (TIMEOUT) after which system is shutdown
285 : Maximum input line voltage since apcupsd startup
287 : Minimum input line voltage since apcupsd startup
291 : Current UPS sensitivity setting for voltage fluctuations
293 : Time UPS waits after power off when the power is restored
295 : Delay before UPS powers down after command received
297 : Low battery signal sent when this much runtime remains
299 : Input line voltage below which UPS will switch to battery
301 : Input line voltage above which UPS will switch to battery
303 : Battery charge % required after power off to restore power
305 : UPS internal temperature in degrees Celcius
307 : Delay period before UPS starts sounding alarm
309 : Current line frequency in Hertz
311 : Number of transfers to battery since apcupsd startup
313 : Seconds currently on battery
315 : Cumulative seconds on battery since apcupsd startup
317 : Date, time of last transfer off battery since apcupsd startup
321 : UPS status flag in hex
323 : Current UPS DIP switch settings
325 : UPS date of manufacture
329 : Date battery last replaced (if set)
331 : Nominal output voltage to supply when on battery power
333 : Nominal power output in watts
335 : Number of external batteries (for XL models)
337 : Number of bad external battery packs (for XL models)
339 : UPS firmware version
341 : APC model information
343 .Ss Share-UPS (AP9270) (Basic port)
344 .Bl -hang -width "xxxxxxxx"-compact
346 : Min battery charge % (BCHARGE) required for system shutdown
348 : Min battery runtime (MINUTES) required for system shutdown
350 : Max battery runtime (TIMEOUT) after which system is shutdown
352 : Number of transfers to battery since apcupsd startup
354 : Seconds currently on battery
356 : Cumulative seconds on battery since apcupsd startup
358 : Date, time of last transfer off battery since apcupsd startup
360 : UPS status flag in hex
362 .Ss UPS Environmental Monitoring SmartSlot Card (AP9612TH)
363 .Bl -hang -width "xxxxxxxx"-compact
367 : Ambient temperature
369 .Ss Back-UPS Pro and Smart-UPS v/s (Smart Signalling)
370 .Bl -hang -width "xxxxxxxx"-compact
372 : Input line voltage status.
376 : Last (observed) transfer to battery.
378 .Ss Back-UPS and Net-UPS (Simple Signalling)
379 .Bl -hang -width "xxxxxxxx"-compact
381 : Input line voltage status.
385 : UPS status flag in hex.
388 .Pa /etc/apcupsd/apcupsd.conf
393 The HTML apcupsd manual installed on your system or available online at
394 http://www.apcupsd.org/
399 .An Adam Kropelin (current Project Manager and Code Maintainer)
400 .An Kern Sibbald (former Project Manager and Code Maintainer)
401 .An Riccardo Facchetti (former Project Manager and Code Maintainer)
402 .An Andre M. Hedrick (Project Founder and former Code Maintainer)
404 An enormous number of users who have devoted their time and energy to
405 this project -- thanks.