MAQPNADocs

maqpna audit export-segments

Copy an edge gateway's sealed ledger segments to a directory, e.g. removable media

Observe-o json | yaml

Synopsis#

maqpna audit export-segments --out DIR [--since SEQ] [--spool DIR | --ledger FILE]   (an edge's sealed segments onto removable media)

Flags#

FlagTypeDescriptionDefault
--ledgerstringthe edge gateway's ledger file: the spool is LEDGER.spoolnone
--outstringdirectory to copy the segments into (created)none
--sinceintonly segments holding records after this seq (e.g. the collector's last receipt)none
--spoolstringthe edge gateway's spool directory (offline.spoolDir)none

The global flags (--context, -o, --no-color, ...) work with every command.

What happens when you run it#

  • Reads the audit ledger offline with --ledger FILE: the edge gateway's ledger file: the spool is LEDGER.spool.
  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)