NUT: check UPS telemetry without cutting power

Share
Electricity pylons stretching across a green field
Contents

At a glance

Read an existing Linux NUT installation, identify the right UPS, interpret supported values and document missing data without starting a shutdown test.

Define the check and prepare the connection

This guide is for a Linux user with an existing, administered Network UPS Tools installation. You need terminal access, permission to query it and the name of the computer running its data server. The outcome is a recorded telemetry check: which UPS responded, which variables it supplied and which uncertainties remain. It is not installation, battery calibration or proof that automatic shutdown works.

Ask the administrator which machine runs the driver and upsd, and whether your shell is on that same machine. The driver communicates with the device; upsd serves its data to clients. A desktop powered by the UPS is not necessarily the server that monitors it. Write down the approved server address before issuing commands. Do not open a router port or change firewall rules to make a failed query work. Keep the existing power connections and monitoring services in place. If nobody can identify the configured server, resolve that prerequisite before continuing. [1][2][6]

Find the configured UPS name

Run upsc -V to record the installed client version, then upsc -h to see its local help. Online manuals can describe newer options than a distribution package. The examples below use basic text output rather than assuming that a recently documented output format is installed.

On the NUT server itself, run upsc -l localhost. On another authorized computer, replace localhost with the server hostname supplied by the administrator. A successful listing returns configured UPS names. These are configuration identifiers, not necessarily the product name printed on a case. If the result is officeups, the corresponding local target is officeups@localhost. Replace officeups in every subsequent command with the actual returned name. Keep the hostname consistent too. An empty list is not a healthy-device result: confirm that you reached the intended server and ask its administrator about the configuration. Do not create a guessed device entry just to obtain output. [1]

Read a snapshot and confirm its identity

Run upsc officeups@localhost to retrieve the available variables for that example target. Read the output before trying to extract individual values. Look for device.model or ups.model and, when provided, a serial number. Compare the identity with the equipment record. Where several UPSes exist, a successful reply from the wrong one would invalidate the check.

Then run upsc officeups@localhost ups.status to request only the status value. This demonstrates the documented single-variable query without changing a device setting. Preserve any diagnostic message separately from the returned data. NUT documents standard output as the stream intended for scripted data consumption; an error printed elsewhere is not a measurement. If the name or serial cannot be matched, label identity unconfirmed and stop short of certifying the installation. Do not publicly paste an unedited snapshot: it can contain hostnames, serial numbers, contact details or location information that are unnecessary for a support question. [1][3]

Interpret fields without inventing guarantees

NUT's variable reference defines ups.status as a string that can contain several space-separated tokens. Read the complete value and consult the status reference linked from that variable; do not treat its first characters as a universal success indicator. Model-specific alarms and the physical device display may require separate investigation.

Common numeric fields have different meanings. battery.charge is a percentage, battery.runtime is expressed in seconds, and ups.load is a percentage of UPS load. A field may be absent because the device or driver does not expose it. Absence is not zero, and a runtime estimate is not a measured discharge test. Query an individual field only after confirming that it exists in the full snapshot. In your notes keep the variable name, unit and reported value together. Do not compare an unexplained percentage with a duration or turn a single reported charge value into a claim about battery health. [3]

Separate communication errors from device alarms

If a query fails, first copy the exact error and the target you used. The upsc manual directs users to check the UPS name, the running data server and possible firewall blocking. Work through those checks with the administrator rather than replacing the whole configuration. A typo in a configured name and an unreachable server are different findings and should be recorded separately.

If the server responds but reports stale or unavailable device data, a network reply alone does not establish communication with the physical UPS. upsd serves information obtained from drivers and maintains a cache. Ask the operator to inspect the relevant driver and server logs using the distribution's documented service names. Do not restart monitoring as an experiment while protected systems are busy. If an actual device alarm is present, follow the device operator's incident process. This read-only exercise is not a reason to ignore an alarm, drain a battery or remove a power cable. [1][2]

Record a repeatable observation

