OpenAgentSwarms
Every command
Command

oas standby info

See what a standby keeps: each swarm, the host it follows, how far behind it is, and its alarms.

$ oas standby info [<standby-url>] [flags]

2 flagsdefined in cmd/oas/main.go, runStandby

With --dir it reads the report the standby writes in its folder every few seconds: for each swarm its name and id, its host, the entries it holds against the host's latest checkpoint and when it last caught up, the last checkpoint it cosigned, and any file it can't fetch, failed check or alarm. The report names each swarm's host, so it isn't served.

Given a standby's URL instead, it prints what any standby says about itself: its name, keys and swarm ids. Both print text at a terminal and JSON when piped or with --json.

Arguments

  • <standby-url>optional

    Another standby to ask, in place of the folder's.

Flags

Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.

Examples

On the standby's machine.

$ oas standby info --dir /var/lib/oas/standby

What a standby says about itself.

$ oas standby info http://standby.example:8092 --json

See also

Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.