Closing-time planner

Last orders for your servers. Enter your UPS battery runtime, how long you wait before shutdown starts, and how long each machine takes to shut down. The planner draws the timeline and tells you whether everything is off before the safety margin you choose.

The planner only adds up numbers you type, in the order you give, so the result is an estimate that is only as good as your readings. It starts filled in with the example from the home page: replace those values with your own readings and settings.

Closing-time planner

Your UPS and its battery
min
From your UPS's own readout at today's load. NUT shows it as battery.runtime, in seconds: divide by 60 seconds per minute. Up to six decimal places.
min
Minutes from time zero (the start of your runtime estimate, usually the power failure) until shutdown starts. 0 if it starts at once.
min
How long the UPS keeps its outlets on after the last machine is off. 0 if you do not use one.
min
Battery you want left when the UPS cuts power. Actual runtime can differ from the readout as the battery's condition or the load changes.
Machines, in leaving order

Give machines that shut down at the same time the same order number. Times are minutes from the shutdown signal to fully off.

How it works it out

All times are minutes after time zero: the start of the runtime estimate you enter. That is usually the moment the power fails. If you use the runtime your UPS reports at a low-battery trigger, time zero is that trigger.

step length = the longest shutdown time among machines with that order number
all off = wait + sum of step lengths
UPS off = all off + UPS power-off delay
left in battery = runtime − UPS off
fits when left in battery ≥ safety margin

  • Steps run one after another, lowest order number first. Machines that share an order number shut down at the same time.
  • The runtime is taken exactly as you enter it. The planner does not recalculate it as machines switch off and the load drops, so the real runtime after the first machines leave may be longer. Battery age, temperature and load changes can also make it shorter.
  • Shutdown times are your own: from the moment a machine is told to shut down until it is fully off.
  • Many setups start shutdown when the UPS reports a low battery instead of after a fixed wait. In that case, enter the runtime the UPS reports at that moment and a wait of 0, and read every time as minutes after that trigger.
  • Calculator limits: up to 1,440 minutes for each time, with up to six decimal places, order numbers from 1 to 99, and up to 12 machines. These limits are for the planner, not claims about real equipment.

Reading your runtime with Network UPS Tools: upsc yourups@localhost battery.runtime prints the estimate in seconds when your UPS exposes battery.runtime. Replace yourups with the name you configured for your UPS. Variable names and units are listed in the project's NUT variable names and instant commands (nut-names.txt), Network UPS Tools project; the command is described in the upsc(8) manual page, Debian trixie manpages. Seconds to minutes uses the standard 60 seconds per minute (NIST SP 811, Chapter 5: Units Outside the SI, Table 6, National Institute of Standards and Technology).