APCTEST(8)
β¨ NAME β¨
okay so this is apctest β literally the apcupsd(8) test program π
π SYNOPSIS π
apctest
π¦ DESCRIPTION π¦
bestie, apctest is the program that lets you run certain low-level tests to check how the attached simple signalling American Power Conversion Corp (APC) UPS is doing, and to check that your apcupsd(8) config is set up correctly and can actually establish communication with the UPS. No cap.
For an APC UPS running in APC smart protocol mode, apctest lets you read and program the values of the UPS EEPROM configuration variables, and also do a battery runtime calibration. It also gives you a simple TTY chat mode so you can directly interact with the UPS via the APC smart protocol. For the deets on that protocol and the available commands, go read the detailed "APC Smart Protocol" section in the apcupsd manual. iykyk.
IMPORTANT: Before running apctest π¨
- Check that the
UPSCABLE,UPSTYPEandDEVICEconfiguration directives in theapcupsd.conf(5)configuration file have been set appropriately; and - Shutdown
apcupsdif it is running. You cannot run bothapcupsdandapctestat the same time. periodt.
When you run it, apctest shows a menu of options that are different depending on whether the UPS is connected to a USB port or to a serial port. For a serial port connection, there are two different menus depending on whether the UPS is operating in APC smart protocol mode or simple signalling mode β this also depends on which cable is used to connect to the UPS. If a simple signalling cable is used to connect to a Smart-UPS, the UPS will only be able to operate in simple signalling mode. the way that matters π
apctest saves a transcript of the session to the file apctest.out in the directory from which the program was called. Its content is useful for debugging purposes. obsessed with receipts β¨
π USB PORT π
When using a UPS connected to a USB port (eg Back-UPS RS 1500), the following menu options will appear:
π Option 1) Test kill UPS power
Performs a power down of the UPS into hibernate mode. sleepy time π΄
π Option 2) Perform self-test
Performs an immediate self-test (switches to battery power to do so). β‘
π Option 3) Read last self-test result
Displays the last self-test result. receipts π§Ύ
π Option 4) View/Change battery date
Displays the current battery replacement date and optionally allows you to change it β useful when the battery is replaced so that you can accurately keep track of its age. age tracking but for batteries π
π Option 5) View manufacturing date
Displays the date the UPS was manufactured. born on date πΌ
π Option 6) View/Change alarm behavior
Sets the delay period before the UPS starts sounding its alarm when the utility power is lost. beep beep π¨
π Option 7) View/Change sensitivity
Changes how sensitive the UPS is to the utility power quality and voltage fluctuations β (H)igh, (M)edium or (L)ow. The higher the sensitivity, the faster the UPS will switch to battery power or activate SmartBoost/SmartTrim (features that avoid using battery power provided the under/over voltage is within 12% of nominal). This setting should normally be set to High unless the UPS switches to battery power frequently, in which case a less sensitive setting will preserve UPS batteries... if the connected equipment can tolerate the power quality. vibe check on the voltage π
π Option 8) View/Change low transfer voltage
Sets the low voltage level at which the UPS switches to battery or activates SmartBoost. lowkey β¬οΈ
π Option 9) View/Change high transfer voltage
Sets the high voltage level at which the UPS switches to battery or activates SmartTrim. highkey β¬οΈ
π Option 10) Perform battery calibration
This performs a battery runtime calibration. This can only be performed if your battery is charged to 100% of capacity. The runtime calibration discharges the UPS battery to approximately 25% of capacity. The exact percentage depends on the UPS model.
The advantage of doing this calibration is that the UPS will recalibrate the remaining runtime counter that it maintains and therefore report a more accurate estimated runtime. As batteries age, they tend to hold less charge, so the UPS's internal runtime counter may not be accurate after several years.
It is recommended that battery runtime calibration be performed annually. Performing it too often shortens the lifetime of the UPS batteries. do not spam this button π
π Option 11) Test Alarm
This option will cause the UPS alarm beeper to sound for several seconds. π
π Option 12) View/Change self-test interval
This option allows you to change the time interval between automatic UPS self-tests. schedule that self-care ποΈ
π Option Q) Quit
Exits from the program. bye bestie π
π SERIAL PORT (SMART PROTOCOL MODE) π
When using a UPS operating in APC smart protocol mode (eg a Smart-UPS) the following menu options will appear:
π« Option 1) Query the UPS for all known values
Selecting this option probes the UPS for all EEPROM configuration variable values known to apctest and displays them in rather raw format. This output can be useful for providing technical support if you are having problems with the behaviour of the UPS or apcupsd(8). dump it and send it π€
π« Option 2) Perform a Battery Runtime Calibration
This performs a battery runtime calibration. This can only be performed if your battery is charged to 100% of capacity. The runtime calibration discharges the UPS battery to approximately 25% of capacity. The exact percentage depends on the UPS model. apctest can optionally abort the calibration if it detects that the battery charge is below 10%.
The advantage of doing this calibration is that the UPS will recalibrate the remaining runtime counter that it maintains and therefore report a more accurate estimated runtime. As batteries age, they tend to hold less charge, so the UPS's internal runtime counter may not be accurate after several years.
It is recommended that battery runtime calibration be performed annually. Performing it too often shortens the lifetime of the UPS batteries. annual, not daily β οΈ
π« Option 3) Abort Battery Calibration
This option aborts an in progress battery runtime calibration. stop right now π
π« Option 4) Monitor Battery Calibration progress
Allows restarting of the monitoring of a battery runtime calibration. watch it like a show πΏ
π« Option 5) Program EEPROM
Allows the programming of the values of a Smart-UPS's EEPROM configuration variables.
Choosing this option presents a sub-menu of programming options which are detailed below.
π Option 1) Print EEPROM values
Prints the value of all EEPROM configuration variables known to apctest. print it π¨οΈ
π Option 2) Change Battery date
Changes the battery date β useful when the battery is replaced so that you can accurately keep track of its age. birthday update π
π Option 3) Change UPS name
Changes the UPS name β use no more than 8 characters to name the UPS. short & cute β¨
π Option 4) Change sensitivity
Changes how sensitive the UPS is to the utility power quality and voltage fluctuations β (H)igh, (M)edium or (L)ow. The higher the sensitivity, the faster the UPS will switch to battery power or activate SmartBoost/SmartTrim (features that avoid using battery power provided the under/over voltage is within 12% of nominal). This setting should normally be set to High unless the UPS switches to battery power frequently, in which case a less sensitive setting will preserve UPS batteries... if the connected equipment can tolerate the power quality. same vibe check, different menu π
π Option 5) Change alarm delay
Changes the delay period before the UPS starts sounding its alarm when the utility power is lost. π¨
π Option 6) Change low battery warning delay
Changes the remaining runtime minutes at which the UPS will send the low battery signal. When the UPS internally calculates that the specified number of minutes remains before battery power will be exhausted, it sends the low battery warning. heads up bestie π
π Option 7) Change wakeup delay
Changes the delay before the UPS restores power to connected equipment when the utility power returns after shutting down in hibernate mode. wakey wakey βοΈ
π Option 8) Change shutdown delay
Changes the delay for which the UPS waits before shutting off power to the connected equipment after being commanded to power down in hibernate mode. wait for it β³
π Option 9) Change low transfer voltage
Changes the low voltage level at which the UPS switches to battery or activates SmartBoost. β¬οΈ
π Option 10) Change high transfer voltage
Changes the high voltage level at which the UPS switches to battery or activates SmartTrim. β¬οΈ
π Option 11) Change battery return threshold percent
Changes the battery charge percentage required after power down in hibernate mode before to the UPS will restore power to connected equipment on the return of utility power. threshold era π―
π Option 12) Change output voltage when on batteries
Changes the nominal voltage output when the UPS is running on battery power. β‘
π Option 13) Change the self test interval
Changes or disables the automatic self-test interval. self-care schedule ποΈ
π Option 14) Set EEPROM with configuration file values
This option allows the bulk programming of the EEPROM configuration variables from the values contained in the /etc/apcupsd.conf configuration file. Refer to the "APCTEST EEPROM CONFIGURATION DIRECTIVES" section of the man page for apcupsd.conf(5). bulk upload energy π¦
π Option 15) Quit
This option exits back to the previous (main) menu. back it up β©οΈ
π« Option 6) Enter TTY mode communicating with UPS
This option allows direct interaction with the attached UPS using the APC smart protocol commands.
WARNING: Take special care what commands you enter because it is possible to cause the UPS to suddenly shutdown or, in the worst case, modify the UPS in such a way as to permanently disable it. Do NOT experiment with unknown or unsupported commands. Caveat Utilitor! π
π« Option 7) Quit
Exits from the program. bye for real π
β¨ SERIAL PORT (SIMPLE SIGNALLING MODE) β¨
Okay bestie, when your APC UPS is out here living its simple signalling mode life, the menu gets a whole different lineup. Here's the cast of characters you'll see:
πΈ Option 1) Test 1 - normal mode
What you actually get from this test is fully dependent on the model of UPS you've got and the type of cable you're using β there's no universal answer, it's giving β¨situationalβ¨. For the deets, go read the "Using apctest on Serial-Line UPSses" section in the apcupsd manual.
π Option 2) Test 2 - no cable
Same energy as above, bestie: the result depends on the model of UPS and the type of cable being used. The "Using apctest on Serial-Line UPSses" section in the apcupsd manual is where you'll find the whole explanation.
π¦ Option 3) Test 3 - no power
Yeah, you already know β the outcome here hinges on the model of UPS and the type of cable in play. Hit up the "Using apctest on Serial-Line UPSses" section in the apcupsd manual for the full tea.
π Option 4) Test 4 - low battery (requires Test 3 first)
β οΈ Heads up: this one requires Test 3 first β do them in order, no skipping, fr fr.
And the result? Yep, it depends on the model of UPS and the type of cable being used. Check the "Using apctest on Serial-Line UPSses" section in the apcupsd manual for the details.
β Option 5) Test 5 - battery exhausted
The result depends on the model of UPS and the type of cable being used β same deal as its siblings. The "Using apctest on Serial-Line UPSses" section in the apcupsd manual has the explanation you're looking for.
π₯ Option 6) Test 6 - kill UPS power
Extremely main character behaviour, honestly. And the result depends on the model of UPS and the type of cable being used. Refer to the "Using apctest on Serial-Line UPSses" section in the apcupsd manual for the details.
π Option 7) Test 7 - run tests 1 through 5
This one is the multitasker π
β it runs tests 1 through 5, and it has apctest guess which cable should be used with the attached UPS. Let it cook.
π Option 9) Quit
Exits from the program. Bye bestie, it was so fun π«Ά
π (and yes, we jumped from 7 to 9 β that's just how the menu is, no option 8 in these streets)
π FILES π
/etc/apcupsd/apcupsd.confβ the default configuration fileapctest.outβ a transcript of the apctest session
π SEE ALSO π
Also, there's the HTML apcupsd manual β either installed right there on your system, or available online at http://www.apcupsd.org/ β¨
π AUTHORS π
π This page
- Trevor Roydhouse (current)
- Robert Huff
π» Software
- Adam Kropelin (current Project Manager and Code Maintainer)
- Kern Sibbald (former Project Manager and Code Maintainer)
- Riccardo Facchetti (former Project Manager and Code Maintainer)
- Andre M. Hedrick (Project Founder and former Code Maintainer)
π«Ά Contributors
An enormous number of users who have devoted their time and energy to this project β thanks. (No like, genuinely, an enormous number. Absolute icons, every single one of them. ππ)
And that's the whole page, bestie! This one was apctest v3.14.6, dated January 10, 2009, living under the name APCTEST(8). Now go test that UPS β you got this π
β¨πΈ
π¦ where this page comes from
- alpine 3.22: apcupsd-doc 3.14.14-r6 Β· GPL-2.0-or-later
- alpine 3.23: apcupsd-doc 3.14.14-r6 Β· GPL-2.0-or-later
- alpine 3.24: apcupsd-doc 3.14.14-r6 Β· GPL-2.0-or-later
- arch rolling: apcupsd 3.14.14-9 Β· GPL
- debian bookworm: apcupsd 3.14.14-3.1+b1 Β· GPL-2.0-or-later
- debian trixie: apcupsd 3.14.14-5 Β· GPL-2.0-or-later
- epel 10: apcupsd 3.14.14-36.el10_1 Β· GPL-2.0-only
- epel 9: apcupsd 3.14.14-35.el9 Β· GPL-2.0-only
- fedora 43: apcupsd 3.14.14-39.fc43 Β· GPL-2.0-only
- fedora 44: apcupsd 3.14.14-41.fc44 Β· GPL-2.0-only
- nixos 26.05: apcupsd 3.14.14
- nixpkgs unstable: apcupsd 3.14.14
- opensuse-leap 16.0: apcupsd 3.14.14-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: apcupsd 3.14.14-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: apcupsd 3.14.14-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: apcupsd 3.14.14-bp160.1.1 Β· GPL-2.0-only
- ubuntu jammy: apcupsd 3.14.14-3.1build1 Β· GPL-2.0-or-later
- ubuntu noble: apcupsd 3.14.14-3.1build2 Β· GPL-2.0-or-later
- ubuntu questing: apcupsd 3.14.14-5
- ubuntu resolute: apcupsd 3.14.14-7 Β· GPL-2.0-or-later
- ubuntu stonking: apcupsd 3.14.14-7build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms