Every scenario run produces a report: its events, its assertion verdicts and every telemetry sample taken during the run. This page shows how to retrieve reports from the unit and read them. The report format itself is described in Assertions and Reports.
Getting reports#
stellarlinkctl runs --limit 20 # recent runs and verdicts
curl -s $STELLARLINK_API/api/v1/reports | jq '.[0:5]' # summaries
curl -s $STELLARLINK_API/api/v1/reports/<run-id> > run.json # one full report
curl -s $STELLARLINK_API/api/v1/scenario-runs/<run-id>/events # its events onlyIn the Web Console, Library → Reports lists runs; each report has its own page with the events, the assertions and the telemetry series, and an Export JSON button.
Reading a report#
Check these, in this order, before reading any verdict:
-
Provenance.
sourcemust bepl, meaning the samples come from the modem;stubmeans nothing was measured.Shell jq '{status, verified, aborted, source, sample_interval_ms}' run.json -
Traffic. Did anything cross?
tx_framesis cumulative, so look at its movement:Shell jq '[.metric_samples[].tx_frames | select(. != null)] | {first: .[0], last: .[-1]}' run.jsonA report showing
lock: falsethroughout cannot be interpreted without this: "the link is broken" and "nothing was transmitted" otherwise look the same. -
Did the timeline do what the file says? Look for staged, refused or unavailable events:
Shell jq -r '.events[] | select(.kind | test("staged|refused|unavailable")) | "\(.elapsed_ms)ms \(.kind): \(.description)"' run.json -
The assertions, with their measured values and windows:
Shell jq -r '.assertions[] | "\(if .passed then "PASS" else "FAIL" end) \(if .verified then "" else "(NOT VERIFIED) " end)\(.name): \(.message)"' run.json
Useful extractions#
Frames received against frames sent, per sample:
jq -r '.metric_samples[] | [.elapsed_ms, .tx_frames, .rx_frames, .rx_frame_errors, .agc_gain, .lock, .carrier_lock] | @tsv' run.jsonFraction of samples locked (timing and carrier) over the whole run:
jq '[.metric_samples[]] | {n: length,
timing: (map(select(.lock)) | length),
carrier: (map(select(.carrier_lock)) | length)}' run.jsonThe channel emulator's state around a step, to confirm an impairment reached the link:
jq -r '.metric_samples[] | select(.elapsed_ms > 29000 and .elapsed_ms < 36000) | [.elapsed_ms, .chan_ctrl, .lock] | @tsv' run.jsonSample and event times are elapsed_ms since the start of the run and are always reliable.
started_at and ended_at come from the unit's clock, which is only meaningful once the unit's
time has been set.
Comparing runs#
- Fix the offered load. Give traffic steps a
countso two runs send the same number of packets; otherwise you compare the throughput each run happened to achieve. - Repeat before concluding. Repeat a measurement and its control a few times, including across restarts of the unit, before attributing a difference to the parameter you changed.
- Keep the controls in the same run. Running the reference condition first and last lets you read the middle of the run against them.
- Be wary of a single striking result. A clean, convincing result from one run can still be a transient; confirm it with repetitions.
Frames and link margin#
Received data is also available outside reports:
GET /api/v1/frames: a ring of recently received blocks;ws://<unit-address>:8080/ws/frames: the live receive stream, per packet in slot framing;- the ZeroMQ
frame.rxtopic, whosemarginfield carries soft marker matches and Reed-Solomon corrections per block, and whosequalityfield carries the FECF verdict when transfer frames are configured (see ZeroMQ Link Service).
Campaign results#
stellarlinkctl campaign status <id> (or GET /api/v1/campaign-runs/{id}) gives each step's
attempts and verdicts, and the scenario run id of every scenario step; fetch those reports as
above. The campaign's own state and the scenario reports it points to both survive a restart of the
unit (see the note above for how many full reports are kept).