Command reference
1. Conventions
excubioctl is the command-line client of the hub and cloud APIs, for
people and CI.
- Contexts. A context names a hub, a cloud tenant or the tenant's
Watch, and a token:
excubioctl login --hub https://excubio.example.invalid,--cloud https://acme.excubio.exampleor--watch https://hb.excubio-watch.exampleasks for an API token (exk_…, issued by that part; on a terminal without echo, else from stdin or--from-file), checks it with a read and stores it as a context (--name, default the host) in~/.config/excubioctl/config.toml($XDG_CONFIG_HOMEwhen set;0600). A person of a tenant signs in to the cloud by browser instead, the default oflogin --cloudon a terminal (--devicealso without one;--tokenasks for an API token instead): the OAuth device authorization flow (RFC 8628) at the installation's Zitadel for excubioctl's client and the tenant's organization, which the tenant's host names (getCliLogin); the command prints a URL and a code to confirm in any browser and hands the access token once to the cloud, which answers with an API token of the person (createCliToken), namedexcubioctl <host name>, without scopes, ending in 30 days or at--expires(at most 90 days ahead), listed and revoked on the Access page as any; the context keeps that token, never the access token. Without such a sign-in at the cloud the command says so and asks for an API token. Stdin and--from-filestill give an API token, so a script logs in as before. A vendor operator logs in to the cloud with--operator: the same flow for the operators' client at the vendor's organization, which the cloud names (getOperatorLogin); the command keeps the access token, until it expires (thenloginagain), or takes an access token from--from-file. A cloud context may name its Watch context (--watch-context), which thewatchcommands then use. Each command calls one part and takes the current context of that kind:context usemakes a context current for its kind,context listshows them without tokens,context deleteremoves one, and the global--context NAME(EXCUBIOCTL_CONTEXT) chooses for one call.EXCUBIOCTL_SERVERwithEXCUBIOCTL_TOKENreplaces the context for every part, for CI;EXCUBIOCTL_TOKENalone replaces its token.token,auditandexportcall the hub, or with--cloud(auditalso--watch) the cloud or Watch. - Output. Tables for people;
-o jsonprints the API response unchanged;-o csvwhere the API offerstext/csv(the cloud's reports and audit). Commands that write a file take it as-o FILE. A list prints one page:--limitand--cursorpage, and the next cursor is printed on stderr. - Times in arguments are RFC 3339,
now, or a duration from now (+2h,-30m);--sincealso takes a duration back from now (14d). - Selectors use the short form (spec-format.md §2).
- People are named by e-mail address, login or ID.
- Long operations (replay, bulk close, inventory import, export, audit
verification, imports) wait and show progress on a terminal;
--no-waitprints the operation ID (with-o jsonthe Operation). - Questions. Commands that ask before a change (bulk close, downtime,
oncall apply, deleting a tenant) refuse without a terminal unless--yesis given. - Secret values are read from stdin (one trailing line break removed)
or
--from-file(as it is), never from an argument. - Retries: every write carries an
Idempotency-Key, the same for its repeats;429and503are repeated afterRetry-After, up to four times. - Exit codes:
0success,1error,2usage error,3the command ran but found problems (failed validation or tests, L0 and L1 errors after a push, replay differences with--fail-on-diff, a conflict (409,412), an audit chain that doesn't verify, a team not ready for cutover, rejected incidents of a bulk ack).
2. Effects
Every command declares one effect, shown in --help:
| Effect | Meaning |
|---|---|
local-read | Reads the working copy or local files. |
local-stage | Changes only the working copy or the CLI configuration. |
remote-read | Reads through the API. |
remote-stage | Writes a change set: creates, updates, validates or submits it. |
remote-write | Any other write: approvals, merges, alerts, downtimes, secrets, administration. |
3. Spec and change sets (hub)
| Command | Effect | Does |
|---|---|---|
spec pull [--revision N] DIR | remote-read | Writes the spec tree and .excubio/base.json (base revision, change set). |
spec status, spec diff | local-read | Changed files against the base. |
spec validate | remote-read | L0–L1 of the working copy against the base. |
spec test | remote-read | L2: runs the RoutingTests of the working copy. |
spec replay [--since 14d] [--team T] | remote-read | L3 replay of the working copy against the active revision; prints the decision diff (pipeline.md §12). --fail-on-diff for CI. |
explain --event FILE [--revision N] | remote-read | Explains a hypothetical event. |
spec template [KIND] [-o FILE] | remote-read | The starting file of a kind or Settings name, with every field and its default. |
changeset push [-m MSG] | remote-stage | Creates or updates the draft from the working copy. |
changeset submit | remote-stage | Submits; prints impact and required approvals, and what the author may approve as the hub's sole admin (architecture.md §10). |
changeset list [--state …] [--author me|USER] [--awaiting-my-review] [--sort …], changeset show ID | remote-read | --sort takes the fields of listChangeSets (api/hub.yaml), - before one for descending, comma-separated. |
changeset approve ID, changeset reject ID -m … | remote-write | approve prints whether it is the sole admin's self-approval. |
changeset merge ID | remote-write | Merges. |
changeset rebase ID, changeset close ID | remote-stage | |
revision list, revision diff A B, revision revert N | remote-read / remote-stage | revert creates a change set on the active revision that restores the tree of revision N − 1. |
The working copy is the .toml files of the directory outside dot
directories. .excubio/base.json holds the hub, the base revision, the
change set changeset push updates (null until the first push) and each
base file's SHA-256; .excubio/base/ keeps the base files for spec diff. spec pull writes into an empty directory or replaces a working
copy without changes; the other commands find the working copy from the
current directory upwards. spec validate, spec test and spec replay
send the changed files as an overlay of the base revision.
changeset push creates a draft on the base revision (-m is its title)
when there is none, or the last one is merged or closed; it then makes the
draft's overlay the working copy's: changed and added files are written,
deleted ones deleted, and a file the draft changed that the working copy
no longer changes gets its base content back. changeset submit takes
the working copy's change set unless an ID is given.
4. Alerts and operations (hub)
| Command | Effect | Does |
|---|---|---|
alerts list [--selector …] [--state open] [--owner me|none|OWNER] [--since TIME] [--sort …] | remote-read | --owner none: unassigned alerts; --sort takes the fields of listAlerts (api/hub.yaml), - before one for descending, comma-separated. |
alerts show ID, alerts explain ID | remote-read | Events, decisions, actions; the explanation. |
alerts ack ID, alerts unack ID, alerts close ID -m … | remote-write | |
alerts assign ID OWNER | remote-write | Sets the owner, a user id or a team; - clears it. |
alerts people [--team T] [--q NAME] | remote-read | The people an alert can be assigned to, with their ids. |
alerts annotate ID -m … | remote-write | Adds an annotation. |
alerts page TEAM/ROT --title … [--text …] [--alert ID] | remote-write | Manual page through the hub's link (on-call.md §9). |
alerts bulk-close --selector … -m … | remote-write | Shows the count and asks before closing (--yes for scripts). |
downtime create [--selector …] [--ci CI…] --start … --end … -m …, downtime list, downtime end ID -m … | remote-write / remote-read | create shows the matched open alerts per team and asks before creating (--yes for scripts). |
heartbeat list [--state …] [--name N] [--sort …], heartbeat forget NAME INSTANCE -m … | remote-read / remote-write | --sort takes the fields of listHeartbeats (api/hub.yaml); forget removes an instance of a Heartbeat with groupBy (pipeline.md §5). |
inventory sources, inventory imports [--source S] [--state …] [--sort …], inventory snapshots, inventory diff A B | remote-read | Sources with their last imports; the imports, --sort taking the fields of listInventoryImports (api/hub.yaml); snapshots and their differences (pipeline.md §15). |
inventory import SOURCE [--file CSV-DIR] | remote-write | Imports a source now and merges. |
inventory lookup (--node N | --ci C) | remote-read | The CI with its aliases, sources, services and team. |
groups list [--state open] [--pattern P] [--team T] [--sort …], groups show ID | remote-read | Alert groups with cause and members (pipeline.md §16); --sort takes the fields of listGroups. |
groups detach ALERT -m …, groups move ALERT --to GROUP -m …, groups merge ID --into ID -m … | remote-write | |
source token create SOURCE, source token revoke ID | remote-write | Prints an intake token once. |
secret set NAME [--from-file F] | remote-write | Reads the value from stdin. |
bundle import FILE, bundle list | remote-write / remote-read | Trap packs. |
trap-pack build --mibs DIR --rules FILE --key KEY --name NAME --version V [--expires …] -o FILE | local-stage | Builds and signs a customer trap pack: compiles the MIB files of DIR with mib-compile, checks the rules ([[rules]] of a TrapRule) against them and refuses a pack the hub would refuse; expires two years after signing unless --expires gives a time or duration. |
trap-pack keygen -o FILE | local-stage | A pack signing key: FILE holds its 32-byte Ed25519 seed in hex (0600), FILE.pub its public key, the line of bundles.trusted_keys (operations.md §5). |
shadow report [--team T] [--since …] | remote-read | migration.md §2. |
shadow import FILE [--people-key-file KEY] | remote-write | Sends the incumbent's side of the shadow comparison, written by excubio-discover shadow; with the key it matches the people through the cloud first (migration.md §2). |
node remove NAME -m … | remote-write | Takes a node that is gone out of the hub (pipeline.md §5); status lists the nodes. |
shadow readiness --team T | remote-read | The cutover readiness checks (migration.md §4). |
hygiene --team T [--since …] | remote-read | The hygiene report (pipeline.md §18). |
inventory quality [--team T] [--group G] | remote-read | Data-quality issues (pipeline.md §15). |
export {alerts,decisions,incidents,shifts,events} --since … -o FILE | remote-read | NDJSON. |
audit list [--since …] [--until …] [--action …] [--actor …] [--object …] [--sort seq], audit verify | remote-read | The list newest first, with --sort seq oldest first; verify: hash chain, checkpoint and anchor check (compliance.md §3.2). |
audit export [--since …] [--until …] -o FILE | remote-read | NDJSON with every entry's hash and predecessor. |
audit sink {list,create,update,delete} | remote-read / remote-write | Syslog and HTTPS sinks for the SIEM. |
relay list, relay show ID | remote-read | Relays with their state, version, nodes, spool and allowlist (architecture.md §13). |
relay enrol-token NAME, relay revoke ID, relay delete ID | remote-write | enrol-token prints a relay enrolment token (exr_…) once (operations.md §12); delete removes a revoked relay from the list. |
events list [--source S] [--outcome O] [--since …], events show ID | remote-read | Stored events with their outcomes. |
operation list, operation show ID, operation cancel ID | remote-read / remote-write | Long operations: replays, imports, exports. |
shadow cases --team T [--class C] [--since TIME] [--sort …], shadow explain ID -m … | remote-read / remote-write | The cases behind the shadow report, --sort taking the fields of listShadowCases (api/hub.yaml); an explained case doesn't fail the cutover check. |
user list [--kind …] [--q TEXT] [--group G] [--sort …], service-account {create,delete} NAME | remote-read / remote-write | Users of the hub, --sort taking the fields of listUsers (api/hub.yaml), and service accounts. |
token {list,create,revoke} | remote-read / remote-write | API tokens, with roles, a selector or scopes (architecture.md §10); create prints the token once. |
binding {list,create,confirm,delete}, binding members ID | remote-read / remote-write | Role bindings; confirm is the second admin's (architecture.md §10); list names the hub's sole admin, whose bindings create makes active at once; members lists who a group binding covers now. |
status | remote-read | Nodes, partitions, correlator, tasks, link, inventory sources and snapshot age, heartbeats. |
trap-pack build signs with SOURCE_DATE_EPOCH as the signing time
when it is set, so the same inputs give the same bundle. It runs
mib-compile from EXCUBIO_MIB_COMPILE, else libexec/excubio/mib-compile
beside its own directory (/usr/libexec/excubio/mib-compile for
/usr/bin/excubioctl, where its package installs it), else from PATH.
5. On-call (cloud)
| Command | Effect | Does |
|---|---|---|
oncall [--team T] [--at TIME] | remote-read | Who is on call. |
rotation show TEAM/ROT, rotation shifts TEAM/ROT --from … --to … | remote-read | |
rotation preview TEAM --file F | remote-read | The next 30 days of a draft rotation: shifts, gaps, unreachable people, missed minimums. |
override create TEAM/ROT --person P --from … --to … [--replace] [-m …] | remote-write | |
oncall export DIR [--team T], oncall apply DIR [--dry-run] [--prune] [--force] | remote-read / remote-write | On-call configuration as files (on-call.md §12); apply prints the diff and asks (--yes for CI). |
rotation import DIR --people-key-file KEY [--dry-run] | remote-write | Creates Discover's draft rotations with their overrides and the teams' stakeholders; lists people without a match (migration.md §1.3). |
incident list [--state …] [--team T] [--rotation TEAM/ROT] [--kind …] [--unanswered] [--mine] [--since TIME] [--sort …], incident show ID | remote-read | --mine: incidents delivered to the caller; --sort takes the fields of listIncidents (api/cloud.yaml), by default unanswered incidents first. |
incident ack ID, incident snooze ID --for 2h, incident unack ID, incident decline ID, incident escalate ID, incident reassign ID TEAM/ROT, incident invite ID PERSON, incident join ID, incident merge ID --into ID, incident resolve ID, incident note ID -m … [--share] | remote-write | on-call.md §5; --share sends the note to the stakeholders. |
incident bulk-ack ID… | remote-write | Incidents the caller may respond to; prints the outcome per incident. |
me show, me update --file F | remote-read / remote-write | Own language, time zone, notification rules and shift reminder. |
me calendar | remote-write | Prints a new URL of the own shift calendar feed; the previous one stops working. |
contact {list,add,verify,resend,delete,test} | remote-read / remote-write | Own contact methods: add NUMBER sends a code, verify ID CODE checks it. |
numbers [--vcard -o FILE] | remote-read | The tenant's sender and caller numbers, and Watch's. |
team {list,show,create,update,delete}, team members TEAM --file F, team remove-member TEAM PERSON, team stakeholders TEAM [--file F] | remote-read / remote-write | Teams, their members and stakeholders, by role; remove-member also removes a member who came through the IdP group (on-call.md §1). |
calendar {list,create,update,delete} [--file F] | remote-read / remote-write | The tenant's holiday calendars (on-call.md §2). |
absence create [--person P] --from … --to …, absence list, absence delete ID | remote-write / remote-read | |
swap request TEAM/ROT --from … --to … [--to-person P], swap accept ID, swap cancel ID | remote-write | on-call.md §2.1 |
device list [--person P] [--team T], device revoke ID, device test ID | remote-read / remote-write | App devices with readiness (mobile.md §2); test sends a critical test push to an own device. |
page TEAM/ROT --title … [--text …] [--severity S] | remote-write | Manual page (on-call.md §9). |
punch {in,out} TEAM/ROT [--person P] | remote-write | on-call.md §2.2 |
tenant settings [--set KEY=VALUE] | remote-read / remote-write | Rotation minimums, person reporting, office hours, contact countries, incident retention, codes for SMS acknowledgements (on-call.md §2, compliance.md §7). |
report people --from … --to … [--team T] | remote-read | Per-person shift hours and pages, as person reporting allows. |
report {responses,number-tests,deliveries} --from … --to … [--team T] | remote-read | The cloud's reports; -o csv for export. |
hub create NAME --watch-rotation TEAM/ROT --watch-fallback-file F [--rotations GLOB…] [--vendor [--host-label L] [--admin-subject S]], hub list, hub update ID --rotations GLOB…, hub enrol-token ID, hub revoke ID [--decommission] | remote-write / remote-read | create and enrol-token print an enrolment token once; with --vendor the hub runs on an installation of the vendor and create prints its URL (operations.md §4); the rotation and the fallback numbers (one per line in F) are what Watch pages for the hub (watch.md §1); --rotations is the allowlist. |
audit list --cloud [--since …] [--until …] [--sort seq|-seq], audit verify --cloud, audit export --cloud [--since …] [--until …] -o FILE, audit sink {list,create,update,delete} --cloud | remote-read / remote-write | The cloud's audit and SIEM sinks (compliance.md §3); --sort seq lists the oldest first (listAudit, api/cloud.yaml), by default the newest; the export is NDJSON with every entry's hash and predecessor and the checkpoints. |
export {incidents,shifts} --cloud [--since …] [--until …] -o FILE | remote-read | The cloud's incidents (with alerts, deliveries and responses) and stored shifts as NDJSON (compliance.md §4). |
platform tenant list, platform tenant create SLUG --name … --idp-org … [--admin SUBJECT|EMAIL]… [--delivery live|trial|evaluation] [--installation NAME], platform tenant update SLUG [--state active|suspended|deleting] [--delivery live|trial|evaluation] [--limits …] [--sender-numbers-file F] [--watch-numbers-file F] [--installation NAME | --no-installation] | remote-read / remote-write | For vendor operators, with their own login: tenants with their limits, numbers, state, delivery mode and the installation their vendor-run hubs go to, and their first tenant admins, by IdP subject or e-mail address, tenant admins at their first login; deleting deletes the tenant in the cloud and at Watch (architecture.md §12). --delivery live or trial asks for confirmation (or --yes) and prints how many verified numbers became unverified, which people verify again (on-call.md §4). |
platform hub list SLUG | remote-read | For vendor operators: a tenant's hubs with their state, link state, hosting and URL. |
platform installation list, platform installation create NAME --kind shared|dedicated --hub-domain D --capacity N, platform installation update NAME [--capacity N] [--state active|draining] [--operator-hub HUB | --no-operator-hub], platform installation delete NAME, platform installation enrol-token NAME | remote-read / remote-write | For vendor operators: the installations of hubs (operations.md §3); create and enrol-token print the installation's enrolment token once; --operator-hub names the installation's operator hub, a hub placed on it (the vendor's, or on a dedicated installation its tenant's) (architecture.md §12). |
platform usage [--from DAY] [--to DAY] [--tenant SLUG] | remote-read | For vendor operators: the daily usage of the hubs on installations, per tenant and day. |
support-grant {list,create,revoke} | remote-read / remote-write | Time-limited read access for a vendor operator (architecture.md §10). |
token {list,create,revoke} --cloud, role {list,grant,revoke} | remote-read / remote-write | API tokens and tenant roles of the cloud. token create … --cloud --exec -- COMMAND hands the new token to a program without showing it: the command gets the value on its stdin, without a line break, the CLI prints the token without its value and exits with the command's status, and a command that fails gets the token revoked. |
watch check {list,create,update,delete,events} | remote-read / remote-write | Watch checks of the tenant. |
watch check pause ID --until … -m …, watch check resume ID, watch check token ID, watch check test ID | remote-write | Pause, resume; token issues a new token, the old one works for 24 h; test sends a test notification to the check's rotation. |
watch token {list,create,revoke} | remote-read / remote-write | API tokens of Watch. |
audit list --watch, audit verify --watch, audit export --watch -o FILE | remote-read | Watch's audit; the export as the hub's. |
Files of the on-call commands are TOML, or JSON with .json: me update
the fields of updateMe; team members [[members]] with person and
role; team stakeholders [[stakeholders]] with person or email and
min_severity; calendar a Calendar; rotation preview a Rotation with
people by name, as in oncall export; rotation import DIR the files of
the directory, each an ImportedRotation, an array of them or a table
rotations with an optional stakeholders array. Number files have one number per line; for platform tenant update a line is NUMBER MEDIA[,MEDIA] COUNTRY, for sender numbers
followed by the CARRIER. --limits is KEY=N,… of the limits of
architecture.md §12, such as
rotations=50,hubs=2,cis=5000,retention_days=90;
tenant settings --set KEY=VALUE takes a dotted key and a JSON value or a
string.
6. Server subcommands
excubio-hub:
| Command | Does |
|---|---|
init [--enrol exe_…] [--partitions N] [--correlator-shards C] [--link-shards L] [--no-admin-password] [--host NAME] | Creates the data directory, the deployment key, the database of a standalone installation with N partitions, C correlator shards and L link shards (each 1 to 1,024; defaults 32, 1 and 1; fixed for the installation's life, architecture.md §4), its hub with the host name it answers on (--host) and the break-glass admin's password, which it prints once; enrols with the cloud (operations.md §4) unless the hub enrolled already. On a hub without the break-glass admin (local_admin = false) or with --no-admin-password it creates and prints no password; local-admin reset sets one. |
init --managed [--partitions N] [--correlator-shards C] [--link-shards L] [--installation-token exm_…] | Creates the database of a managed installation with N partitions, C correlator shards and L link shards, without a hub and a break-glass admin: its hubs come from the cloud's provisioning (operations.md §2). With the installation's enrolment token (the flag, else EXCUBIO_INSTALLATION_TOKEN or the file EXCUBIO_INSTALLATION_TOKEN_FILE names) it enrols the installation on the cloud's installation channel, unless it enrolled already, and its nodes then provision its hubs (operations.md §4); without one its hubs are created by hand. |
join | Adds a node to an HA hub on the shared database. |
leave | Takes this node out of the hub once its serve has stopped, which released its locks: deletes its row and forgets its channel heartbeat instances (pipeline.md §5). Refused for the last node and while the node holds a lock connection. |
enrol exe_… | Enrols an existing data directory again: after a revocation, an expired certificate or a restore (operations.md §4). Refused for a hub of a managed installation, which its installation enrols. |
revoke | Revokes the hub's own certificate and deletes its key. Refused for a hub the cloud provisions: the cloud revokes it (excubioctl hub revoke). |
serve | Runs the hub with the server login; migrates first with the migration login, when it has one (operations.md §1). |
db backup --to FILE [--encrypt-to R], db restore FILE [--keep-identity] | operations.md §8 |
db migrate | Applies the migrations of this version without starting the hub (operations.md §7), with the migration login: owner_url, else url. |
secrets export-key, secrets add-key -o FILE, secrets rotate-key, secrets rotate-data-key | operations.md §6 |
relay enrol-token NAME, relay list, relay revoke ID | Issues a relay enrolment token and prints it once, lists the relays, revokes one (operations.md §12), for when no admin can sign in yet, as for a hosted hub set up by the vendor. |
admin grant (--subject S [--issuer URL] [--name N] | --group G), admin list, admin revoke ID | The hub-wide admin bindings of IdP subjects and groups (architecture.md §10): a grant is active at once while no OIDC user or group holds an active one, else pending for an admin to confirm; the issuer defaults to [auth] oidc_issuer, the name is shown until the subject's first login; the last active binding can't be revoked, and a revoke may leave a sole admin, which the API refuses to another admin. For a hub without a break-glass admin, as a hosted hub. |
local-admin reset | Sets a new password for the break-glass admin, prints it once, lifts its lock and ends its sessions (architecture.md §11). |
diagnostics -o FILE | Support bundle without secrets. |
These subcommands run on a node with its configuration, and those that
change the hub or take data out of it are audited
(compliance.md §3.1). Those that act
on a hub (enrol, revoke, relay, admin, local-admin) act on
the hub --hub names, by its id, host label or host name
(EXCUBIO_HUB), by default on the one hub of a standalone installation;
a managed installation's hubs have no break-glass admin.
excubio-cloud and excubio-watch have serve and migrate.
excubio-cloud also has, run with the migration login
(operations.md §3) and written to the
installation's audit:
| Command | Does |
|---|---|
operator add --subject S [--issuer URL] [--name N], operator list, operator remove --subject S [--issuer URL] | The vendor operators who may call the platform operations; the issuer defaults to EXCUBIO_OIDC_ISSUER. |
tenant create SLUG --idp-org ORG [--name N] [--admin SUBJECT|EMAIL]… [--delivery live|trial|evaluation] | Creates a tenant as createTenant does, before any operator can sign in; live needs the cloud's carriers in its configuration (on-call.md §4). |
tenant suspend SLUG, tenant resume SLUG, tenant delete SLUG --yes | The tenant's state as updateTenant sets it (architecture.md §12); a deletion is completed by the running servers once Watch took it. |
Vendor operators create, suspend and delete tenants through the cloud's
API (excubioctl platform tenant, §5); Watch takes
them from the cloud (watch.md §5).
excubio-relay (operations.md §12), with its
configuration /etc/excubio/relay.toml (-c, --config):
| Command | Does |
|---|---|
enrol exr_…|--token-file F [--ca-file F] [--unless-enrolled] | Enrols the relay with the hub of [hub] url and keeps its key, certificate and the hub's relay CA in its state directory; --token-file - reads the token from standard input; --unless-enrolled leaves a relay that enrolled as it is, without reading the token. |
serve | Runs the relay: its listeners, its spool, its connections to the hub's nodes. |
status | Whether it is enrolled, its certificate's expiry, the hub's nodes it knows with whether the running relay holds a control connection to each, its spool, and the allowlist as it reads it. The connections come from the running relay's metrics listener ([metrics] listen, asked on loopback when it listens on all addresses); without one, or with the relay stopped, it says so and lists the nodes only. |
check-target HOST:PORT | Whether the allowlist admits the target, with the addresses it resolves to, without dialling. |
status and check-target only read: run as root, they create, change
and delete nothing in the state directory.
7. excubio-msg
Drop-in for opcmsg (integrations.md §2):
excubio-msg a=backup o=nightly msg_t="Backup failed" msg_grp=Storage sev=critical node=srv01 -option job=db1
-id prints the message ID; excubio-msg --flush only sends the
spooled messages. Exit codes: 0 sent or spooled, 1 invalid arguments
or configuration, 2 neither sent nor spooled. Each message has a message
ID that is kept when a spooled message is resent. Arguments,
configuration and spool: integrations.md §2.
8. excubio-discover
export EXCUBIO_DISCOVER_OBM="mssql://…" # or --obm FILE; postgres:// alike
excubio-discover inventory --ea FILE --ea-queries ea.toml --policies DIR -o out/
excubio-discover inventory --obm-csv DIR --ea-csv DIR -o out/ # exported tables and sets
excubio-discover usage … -o out/
excubio-discover draft … --people-key-file KEY -o out/draft/
excubio-discover shadow … --since 14d [--until …] --people-key-file KEY -o out/shadow.ndjson
excubio-discover signl4 --signl4-key-file FILE -o out/signl4/
excubio-discover report … --people-key-file KEY -o out/report.html
Every command but signl4 reads what its arguments name: OBM from
--obm FILE (a file with the connection string), EXCUBIO_DISCOVER_OBM or
--obm-csv DIR, its management database from --obm-mgmt FILE or
EXCUBIO_DISCOVER_OBM_MGMT (or the same CSV directory), with
--obm-settings FILE, --policies DIR and --rtsm-csv DIR; Enterprise
Alert from --ea FILE or EXCUBIO_DISCOVER_EA with --ea-queries FILE,
or --ea-csv DIR. The
window ends at --as-of (default now) and lasts --window (default
90d); --stage-attribute NAME and --page-stages LIST (default prod)
name the stages. draft and report take --unrouted-team (default
unrouted), --namespace (default obm) and --owner; shadow takes
--unrouted-team for records without a team. Connection strings, the
SIGNL4 API key (--signl4-key-file, EXCUBIO_DISCOVER_SIGNL4_KEY) and
the key for people hashes (--people-key-file) are read from the
environment or a file, never from arguments. Exit codes: 0, 1 for an
error, 2 for wrong arguments, 3 when draft wrote a tree that doesn't
validate. Inputs, outputs and the translation:
migration.md §1.