Repeat the full query after a short observation interval and record the actual times and time zone. You are checking that another request succeeds and comparing what the server reports, not forcing the battery or mains supply to change. Identical readings can be normal for a stable load; they do not independently prove freshness. Record whether diagnostics appeared, rather than deleting them to make a clean-looking report.

For installations that already keep history, ask for the relevant log interval. NUT supplies upslog for periodic collection of selected variables, but starting a new daemon is outside this check. A configured logger's fields and sampling interval determine what its history can establish. As a worked example, imagine both snapshots identify officeups and return status plus charge, but neither includes runtime. The correct result is that these observations succeeded and runtime was unavailable. It is not that remaining runtime is unlimited, zero or independently verified by the repeated query. [1][5]

Close the check with explicit limits

Finish with a short handover containing the client version, server and configured UPS identifier, identity comparison, observation times, supported fields and unresolved errors. Mark the outcome as confirmed telemetry, incomplete telemetry or failed communication, with the reason. Redact operational identifiers before sharing the note outside the responsible team. The table below provides a compact record structure; use actual observations rather than the illustrative example.

A successful upsc check does not establish that the operating system will shut down safely. NUT assigns monitoring and shutdown control to upsmon, which has separate configuration and can initiate consequential actions. Do not use a forced-shutdown command as a harmless connectivity probe. A shutdown test needs its own approved maintenance procedure, recovery plan and responsibility for connected systems. Keep this distinction in the handover even when every reading looks reasonable. Review the check after device replacement, driver or package changes, or a reported power incident; independent file backups remain a separate requirement. [4][6]

Telemetry handover

RecordWhat to write
IdentityApproved server, UPS identifier and equipment match
ObservationsTimes, variables, units and exact diagnostics
LimitsMissing values and shutdown behavior not tested

Frequently asked questions

Does a successful query test the battery?

No. It reads reported data; it does not measure a discharge cycle. [1]

Should a missing runtime field be entered as zero?

No. Record that the variable was unavailable in this response. [3]

Should I change the firewall if localhost fails?

First confirm that the server is actually local and ask its administrator to diagnose the failure. [1]

Evidence & sources

Source record: · Checked:

Record limits · Official documentation checked on 26 November 2026. Read-only commands for an existing installation; no physical UPS or shutdown sequence tested. Review after changes or on 26 December 2026.

  1. [1]Source reported

    upsc is a read-only client that lists configured UPSes and reads variables.

    Supporting excerpt: NUT: upsc manual

    Original quotation

    Lightweight read-only NUT client
    NUT: upsc manual ↗

    Source language: EN · Captured Nov 26, 2026

  2. [2]Source reported

    upsd serves driver data and maintains a local cache.

    Supporting excerpt: NUT: upsd manual

    Original quotation

    maintains a local cache of the current state
    NUT: upsd manual ↗

    Source language: EN · Captured Nov 26, 2026

  3. [3]Source reported

    The NUT reference defines status and measurement variables, with device-dependent availability.

    Supporting excerpt: NUT: variable reference

    Original quotation

    Battery runtime (seconds)
    NUT: variable reference ↗

    Source language: EN · Captured Nov 26, 2026

  4. [4]Source reported

    upsmon is responsible for monitoring and shutdown control.

    Supporting excerpt: NUT: upsmon manual

    Original quotation

    UPS monitor and shutdown controller
    NUT: upsmon manual ↗

    Source language: EN · Captured Nov 26, 2026

  5. [5]Source reported

    upslog periodically collects selected UPS variables.

    Supporting excerpt: NUT: upslog manual

    Original quotation

    poll a UPS at periodic intervals
    NUT: upslog manual ↗

    Source language: EN · Captured Nov 26, 2026

  6. [6]Source reported

    NUT configuration separates driver communication and automatic shutdown setup.

    Supporting excerpt: NUT: configuration notes

    Original quotation

    establishing communication
    NUT: configuration notes ↗

    Source language: EN · Captured Nov 26, 2026