maqpna audit export-segments
Copy an edge gateway's sealed ledger segments to a directory, e.g. removable media
Synopsis#
maqpna audit export-segments --out DIR [--since SEQ] [--spool DIR | --ledger FILE] (an edge's sealed segments onto removable media)Flags#
| Flag | Type | Description | Default |
|---|---|---|---|
--ledger | string | the edge gateway's ledger file: the spool is LEDGER.spool | none |
--out | string | directory to copy the segments into (created) | none |
--since | int | only segments holding records after this seq (e.g. the collector's last receipt) | none |
--spool | string | the 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 jsonor-o yamlprint the data, and--jq EXPRfilters the JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |