HERD
User manual
Admin track · Setup C

Device health & configuration

Two things HERD does once your devices exist: it can poll them to tell you which ones are actually reachable, and it versions every config it pushes so you can see, diff, and restore what changed. Neither is on by default — this page turns them on and explains what you'll see.

Both features lean on drivers — the Python packages that know how to log into your hardware (see first-day setup). Health polling uses a driver's login/status/logout sequence; config apply uses the driver's apply path. A device whose driver can't do these simply won't participate.

Is it alive?

Device health monitoring

Health monitoring asks each opted-in device, on a schedule, “are you reachable and healthy?” by running its driver's login → status → logout sequence. The result becomes a coloured badge on the device's detail page and, when it changes for the worse, a notification.

Opt a device in

Turning polling on

Polling is off until you set a poll interval. You can set it on a single device, or on a template so every device of that type inherits it.

Set Poll interval (seconds) on the device or its template

Open the device (or template) and set how often HERD should check it. The floor is 30 seconds — anything lower is rejected so a typo can't hammer your gear.

Leave it blank to opt out

No interval = no polling. Most labs poll a handful of always-on infrastructure devices and leave DUTs alone. Set it per-template for a whole class, or per-device for one-offs.

The scheduler picks it up automatically

No restart needed. The execution service runs each opted-in device on its own cadence from then on.

The colour code, again

Reading the health badge

The device detail page shows the latest snapshot plus when it was last checked. Four states:

herd.lab/inventory/spine-sw-01
spine-sw-01 Arista 7050X
Device
Status
AVAILABLE
Topology type
PHYSICAL
Health
HEALTHY
Last checked
2 minutes ago · polls every 60s

The health badge on a device detail page. The state, plus the last-poll time and cadence.

  1. The health badge. One of four states (below). Only shown for devices that are opted in — no interval, no badge.
  2. Last checked. When the last poll ran and how often it repeats, so a stale badge is obvious.
BadgeMeans
HEALTHYLast poll logged in, read status, and logged out cleanly.
DEGRADEDReachable, but the driver reported something off — a partial or warning condition.
UNREACHABLEThe poll couldn't complete — login failed or the device didn't answer.
UNKNOWNNot yet polled, or polling was just turned on. A transient starting state.

When it stops answering

What happens when a device goes bad

Health alerts land in the same bell as reservation notifications, and users can opt out of them per-event in notification settings. They're on by default for admins.


Every change, kept

Device configuration versions

Whenever a config is applied to a device — by hand, by a reservation, or by the AI assistant — HERD snapshots it as a numbered version. The device's detail page lists them newest-first: who applied it, when, and its description. The version list, the diff, and a version's detail all follow device visibility: a device outside your groups answers "Device not found", exactly like the device page. Admins see every device.

Configuration history spine-sw-01
v7Applied by jordan · 2026-05-19 14:02CURRENT
v6Applied by sara.k · 2026-05-12 09:40Diff
v5Applied by jordan · 2026-05-04 16:18Restore

Configuration history. Each apply is a version you can inspect, diff, or restore as a new draft.

  1. Current. The version live on the device right now.
  2. Diff. Opens a unified diff between any version and the current one.
  3. Restore. Creates a new config version copied from the older one and marked as restored from it. The new version is a draft: nothing is applied to the device until you apply it. Guarded like topology restore (issue #337): if the device is held by an active reservation (ACTIVE, PENDING_PROVISION, or PENDING) that belongs to someone else, the restore is blocked with a 409. A reservation you own does not block your own restore, and if the reservations service cannot be reached the restore fails closed with a 503 rather than proceeding.

What changed

Diff & restore

The diff is a plain unified view — removed lines in red, added lines in green — so you can see precisely what one apply changed before you trust or revert it.

 hostname spine-sw-01
 !
 interface Gig0/3
- switchport access vlan 100
+ switchport access vlan 250
- description legacy-uplink
+ description lab-segment-b
  no shutdown

A unified config diff between v6 and the current version.

Pushing config on a schedule

Scheduled apply & dry run

Instead of applying a config by hand, you can schedule it for a time, and tie it to a reservation that is ACTIVE right now so the push happens only while the lab is yours. On the device page the Schedule form has one control, Schedule for (optional); the reservation link is an API and assistant feature. An immediate Apply now needs an explicit manage grant for a non-admin; a reservation owner without a grant schedules the apply instead.

Apply is gated on what the device's driver can do. Applying or scheduling a config on a device whose driver connection type does not include configure is refused with 409 driver_cannot_configure, naming the connection type and the driver, before any job is created. Today only the Management connection type can configure. The scheduled-apply loop checks again when a job fires, against the device's current driver. Creating, listing, reading, and restoring config versions are not gated on any connection type: a Layer 2 or Layer 3 version stores intent. A configure on a device with no driver at all is refused by the execution service with 409 device_has_no_driver, before any run is recorded. The device page shows these refusals in words: Apply now and Schedule show the 409's sentence and the driver's name, a refused restore lists up to three blocking reservations, and any other plain-text refusal (a 403, a 422, a 503) shows as given, instead of the old generic Apply request failed and Restore failed.

Driver error text is sanitized. When a driver raises, the stored error on a run or an apply job is only driver raised <ExceptionClassName>; a driver that cannot be loaded stores driver load failed: <ExceptionClassName>; a driver process that dies with no structured error stores driver process exited with status N. The full text goes to the execution service log, tagged with the run id. A driver that returns its own failure (success false) keeps its own message.

Per-command transcripts

When a driver opts in, each apply records a line-by-line transcript — every command, its response, how long it took, and whether it was real or simulated. That transcript is exactly what the AI assistant's confirm dialog shows you, and it doubles as an audit trail for any apply.

Dry-run needs a willing driver

A driver has to declare that it supports dry-run before HERD will simulate against it. Drivers that haven't opted in can't be dry-run — the schedule endpoint, the AI tool, and the execution sandbox all refuse rather than guess. If you author drivers, see the driver guide in the repo.

A device shows UNREACHABLE but I can reach it myself
  • Check the credentials/fields the driver uses to log in (IP, login, password). A health poll runs the same login a reservation would — if the poll can't authenticate, neither can a real run.
  • Mind the backoff. After repeated failures the poll interval stretches out, so the badge can lag a recovery by a cycle or two. It'll catch up on the next successful poll.
  • UNKNOWN that never changes usually means the driver's status method isn't returning a clear result. That's a driver issue, not a HERD one.

HERD User Manual · Device health & configuration