# mainskeeper CLI — PROPOSED product contract, not shipped software. Fictional demonstration data.
# screen: doctor-revoked · host: bw-pi-01 · 80 columns · NO_COLOR · exit 3
# clock: Wed 30 Sep 2026 15:32 PDT · Fixture · “revoked” scenario, now 15:32
# stderr lines (counting the prompt line as 1): 7, 8, 22
bw-pi-01 $ mainskeeper doctor
MainsKeeper · bw-pi-01 · doctor                        Wed 30 Sep 2026 15:32 PDT
Checks read state only. Nothing on the UPS or attached equipment is changed.

✓ config
  /etc/mainskeeper/collector.toml valid (schema 1)
✗ enrollment
  revoked by jp at 15:30 PDT — uploads rejected (HTTP 401, 3 attempts)
✓ service
  mainskeeperd.service active (running)
✓ UPS source
  BW Rack UPS (USB) and BW Office UPS (SNMP v3) answering
✓ source secrets
  src-bw-office-snmp Configured (stored locally)
✓ cloud
  ingest.mainskeeper.example reachable
⇡ queue
  recording locally since 15:29:58 · kept until re-enrolled (2 GB disk cap)
▲ dashboard
  both Broadwater UPSs show “Stale · last known 15:29:58”

Result  1 problem · exit 3 (not enrolled / revoked)

Fix
  › sudo mainskeeper enroll --reenroll  (keeps sources, roles and buffered
    history)
