Command-line reference¶
Every binary prints its configuration reference with config-docs (agent:
config docs); configuration is generated from those.
fwctl¶
fwctl [-url URL] [-token TOKEN] [-ca-file FILE] [-o table|json] <group> <command> [flags] [args]
fwctl version
Environment: FWCTL_URL, FWCTL_TOKEN, FWCTL_CA_FILE, FWCTL_OUTPUT.
Prefer FWCTL_TOKEN to -token, which other users of the machine can see
in the process list. The token’s prefix picks the API: fwo_ reaches
operator endpoints, fwt_ the tenant’s own.
The URL must be
https://. Plainhttp://is accepted only to a loopback address (localhost,127.0.0.0/8,::1), for a local proxy or tunnel that ends TLS; anywhere else it would send the token in clear text.Each command takes only its own flags; any other flag is an error. Flags may follow the arguments, and
--ends them.Lists follow cursors to the end.
-limit Nstops after N items and asks the API for pages of N. With-o jsona list is a JSON array,[]when empty.An API call times out after 2 minutes. An export download has no overall deadline and fails only when no data arrives for 2 minutes.
Command |
Token |
Does |
|---|---|---|
|
operator |
create a tenant and its keys |
|
operator |
every tenant |
|
operator |
destroy keys first, then data |
|
tenant |
own settings |
|
either |
new API token, shown once |
|
tenant |
API tokens |
|
either |
one-time enrollment tokens |
|
tenant |
devices |
|
either |
revoke |
|
tenant |
revoke and delete all readings |
|
tenant |
decrypted readings |
|
tenant |
reported gaps |
|
tenant |
exports, digest-checked |
|
either |
audit log |
|
tenant |
a background job, such as the |
fleetwire-agent¶
Command |
Does |
|---|---|
|
the daemon |
|
validate the configuration (the snap’s configure hook) |
|
print the configuration reference |
|
ask the daemon, or read the files read-only if it is not running |
|
print the version, commit and Go version |
|
in the snap, as root: become |
|
in the snap, as root: create |
status reaches the daemon at metrics.listen, on loopback when that
address is a wildcard such as :9465. Both its plain and its JSON output
include the agent’s version; when the daemon is not running, that is the
version of the installed binary. In the snap the files belong to
snap_daemon, so reading them needs sudo; with sudo, the command runs as
snap_daemon, not as root.
Outside a snap: -data-dir DIR, -config file.json, -set key=value.
fleetwire-api¶
serve, migrate (owner URL), create-operator-token -name N (owner URL),
healthcheck, config-docs, version.
fleetwire-bridge, fleetwire-ingest¶
run (default), healthcheck, config-docs, version; ingest also
ensure-topics.
Test tools¶
fleetwire-loadgen run -devices N -state-dir DIR -token fwt_... [-interval 10s] [-readings 1] [-duration 10m] [-ramp 200/s] [-metrics-listen ADDR [-pprof]];-hlists the uplink and WAL settings given to every device.-metrics-listenserves/metricsand/status, the device counts as JSON (devices,started,running,open_failures,run_failures). It exits 1, after writingresults.jsonl, when a device could not be started; that device is not in the results.fleetwire-loadgen versionprints the version.fleetwire-checker -results results.jsonl [-json-out FILE]or-device ID -last-seq N [-gaps a-b,c-d]. It exits 1 when a seq is missing or duplicated, when a reported gap was not recorded, or when a seq above the device’s last seq is stored (beyond_last_seq, a device that lost its state).fleetwire-chaos run [-scenario a,b] [-devices 2000] [-steady 60s] [-after 60s],fleetwire-chaos listscripts/throughput.sh: raises the offered load step by step and reports the highest rate the backend keeps up with.