Usage: stratum support <action>   (module type: service)

Remote support from Stratum and diagnostic reports. Remote support needs a
license with the feature "support" (stratum license).

Actions:
  state                one line for the Stratum Control Desk: running - N-min-left,
                       or stopped - ready / stopped - no-license
  status               license, relay, the running session, last sessions
  status --json        the same as data: state, remaining minutes, session user,
                       tunnel, relay, recorded sessions with size and start,
                       licence state (feature "support") and the last report
  pending              exit 0 when a change waits for confirmation (never here)
  start [hours]        open a session for 1-72 hours (default 4) and show the
                       session code for Stratum support; --json prints the
                       session, the code and the connection command
  stop                 end the session at once: tunnel, keys, sudo rule and
                       the temporary user are removed. This cuts access and
                       deletes the session user, so it is refused with exit 3
                       unless the core repeats it with STRATUM_FORCE=1 (the
                       automatic end of the session is never refused)
  watch                follow the recorded terminal of the session live
  watch --json         the same as one JSON object per line (start, data, stop);
                       the follow ends when the session ends
  sessions [n]         the last sessions (log), default 20
  sessions --json      the recorded terminals with size and start time, and
                       the log lines
  report [--anonymize] diagnostic report /root/stratum-report-*.tar.gz:
                       Stratum and module status, packages, resources,
                       network, failed services, errors from the journal,
                       watchdog events of the last week (stratum-watchdog);
                       --anonymize replaces host name, IP and MAC addresses
  report --json        the same report, written to the same place, plus the
                       path, the size and every section with its size
  settings             rows for the Stratum Control Desk
  dialog <key>         window of the Control Desk: session, watch, report,
                       sessions, license
  options              the menu entries of this module
  help                 show this help

Options:
  --json               machine-readable output (status, start, sessions,
                       watch, report)

How a session works:
  - an SSH reverse tunnel from this computer to the Stratum relay (relay and
    its host key come from the signed license) - nothing is opened in the
    firewall of this computer
  - a temporary user stratum-support with the support keys of the license,
    only through the tunnel and only until the end of the session, with sudo
  - everything typed is recorded in /var/log/stratum-support
  - at the end (time over or "stop") all access is removed

Files:
  /var/log/stratum-support/   sessions.log, recorded sessions
  /run/stratum/support/       the running session
  /root/stratum-report-*.tar.gz   diagnostic reports
