Skip to content

CLI reference

Every omniglass command, generated from the binary’s own command tree. The data commands are generated from the API (make gen), so this reference is a faithful mirror of what the server exposes. For the narrative, connecting, authenticating, and the generated-versus- hand-written split, see the CLI guide.

Every command accepts these. An omitted flag falls back to its environment variable, read when the command runs, so this page and every --help name the variable and never print its value:

FlagTypeDefaultDescription
--serverstringhttp://localhost:8080Omniglass server base URL; when omitted, $OMNIGLASS_SERVER, else the default
--tokenstring(none)bearer token; when omitted, $OMNIGLASS_TOKEN (read at run time, never printed)

Commands for the action-rule resource

Create an action rule

omniglass action-rule create [flags]

Adds a rule that, on an alarm’s raise or clear, when its predicate holds over the alarm facts, queues one notification per target in the transition’s own transaction, which the server’s tick then delivers. An unknown transition, type or target, or a predicate that does not compile, is a 422; a taken name a 409. Audited. Gated by rule:create, with an all-scope grant: a rule watches the whole fleet.

FlagTypeDefaultDescription
--descriptionstring(none)What it is for
--enabledboolfalseWhether it fires (default true): a disabled rule queues nothing on a transition, and what it queued before still delivers
--labelstring(none)A human label
--namestring(none)The rule’s name (lowercase kebab)
--notification-typestring(none)The notification type to send, by name or uuid; absent sends the official one for the transition
--onstring(none)The alarm transitions it fires on: raised, cleared, or both. Acknowledging an alarm is never one
--opt-out-allowedboolfalseLet a member of a group it targets opt out of it for themselves (default false)
--targetsstring(none)The notification targets to send to, by name or uuid
--whenstring(none)A predicate over the alarm facts at the action expression site (component, location, severity, severity_rank, platform, message, transition, rule, …; see /expressions:validate with site action); absent always holds. A refusal is a 422 with its line and column

Example:

Terminal window
omniglass action-rule create --name name --on <json> --targets <json>

Delete an action rule

omniglass action-rule delete <name>

Removes a rule; the notifications it queued keep its name. A shipped (official) rule is a 409: disable it instead. Audited. Gated by rule:delete, with an all-scope grant.

Example:

Terminal window
omniglass action-rule delete <name>

Get an action rule

omniglass action-rule get <name>

Returns one action rule by name or uuid. Gated by rule:read.

Example:

Terminal window
omniglass action-rule get <name>

List action rules

omniglass action-rule list

Lists every action rule, by name: on which alarm transitions, when, and what it sends to which targets. Gated by rule:read.

Example:

Terminal window
omniglass action-rule list

Opt yourself back in to a group notification

omniglass action-rule optIn <name>

Undoes your opt-out of a platform action rule; always allowed. Idempotent and audited. Gated by notification:subscribe.

Example:

Terminal window
omniglass action-rule optIn <name>

Opt yourself out of a group notification

omniglass action-rule optOut <name>

Stops a platform action rule telling you through a group it targets, for you alone. Only a rule an admin marked opt_out_allowed (a 409 otherwise); a rule that names you directly still tells you. Idempotent and audited. Gated by notification:subscribe.

Example:

Terminal window
omniglass action-rule optOut <name>

Update an action rule

omniglass action-rule update <name> [flags]

Patches a rule (an absent field is unchanged; on and targets replace their sets). It acts on transitions from the next one; a notification already queued is not re-rendered. A shipped (official) rule takes only enabled, opt_out_allowed and targets that keep the shipped ones; anything else is a 409. Audited. Gated by rule:update, with an all-scope grant.

FlagTypeDefaultDescription
--descriptionstring(none)What it is for
--enabledboolfalseWhether it fires: a disabled rule queues nothing on a transition, and what it queued before still delivers; re-enabled, it acts on the next transition
--labelstring(none)A human label (empty clears it)
--notification-typestring(none)The type to send (empty returns to the official one per transition)
--onstring(none)The transitions it fires on (replaces the set)
--opt-out-allowedboolfalseLet a member of a group it targets opt out of it; false withdraws every opt-out from the next transition
--targetsstring(none)The targets (replaces the set)
--whenstring(none)The predicate (empty always holds)

Example:

Terminal window
omniglass action-rule update <name>

Commands for the alarm resource

List the fleet’s alarms

omniglass alarm list [flags]

What is wrong now across every component the caller may read, in one read: by default the active alarms (state=cleared is the history, each row carrying when it cleared, and state=all both; since and until keep the alarms whose raised-to-cleared interval overlaps that range, so one raised before it and still open in it is kept, and since after until is a 400), worst severity first and newest first within a severity, each naming its component. Each row names its component’s location and the systems it belongs to that the caller may read. Narrow it with severity (repeatable), location (a subtree, by name), acknowledged and snoozed; pass unacknowledged for the queue nobody has looked at. limit is the page size (default 200, at most 1000) and next_page_token continues past it, so a queue of any size pages rather than truncating. It is the triage read: find what is red without walking every component. Gated by component:read; the caller’s component scope bounds the list, so an out-of-scope alarm is never named.

FlagTypeDefaultDescription
--acknowledgedstring(none)true keeps the acknowledged alarms, false the unacknowledged ones; absent keeps both
--limitint0At most this many, the worst first; 0 or absent means 200
--locationstring(none)Only alarms whose component sits in this location or any location below it, by name
--page-tokenstring(none)The next_page_token of the previous page: resumes the same worst-first order after it, however many alarms there are
--severitystringSlice[]Only alarms at these severity levels, by name (see /severity-levels); repeat the parameter for several
--sincestring(none)Only the alarms still raised at or after this RFC 3339 time: active, or cleared at or after it
--snoozedstring(none)true keeps the snoozed alarms, false the ones not snoozed; absent keeps both
--statestring(none)Which alarms: active (still raised, the default), cleared (a cleared alarm is history, with when it cleared), or all
--unacknowledgedboolfalseOnly the alarms nobody has looked at: the queue an operator, or an agent, works
--untilstring(none)Only the alarms raised at or before this RFC 3339 time; must not be earlier than since

Example:

Terminal window
omniglass alarm list

Commands for the assistant resource

Commands for the conversation resource

Append a turn to one of your omnibot conversations

omniglass assistant conversation append <name> [flags]

Adds a turn’s messages after the one you last saw (after), keeps or clears the write a run paused on (pending), and adds the turn’s tokens. An after that is not the conversation’s last message is a 409: another client wrote first, so read it again. While a server run holds the conversation, an append is a 409. Anyone else’s is a 404. Audited without content. Gated by assistant:use.

FlagTypeDefaultDescription
--afterint0The seq of the last message you saw (0 for an empty conversation); anything else is a 409
--messagesstring(none)The new messages, in order
--pendingstring(none)The write the run paused on, waiting on you; absent clears it
--usagestring(none)The tokens this turn spent, added to the total

Example:

Terminal window
omniglass assistant conversation append <name> --after <int> --messages <json>

Start an omnibot conversation

omniglass assistant conversation create [flags]

Creates an empty conversation of your own, named or named for you. A name you already use is a 409. Audited. Gated by assistant:use.

FlagTypeDefaultDescription
--namestring(none)A name (lowercase kebab), unique among your own conversations; absent names it for you

Example:

Terminal window
omniglass assistant conversation create

Delete one of your omnibot conversations

omniglass assistant conversation delete <name>

Deletes one of your own conversations and its transcript. Anyone else’s is a 404. Audited. Gated by assistant:use.

Example:

Terminal window
omniglass assistant conversation delete <name>

Get one of your omnibot conversations

omniglass assistant conversation get <name>

One of your own conversations with its transcript, its pending write if a run paused on one, and the tokens it has spent. Anyone else’s is a 404. Gated by assistant:use.

Example:

Terminal window
omniglass assistant conversation get <name>

List your omnibot conversations

omniglass assistant conversation list

Your own stored conversations, most recently moved first, without their messages, and omnibot’s mode: live, replay (the server plays a recording, with the prompts it answers) or none. Owner-only. Gated by assistant:use.

Example:

Terminal window
omniglass assistant conversation list

Run omnibot on one of your conversations

omniglass assistant conversation run <name> [flags]

Runs your prompt (the last user message) as your omnibot, over the stored conversation, and streams the run as AG-UI events (text/event-stream). A call your agent policy asks about ends the run on an interrupt naming it; run again with resume to answer it. A run that reaches its step limit without an answer finishes with the result {“stopped”: “step_limit”, “steps”: N}. The run’s tool calls are audited as omnibot’s, on your behalf. Only you, as yourself, run your conversations: anyone else’s is a 404, and an agent or an impersonation session is a 403. A resume that names no waiting call, a prompt while one waits, or a run while another holds the conversation is a 409. Context entries the person hands over with a prompt (references and the page, at most 20) are framed as data ahead of it. forwardedProps.skill names an embedded skill whose prompt, with its arguments, the run carries out; an unknown skill or a missing argument is a 422. The run talks to the model the assistant settings configure, read as it starts; with none, the server’s recording, if it has one. A recording answers only the prompts it was recorded for: any other question is a 422 (type urn:omniglass:omnibot-replay-unmatched) that touches nothing; the list route names the prompts. A server with no model, or a configured model whose key no longer resolves, is a 503. Gated by assistant:use.

FlagTypeDefaultDescription
--contextstring(none)What the person handed over with the prompt, read as data ahead of it; ignored on a resume
--forwardedPropsstring(none)An embedded skill to run; ignored on a resume
--messagesstring(none)The client’s view of the conversation; only its last user message is read, as the prompt
--resumestring(none)The answer to the interrupt the last run ended on
--runIdstring(none)The run’s id, echoed in its events
--threadIdstring(none)Ignored: the conversation is the thread

Example:

Terminal window
omniglass assistant conversation run <name>

Commands for the audit-log resource

List audit-trail events

omniglass audit-log list [flags]

Recent audit-trail events, newest first, each with the actor and, for an impersonated action, the real actor behind it. Read-only; gated by audit:read:admin (admin/owner only, since the audit trail is admin-sensitive).

FlagTypeDefaultDescription
--agentstring(none)Filter to the events one agent took on its person’s behalf (the name its agent token was minted with)
--beforestring(none)Only events strictly older than this RFC3339 timestamp (paging backward)
--channelstring(none)Filter to the events that arrived through one channel; direct is a plain API call, with no channel
--clientstring(none)Filter to the events whose declared MCP client contains this term, case-insensitively
--limitint0Max rows to return, newest first (default 100, capped at 500)
--resourcestring(none)Filter to one resource kind (e.g. auth, user_grant)
--verbstring(none)Filter to one verb (e.g. login, create)

Example:

Terminal window
omniglass audit-log list

Commands for the auth resource

What the install lets an agent do

omniglass auth agent-policy

Returns the install’s resolved agent policy, always, ask or never for each operation class (read, write, destructive, credential_destination), and whether this request is an agent’s (an agent token, or any request over MCP) and so governed by it. Each class names the layer that set it (platform, role, or tool), and an overridden tool is listed with its own policy; the strictest layer wins. The server refuses an agent a never class on every route; ask is the client’s to confirm. Requires authentication; answers even when the policy refuses every read.

Example:

Terminal window
omniglass auth agent-policy

Get your own profile picture

omniglass auth avatar

Returns the caller’s profile picture as a base64-encoded JPEG. Requires authentication; self-scoped. No picture is a 404.

Example:

Terminal window
omniglass auth avatar

Change your own password

omniglass auth change-password [flags]

Verifies the current password and sets a new one. Requires authentication; self-scoped. Refused (403) to an agent token.

FlagTypeDefaultDescription
--current-passwordstring(none)Your current password
--new-passwordstring(none)The new password (at least 12 characters, not a common password, not containing the username)

Example:

Terminal window
omniglass auth change-password --current-password current_password --new-password new_password

Create one of your own API tokens

omniglass auth create-token [flags]

Mints a CLI/API token for the caller and returns it once (store it now; it cannot be retrieved again). A description is required (what the token is for); an optional ttl_days bounds its lifetime (default 90, maximum 365). Requires authentication; self-scoped (always issued for you). The token is stamped with the device and address that created it. Naming an agent mints an agent token instead: it acts on your behalf, holds only what its optional roles AND you hold (each role must be one you cover, else 403), is accepted only on its optional channels, needs an explicit ttl_days, never holds a reveal or use action, cannot mint a token, change your password or impersonate, and every row it writes names the agent. An agent token cannot call this route.

FlagTypeDefaultDescription
--agentstring(none)Mint an agent token: the name of the agent that will act on your behalf. Every row it writes is marked with this name; it can never reveal or use a credential, mint a token, change your password, or impersonate.
--channelsstring(none)The channels an agent token is accepted on: api (direct calls), mcp (the MCP server), or omnibot alone (the built-in assistant, which reaches the MCP server and audits as omnibot). Omit to accept api and mcp.
--descriptionstring(none)What the token is for (required)
--rolesstring(none)An agent token’s own roles: it holds only what these roles AND you hold, re-checked on every request. Each must be a role you cover. Omit for your own grants, still under the agent ceiling.
--ttl-daysint0Days until the token expires (default 90, maximum 365; required for an agent token)

Example:

Terminal window
omniglass auth create-token --description description

Log in with a username and password

omniglass auth login [flags]

Verifies a human’s password and sets an httpOnly session cookie. Public; a bad credential is a flat 401, and a correct password against a disabled account is a distinct 403 so the screen can explain it.

FlagTypeDefaultDescription
--passwordstring(none)The account password; exchanged for a session cookie, never stored
--usernamestring(none)The sign-in username

Example:

Terminal window
omniglass auth login --password password --username username

Log out the current session

omniglass auth logout

Revokes the session token and clears the cookie. Public.

Example:

Terminal window
omniglass auth logout

The authenticated user, its permissions, and grants

omniglass auth me

Returns the caller’s user, flattened permissions (a UI hint and the fast-reject set), the permissions held on an all-scope grant (fleet_permissions), and grants. Requires authentication.

Example:

Terminal window
omniglass auth me

Commands for the action-rule resource

Subscribe yourself to alarms

omniglass auth me action-rule create [flags]

Creates a personal action rule: on which alarm transitions, when, what to send, and on which of your channels (inbox, email). It tells you alone and names no target (targets is a 422), and it only ever matches an alarm on a component you can read at that moment, judged before its when runs. A taken name among your rules, or a 51st rule, is a 409. Audited. Gated by notification:subscribe.

FlagTypeDefaultDescription
--channelsstring(none)How it tells you: inbox, email (your directory email)
--descriptionstring(none)What it is for
--enabledboolfalseWhether it fires (default true)
--labelstring(none)A human label
--namestring(none)The rule’s name (lowercase kebab), unique among your own rules
--notification-typestring(none)The notification type to send, by name or uuid; absent sends the official one for the transition
--onstring(none)The alarm transitions it fires on: raised, cleared, or both
--targetsstring(none)Refused when set (a 422): a personal rule tells you alone and names no target
--whenstring(none)A predicate over the alarm facts (component, location, severity, severity_rank, message, rule, …); absent always holds. Judged only for alarms on components you can read

Example:

Terminal window
omniglass auth me action-rule create --channels <json> --name name --on <json>

Unsubscribe: delete one of your alarm subscriptions

omniglass auth me action-rule delete <name>

Deletes one of your own personal action rules; what it already sent keeps its name. Another user’s is a 404. Audited. Gated by notification:subscribe.

Example:

Terminal window
omniglass auth me action-rule delete <name>

Get one of your alarm subscriptions

omniglass auth me action-rule get <name>

One of your own personal action rules, by name or uuid; another user’s is a 404. Gated by notification:subscribe.

Example:

Terminal window
omniglass auth me action-rule get <name>

List your alarm subscriptions

omniglass auth me action-rule list

Your own personal action rules, by name. Self-scoped. Gated by notification:subscribe.

Example:

Terminal window
omniglass auth me action-rule list

Test one of your alarm subscriptions against your recent alarms

omniglass auth me action-rule test <name> [flags]

Judges one of your own personal action rules, or a draft of its on and when, against your most recent alarms on components you can read: for each transition it fires on, whether it would have told you. Writes and sends nothing. Another user’s rule is a 404. Gated by notification:subscribe.

FlagTypeDefaultDescription
--limitint0How many of your most recent alarms to judge (default 20)
--onstring(none)A draft of the transitions to judge with, in place of the rule’s own
--whenstring(none)A draft of the predicate to judge with, in place of the rule’s own

Example:

Terminal window
omniglass auth me action-rule test <name>

Test a draft alarm subscription against your recent alarms

omniglass auth me action-rule testDraft [flags]

Judges a draft’s on (default raised) and when (default always) against your most recent alarms on components you can read, before it is saved: for each transition, whether it would have told you. Writes and sends nothing. Gated by notification:subscribe.

FlagTypeDefaultDescription
--limitint0How many of your most recent alarms to judge (default 20)
--onstring(none)The transitions to judge (default raised)
--whenstring(none)The predicate to judge (default always)

Example:

Terminal window
omniglass auth me action-rule testDraft

Change or pause one of your alarm subscriptions

omniglass auth me action-rule update <name> [flags]

Patches one of your own personal action rules (an absent field is unchanged); enabled false pauses it. Another user’s is a 404. Audited. Gated by notification:subscribe.

FlagTypeDefaultDescription
--channelsstring(none)How it tells you (replaces the set)
--descriptionstring(none)What it is for
--enabledboolfalseWhether it fires: false pauses it, true resumes it from the next transition
--labelstring(none)A human label (empty clears it)
--notification-typestring(none)The type to send (empty returns to the official one per transition)
--onstring(none)The transitions it fires on (replaces the set)
--whenstring(none)The predicate (empty always holds)

Example:

Terminal window
omniglass auth me action-rule update <name>

Commands for the identity-link resource

List your own identity links

omniglass auth me identity-link list

Lists the identities at the identity provider you sign in through. Requires authentication; self-scoped (never another person’s).

Example:

Terminal window
omniglass auth me identity-link list

Start linking your own identity at the provider

omniglass auth me identity-link start [flags]

Confirms your current password and starts a sign-in at the identity provider bound to this session: send the browser to the returned url, and signing in there links that identity to you (an owner’s only way to gain single sign-on). Requires authentication; self-scoped (it only ever links to you). Needs a session; refused to an agent token. A wrong password is a 403; single sign-on not configured is a 409.

FlagTypeDefaultDescription
--current-passwordstring(none)Your current password: a link outlives the session that makes it, so it is confirmed as a password change is
--providerstring(none)The identity provider to link, by name

Example:

Terminal window
omniglass auth me identity-link start --current-password current_password

Unlink one of your own identity links

omniglass auth me identity-link unlink <link> [flags]

Confirms your current password and removes one of your identity links; every session and token through it ends with it. Requires authentication; self-scoped (a link that is not yours is a 404). Refused to an agent token. Audited.

FlagTypeDefaultDescription
--current-passwordstring(none)Your current password, as linking asks

Example:

Terminal window
omniglass auth me identity-link unlink <link> --current-password current_password

Commands for the notification resource

List your inbox

omniglass auth me notification list [flags]

The caller’s own console inbox: the notifications addressed to them on the inbox channel, newest first, with the unread count. Self-scoped (never another user’s), and scoped again by the caller’s component read scope as it stands now, so an entry about a component they can no longer read is gone. Gated by notification:read.

FlagTypeDefaultDescription
--limitint0At most this many, newest first (default 100)
--unreadboolfalseOnly the entries not yet read

Example:

Terminal window
omniglass auth me notification list
omniglass auth me notification markAllRead
Section titled “omniglass auth me notification markAllRead”

Mark every inbox entry read

omniglass auth me notification markAllRead

Marks every unread entry in the caller’s own inbox read, over the same scope the inbox reads, and says how many. Audited as one row. Gated by notification:read.

Example:

Terminal window
omniglass auth me notification markAllRead

Mark an inbox entry read

omniglass auth me notification markRead <id>

Marks one of the caller’s own inbox entries read (one already read keeps its first read time). An entry that is not the caller’s, or about a component outside their component read scope, is a non-disclosing 404. Audited. Gated by notification:read.

Example:

Terminal window
omniglass auth me notification markRead <id>

Commands for the oauth-client resource

Approve or deny an OAuth client

omniglass auth oauth-client authorize <id> [flags]

Answers an OAuth client’s authorization request as you. Approved, it issues a one-time code (good for five minutes) the client exchanges for an agent token accepted on the MCP channel only and holding only the roles you chose, each one whose capabilities you hold (else 403); denied, it sends the client back with access_denied. Returns where to send the browser back to. Requires authentication; an agent token or an impersonated session cannot answer.

FlagTypeDefaultDescription
--approvedboolfalseWhether you approve the client; false sends it back with access_denied
--code-challengestring(none)The PKCE challenge from the authorization request
--code-challenge-methodstring(none)The PKCE method; S256 only
--redirect-uristring(none)The redirect URI from the authorization request; one the client registered
--resourcestring(none)The resource the token is for: this server’s MCP endpoint
--rolesstring(none)The roles to approve; each must be one whose capabilities you hold. Required when approved
--statestring(none)The client’s state, echoed back

Example:

Terminal window
omniglass auth oauth-client authorize <id> --approved <bool> --code-challenge code_challenge --code-challenge-method code_challenge_method --redirect-uri redirect_uri --resource resource

Read an OAuth client asking for your consent

omniglass auth oauth-client get <id>

Returns a registered OAuth client (the name it gave, its redirect URIs) and the roles you may approve for it, for the console’s consent page. Requires authentication; the client is the one named in the authorization request.

Example:

Terminal window
omniglass auth oauth-client get <id>

Remove your own profile picture

omniglass auth remove-avatar

Clears the caller’s profile picture. Requires authentication; self-scoped.

Example:

Terminal window
omniglass auth remove-avatar

Set your own profile picture

omniglass auth set-avatar [flags]

Sets the caller’s profile picture (JPEG, PNG, or WebP, base64-encoded), normalized server-side to a 256x256 JPEG. Requires authentication; self-scoped. A bad or oversize image is a 422.

FlagTypeDefaultDescription
--image-base64string(none)The image (JPEG, PNG, or WebP), base64-encoded; normalized server-side to a 256x256 JPEG

Example:

Terminal window
omniglass auth set-avatar --image-base64 image_base64

Commands for the status resource

Whether the system has an owner yet, and whether it is a lab

omniglass auth status list

Public: reports whether any owner has been bootstrapped, so the login screen can hide the bootstrap hint, and whether this server is a lab (omniglass lab run), so the console can say so before anyone signs in.

Example:

Terminal window
omniglass auth status list

Stop the current impersonation session

omniglass auth stop-impersonation

Revokes the impersonation session presented by the request token, ending the view-as / act-as. Requires authentication with an impersonation token; self-scoped (ends only the session the token names).

Example:

Terminal window
omniglass auth stop-impersonation

Update your own profile

omniglass auth update-profile [flags]

Updates the caller’s own label (email is administrator-set). Requires authentication; self-scoped (edits only your own user).

FlagTypeDefaultDescription
--labelstring(none)Your label; empty clears it

Example:

Terminal window
omniglass auth update-profile

Create the first owner (idempotent per username) and mint its bearer token

omniglass bootstrap <username> [flags]
FlagTypeDefaultDescription
--emailstring(none)owner email (optional)
--labelstring(none)owner label (optional)
--passwordstring(none)owner password, so the owner can sign in to the console (optional)
--ttlduration2160h0m0show long the bootstrap token is valid before it expires (max 365 days)

Commands for the calc-rule resource

Create a calc rule

omniglass calc-rule create [flags]

Authors a rule that derives its output key on each owner (each component its selector picks, or each system) from its aliased inputs, reduced by an expression over the aliases, each bound as the list of its current values (one per instance on a component, every member’s on a system, with members records beside it). Every input key must be registered (by name or uuid; the rule holds it by uuid) and health may not be one; each alias is an identifier of at most 64, not a keyword, a builtin or list function’s name, or a site binding (component, has, members, system, value), and unique; the reduce must compile and yield the output key’s type (a 422 placed at body.reduce.expr with its line and column, and the name when it is one no alias binds); the output must be a registered key that is not health and that no collection writes (a native probe’s key, or one a driver declares among its emits); an enabled rule may not close a cycle in the graph from every enabled rule’s input keys to its output key (a 422 naming the chain of keys), nor write a key another enabled rule writes (a 422 naming that rule). A list or get carries calc_error when a stored reduce no longer compiles. A name already taken is a 409. Returns the rule with its uuid. Audited. Gated by rule:create, with an all-scope grant.

FlagTypeDefaultDescription
--descriptionstring(none)What the rule derives and why
--enabledboolfalseDefaults to true
--inputsstring(none)The keys the rule reads, each by a unique alias its reduce uses; health may not be one
--labelstring(none)A human label
--namestring(none)The rule’s name (lowercase letters, digits, hyphens)
--output-keystring(none)The property or metric the rule writes: its type pins the reduce’s result. Not a reserved key (a native probe key, health), not a key a driver’s emits or a command type write, and not one another enabled rule writes
--owner-kindstring(none)What the rule derives a value on: each component its selector picks, or each system its selector picks (read from the system’s slot-bound members). Fixed at create
--reducestring(none)An expression over the inputs by alias
--selectorstring(none)The owners the rule derives for: a component rule’s component_types and components, or a system rule’s system_types and systems; absent is every owner of its kind

Example:

Terminal window
omniglass calc-rule create --inputs <json> --name name --output-key output_key --owner-kind owner_kind --reduce <json>

Delete a calc rule

omniglass calc-rule delete <name>

Removes an operator rule; an official rule is read-only (409). Audited. Gated by rule:delete, with an all-scope grant.

Example:

Terminal window
omniglass calc-rule delete <name>

Get a calc rule

omniglass calc-rule get <name>

Returns one calc rule by name (or uuid). Gated by rule:read.

Example:

Terminal window
omniglass calc-rule get <name>

List calc rules

omniglass calc-rule list

Lists the calc rules, by name: the authored config that derives an output key on each owner from aliased inputs, each with its live state as counts (owners_computed, owners_pending, owners_unsupported, owners_failed) over the owners the caller may read. Rules read like a catalog, so every rule is listed whatever the caller’s scope. Gated by rule:read.

Example:

Terminal window
omniglass calc-rule list

Preview a calc rule

omniglass calc-rule preview [flags]

Computes a candidate calc rule now, on each owner it selects that the caller may read, with the reduce the tick runs, and writes nothing (a read-only transaction). For each owner it answers the value the rule would write, the output’s current value and whether they differ, the inputs with no value, the members skipped and the instances left out as stale (named when the caller may read the component, else counted). An expression that reads one member’s value by position (members[1].value.t, or an element of an input’s list) over a system with a member the caller may not read is withheld on that system, its error counting the members out of scope; one that folds each input’s list whole (avg(t), max(t)) shows the aggregate. A component rule previews the selected components holding one of its inputs, as the tick would mark them. The owners holding a current value of the output are computed first, so the cap never hides one, and the answer lists the owners holding a value or that the rule would write one on first, each by name. At most owner_cap owners are computed, and a bound on total input reads stops a preview over large systems early, a whole owner at a time (owners_judged of owners_total, truncated past either). The candidate is checked as a save would check it: a reduce that does not compile, a cycle in the key graph, an output another enabled rule or a collection writes, or health are each a 422, so the author learns before saving; given a saved rule’s name it is judged as an edit of that rule. The selector’s names resolve in the caller’s read scope: a name that does not exist and one the caller may not read are the same 422, and a name shared in and out of scope means the one in scope. A preview takes no lock a save waits on. Gated by rule:read.

FlagTypeDefaultDescription
--inputsstring(none)The keys the rule reads, each by a unique alias its reduce uses
--namestring(none)A saved rule’s name, to preview an edit of it (its stored version is then not a second writer of its key); absent for a new rule
--output-keystring(none)The property or metric the rule would write
--owner-kindstring(none)What the rule derives a value on
--reducestring(none)An expression over the inputs by alias
--selectorstring(none)The owners the rule derives for; absent is every owner of its kind

Example:

Terminal window
omniglass calc-rule preview --inputs <json> --output-key output_key --owner-kind owner_kind --reduce <json>

Rename a calc rule

omniglass calc-rule rename <name> [flags]

Moves an operator rule’s name, the address an operator types. A separate act from an update, because it breaks bookmarks and integration config outside this system; inside it nothing breaks, since the audit rows hold the rule’s uuid and the key graph is of keys, not rule names. Not a material change: no version bump. An official rule keeps its name (409), a taken name is a 409, an illegal or uuid-shaped one a 422. Returns the rule with its uuid. Audited. Gated by rule:update, with an all-scope grant.

FlagTypeDefaultDescription
--namestring(none)The rule’s new name, unique among calc rules (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass calc-rule rename <name> --name name

Commands for the state resource

Get a calc rule’s live state

omniglass calc-rule state list <name> [flags]

What a calc rule last did on each owner the caller may read (components by the component read scope, systems by the system read scope), each owner named now: the value it computed, when and at which version, the inputs it found no value of, a system’s members that held none and the instances it left out as stale (named when the caller may read the component, else counted), an error, since when a system has had no members, and whether the owner is pending (with when a deferred mark is due). Ordered on the server, failing owners first, then pending, then those it wrote nothing for, then those holding a value, each by name, and at most limit of them; total and the pending depth count every owner the caller may read, listed or not. Gated by rule:read.

FlagTypeDefaultDescription
--limitint0The most owners to list, in state order: failing, pending, missing an input (or with no members), valued, each by name

Example:

Terminal window
omniglass calc-rule state list <name>

Update a calc rule

omniglass calc-rule update <name> [flags]

Patches a rule (an absent field is unchanged), bumping its version; a patch that changes nothing writes nothing. What changed is checked as on create: changed inputs, reduce or output recompile, a changed output must be one no collection writes, and an enabled rule may not close a cycle or share its output with another enabled rule. Enabling a disabled rule recompiles it and checks both, so a rule carrying calc_error cannot be enabled (422). The owner kind is fixed at create. Official rules are read-only (409). Audited. Gated by rule:update, with an all-scope grant.

FlagTypeDefaultDescription
--descriptionstring(none)What the rule derives and why
--enabledboolfalseWhether the rule runs; an enabled rule is part of the key graph
--inputsstring(none)Replace the keys the rule reads
--labelstring(none)A human label
--output-keystring(none)The property or metric the rule writes
--reducestring(none)Replace the reduce’s expression
--selectorstring(none)Replace the owners the rule derives for; an empty selector is every owner of its kind

Example:

Terminal window
omniglass calc-rule update <name>

Commands for the command-type resource

Create a command type

omniglass command-type create [flags]

Registers a custom command type (official=false). The name must be a single kebab token; a target, when set, must be a registered property or metric type. Gated by command_type:create.

FlagTypeDefaultDescription
--descriptionstring(none)What the command does
--disruptiveboolfalseThe command takes its device down (reboot): its delivery closes the gates of the hold set (the target and what it hosts) on the delivering outpost until each reads up again
--hold-secondsint0A disruptive type’s backstop in seconds, greater than quiet_seconds: an endpoint with no up reading by then reopens anyway, counted. Not the settle window. Only on a disruptive type
--labelstring(none)A human label
--namestring(none)The command type name (lowercase kebab)
--params-schemastring(none)A JSON Schema fragment for the params
--power-outlet-paramstring(none)Marks a power command: the name of the param that carries the outlet, so its hold set is what that outlet feeds. Only on a disruptive type
--quiet-secondsint0A disruptive type’s quiet period in seconds: no poll, probe or session dial runs against the held endpoints. Only on a disruptive type
--settle-window-secondsint0The actuation window in seconds: how long the device is given to actuate before a mismatch is a failed command. 0 means settle immediately (a fire-and-forget command, or a settleable one judged at the moment of issue). A duration has no negative, so the schema floors it at 0 rather than accepting a value that behaves as 0 with no refusal to say so.
--target-metric-typestring(none)The metric this command sets, for settlement (at most one target arm)
--target-property-typestring(none)The property this command sets, for settlement (at most one target arm)

Example:

Terminal window
omniglass command-type create --name name

Delete a command type

omniglass command-type delete <name>

Removes a custom command type by name. Official types are read-only. Gated by command_type:delete.

Example:

Terminal window
omniglass command-type delete <name>

Get a command type

omniglass command-type get <name>

Returns one command type by name. Gated by command_type:read.

Example:

Terminal window
omniglass command-type get <name>

List command types

omniglass command-type list

Lists every registered command type (official and custom). Fleet-wide reference data. Gated by command_type:read.

Example:

Terminal window
omniglass command-type list

Update a command type

omniglass command-type update <name> [flags]

Patches a custom command type’s label, description, params schema, settle window, disruption (disruptive, quiet_seconds, hold_seconds, power_outlet_param, checked together on the merged row), or target on either arm. Partial by default: the fields present in the body change and the rest are left alone (an empty target clears it; a non-empty arm clears the other). params_schema is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; a mask naming a field this resource does not patch is a 422. The name is fixed at creation. Official types are read-only. Gated by command_type:update.

FlagTypeDefaultDescription
--descriptionstring(none)What the command does
--disruptiveboolfalseWhether the command takes its device down; checked with quiet_seconds and hold_seconds on the merged row
--hold-secondsint0A disruptive type’s backstop in seconds, greater than quiet_seconds; not the settle window
--labelstring(none)A human label
--params-schemastring(none)A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name params_schema in update_mask with no value here to CLEAR it
--power-outlet-paramstring(none)The param that carries a power command’s outlet (empty clears it); only on a disruptive type, checked on the merged row
--quiet-secondsint0A disruptive type’s quiet period in seconds
--settle-window-secondsint0The actuation window in seconds, floored at 0 (a duration has no negative; 0 means settle immediately)
--target-metric-typestring(none)The metric this command sets (empty clears it; a non-empty arm clears the other)
--target-property-typestring(none)The property this command sets (empty clears it; a non-empty arm clears the other)
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (params_schema back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass command-type update <name>

Commands for the component resource

Commands for the alarm resource

Acknowledge an alarm

omniglass component alarm acknowledge <name> <id>

Records that a human has seen this alarm, and changes nothing else. The alarm stays exactly as raised as it was: acknowledging is not fixing, so health is NOT recomputed and cleared_at is untouched. Acknowledging is orthogonal to clearing in both directions, so a cleared alarm can still be acknowledged by whoever reviews the history, and clearing never acknowledges on an operator’s behalf. Acknowledging twice is idempotent: the first person and the first time stay, and the no-op writes no second audit row. Gated by alarm:acknowledge, whose scope is resolved on the component tier from that permission (not from component:update); a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not acknowledge on is a 403.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component alarm acknowledge <name> <id>

Raise an alarm on a component

omniglass component alarm create <name> [flags]

Raises an alarm on this component, then recomputes health in the same transaction: the component’s own health moves, and if it is now outage (an alarm at a level that declares outage), any slot it occupies loses it as an occupant while the alarm is active, which can move its system and location health with it; an alarm at a degraded level degrades the component but leaves it occupying its slots, and one at a level declaring none leaves it healthy and still listed. Gated by component:update; read and update scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--dedup-keystring(none)What the alarm is about; defaults to the message. Raising an already-open (component, dedup_key) returns the existing open alarm instead of a duplicate. A key (or, without one, a message) beginning rule: is refused (422): that namespace is a rule’s firing
--messagestring(none)What is wrong, for the operator reading it later
--severitystring(none)How bad it is: a severity level by name (see /severity-levels); the level declares what the alarm does to the component (none, degraded or outage)

Example:

Terminal window
omniglass component alarm create <name> --severity severity

Clear an alarm

omniglass component alarm delete <name> <id>

Marks the alarm cleared and recomputes health in the same transaction, so the recovery is recorded as a transition at the moment it happened. The row is kept: what was wrong and when outlives the fix. Clearing an alarm that is already cleared or does not exist is a 404. Gated by component:update; read and update scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component alarm delete <name> <id>

List a component’s alarms

omniglass component alarm list <name> [flags]

What is currently wrong with this component, newest first, with the component’s own health those alarms make. Pass include_cleared for the history rather than the active set, and since/until to keep only the alarms raised during a range (still raised at since or later, raised by until), newest first and capped at 500. since after until is a 400. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--include-clearedboolfalseInclude cleared alarms, so the list is the history rather than what is wrong now
--sincestring(none)Only the alarms still raised at or after this RFC 3339 time: active, or cleared at or after it. With include_cleared, a timeline’s read of what was raised during a range
--unacknowledgedboolfalseOnly the alarms nobody has looked at. On its own this is the queue an operator works (raised and unacknowledged); with include_cleared it also returns the alarms that came and went unattended
--untilstring(none)Only the alarms raised at or before this RFC 3339 time; must not be earlier than since

Example:

Terminal window
omniglass component alarm list <name>

Snooze an alarm

omniglass component alarm snooze <name> <id> [flags]

Snoozes the alarm, by its component and dedup_key, for a duration from now (1m to 7d), so every notification any alarm of that dedup key would send, a raise or a clear, on any channel, is written suppressed with the reason instead, and a message already waiting to be retried is suppressed when its turn comes. Snoozing a snoozed alarm replaces the deadline. It changes nothing else: it does not acknowledge, does not recompute health, a snoozed alarm stays in the unacknowledged queue, and a clear does not end it. It notifies nothing itself. When the snooze ends, at its deadline or by :unsnooze, with an alarm of that dedup key still raised, that alarm is announced again as raised to whoever the action rules reach then. Audited on this alarm. Gated by alarm:snooze, whose scope is resolved on the component tier from that permission; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not snooze on is a 403.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--durationstring(none)How long from now the alarm stays snoozed, from 1m to 7d: a duration such as 15m, 1h, 4h or 24h, or whole days such as 7d. Snoozing a snoozed alarm replaces its deadline, shorter or longer

Example:

Terminal window
omniglass component alarm snooze <name> <id> --duration duration

Read an alarm’s timeline

omniglass component alarm timeline <name> <id>

The alarm’s history in one list, oldest first: the events that carry it (an event rule’s fire event, which opened it, and its clear event, which resolved it) merged by time with its audit rows (the raise, each acknowledgement, the clear, each snooze, unsnooze and snooze-end, and a rule edit that opened or resolved it, naming the editor) and the notifications its transitions queued, each at the moment it was queued with its status as it stands (#618). At one instant an event comes before the audit row it caused, and that before a notification. Gated by alarm:read; a component outside the caller’s component read scope, and an alarm not on the component, are a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component alarm timeline <name> <id>

End an alarm’s snooze

omniglass component alarm unsnooze <name> <id>

Ends the alarm’s snooze early, exactly as its deadline passing would: if an alarm of that dedup key is still raised, it is announced again as raised to whoever the action rules reach now. Audited on this alarm, naming the caller. Unsnoozing an alarm that is not snoozed is a 200 that writes nothing. Gated by alarm:snooze, resolved as :snooze is.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component alarm unsnooze <name> <id>

Create many components in one write

omniglass component batchCreate [flags]

Creates components in one transaction: each request is the body POST /components takes, run as that create runs it, in order, so a component may name as its parent one an earlier request creates, and its system and location by name as the single create does. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /components maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by component:create; each request is held to that scope, its location resolves within your location:read scope, and a request naming a system also needs system:update over it, as its single create does.

FlagTypeDefaultDescription
--requestsstring(none)The components to create, each the body POST /components takes, in order: a parent before its children
--validate-onlyboolfalseRun every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written

Example:

Terminal window
omniglass component batchCreate --requests <json>

Check a component name

omniglass component checkName [flags]

Reports whether a proposed name is a valid slug and currently free within the given placement (parent wins over location; neither means the unplaced/root bucket). Advisory (Save is still gated by the unique constraint). Gated by component:update.

FlagTypeDefaultDescription
--locationstring(none)The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check
--namestring(none)The proposed name to check
--parentstring(none)The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check

Example:

Terminal window
omniglass component checkName --name name

Commands for the command resource

Read a command

omniglass component command get <name> <id>

One command, whole: what it was told and the value it set, its recorded status with a time for each transition (issued, delivered, executed, settled), where it sits now while in flight (queued, delivered, awaiting the reply, awaiting the observation), how its binding settles it, the evidence that decided it (the reply, masked of credentials, or the observed sample) and why, the endpoint, outpost and driver that carry it, and who issued it. Gated by command:read, resolved on the component tier; a component outside the caller’s component:read, or a command not on that component, is a non-disclosing 404, and a component it can read but whose commands it may not is a 403.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component command get 'hq.west.level-2.boardroom-a.$comp.videobar-1' 42

Issue a command to a component

omniglass component command issue <name> [flags]

Records a command invocation, writes a caused event, and (for a settleable command) opens an intended value the observed value settles against. Answers with the command as it stands (as the command read returns it) and the computed settlement; with wait, once it settles, fails or times out, or wait_timeout passes. Gated by command:issue, whose scope is resolved on the component tier from that permission (not from component:read); a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not command is a 403.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--command-typestring(none)The command_type to invoke
--instancestring(none)The series discriminator (e.g. an endpoint), when the target is instanced
--paramsstring(none)The invocation params, stored on the command and the caused event
--valuestring(none)The intended value for the target property (a settleable command)
--waitboolfalseBlock until the command settles, fails or times out, or until wait_timeout passes, and answer with where it stands then. Refused with a 429, before anything is issued, while too many commands are already being waited on
--wait-timeoutint0How long a wait may block, in seconds (1 to 120). A command still in flight when it passes is answered as it stands, its phase saying where

Example:

Terminal window
omniglass component command issue <name> --command-type command_type

List a component’s commands

omniglass component command list <name> [flags]

The component’s command history, newest first, each command whole (as the single read returns it), narrowed by recorded status and by when it was issued, a page at a time. status=issued is what is in flight now. Gated by command:read, resolved on the component tier; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but whose commands it may not is a 403.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--limitint0How many to return, newest first (1 to 500)
--sincestring(none)Only the commands issued at or after this RFC3339 time
--statusstring(none)Only the commands with this recorded status; issued is every command still in flight
--untilstring(none)Only the commands issued at or before this RFC3339 time

Example:

Terminal window
omniglass component command list 'hq.west.level-2.boardroom-a.$comp.videobar-1'

Create a component

omniglass component create [flags]

Creates a component, optionally under a parent (a root needs an all-scoped grant, or a location inside the location subtree of a location-scoped component:create grant; a root with no location needs the all-scoped grant), bound to a system and a location, and classified by a product (required; naming a generic is fine until a real product is modeled). Gated by component:create. The location reference resolves within the caller’s location:read scope, because the label this stores is rendered from it, and one outside that scope is refused (422) exactly as :renderLabel refuses to preview it. Naming a system additionally requires system:update, and resolves within that scope, because the component’s primary membership is inserted from it: it is the same row the membership route writes, so the two paths cost the same permission. A system outside that scope is refused with a 403 naming it when the caller may read the system (denying its existence to someone who can GET it would be a lie) and with the non-disclosing 422 when the caller may not.

FlagTypeDefaultDescription
--expected-namestring(none)The name a create form previewed (POST /components:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the type’s stem moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422.
--labelstring(none)What an operator reads; the name is the address
--locationstring(none)Location name this component is placed at
--namestring(none)Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the product’s type.
--parentstring(none)Parent component name; omit for a root component
--productstring(none)Product (catalog SKU) this component is an instance of, by name or uuid. Required: use a generic (generic-device, generic-app, generic-service) until a real product is modeled.
--systemstring(none)Primary system name this component belongs to. Naming one writes that system’s membership, so it costs the system:update permission and resolves in that scope; omitted, the create costs component:create alone.

Example:

Terminal window
omniglass component create

Start a component from a template

omniglass component createFromTemplate [flags]

Creates one component from a component template at a location: its product and the template’s declared values, and, when the inputs carry an address (host), its endpoint attached through the driver with the template’s preset under your inputs. A secret input names a secret you may bind (secret:bind), resolved as an attach resolves it. One transaction, every piece in your own scope with its own audit row carrying from_template; nothing points back at the template. Gated by component:create; declared values also need component:update and an attach endpoint:create. A location outside your location scope is a 404, an unknown template a 404, inputs with no address or an attach with no outpost a 422.

FlagTypeDefaultDescription
--inputsstring(none)Driver inputs laid over the template’s preset: the address (host) attaches the endpoint, a secret input names a secret you may bind (secret:bind)
--labelstring(none)The component’s label
--locationstring(none)The location the component sits in, by name or dotted path
--namestring(none)The component’s name; minted as an unnamed create mints it when empty
--outpoststring(none)The outpost the endpoint is placed on; needed when inputs carry an address
--templatestring(none)The component template, by name

Example:

Terminal window
omniglass component createFromTemplate --template template

Delete a component

omniglass component delete <name>

Deletes a component, refused (409) while it still has child components, while it still owns endpoints (delete or reassign them first), or while it is still referenced elsewhere, such as by a system slot it staffs. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by component:delete; read and delete scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component delete <name>

Commands for the dependency resource

Record that a component depends on another

omniglass component dependency create <name> [flags]

Records that this component depends on the upstream: power (fed from the named outlet of the upstream; the outlet is required on this kind and refused on the others), host (hosted by the upstream, so a reboot of the upstream holds this component’s endpoints too) or path (reached through the upstream, so while the upstream’s gate is closed on this component’s outpost its in-band endpoints are held with an upstream reason naming it). A component never depends on itself, one edge of a kind joins a pair once (a 409 for the second), and an edge whose upstream already depends on this component through edges of the same kind would close a cycle and is a 422. The edge is a fact about the dependent: gated by component:update on it (a dependent the caller reads but cannot write is a 403), with the upstream resolved in the caller’s component:read (outside it, a non-disclosing 404).

Arguments: Name of the dependent component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--kindstring(none)How it depends: power, host or path
--outletstring(none)The upstream’s outlet that feeds this component: required on a power edge, refused on any other
--upstreamstring(none)Name or uuid of the component this one depends on, or a dotted address

Example:

Terminal window
omniglass component dependency create codec-1 --kind kind --upstream upstream

Remove a component’s dependency on another

omniglass component dependency delete <name> <kind> <upstream>

Removes this component’s edge of the kind to the upstream. Gated by component:update on the dependent (read but not writable, a 403). An upstream outside the caller’s component:read is a 404, as an edge that does not exist is: the list does not name it either.

Arguments: Name of the dependent component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. Name or uuid of the upstream component, or a dotted address; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component dependency delete codec-1 power pdu-1

List what a component depends on and what depends on it

omniglass component dependency list <name>

This component’s dependency edges both ways: its upstreams (what it depends on) and its dependents (what depends on it), each of kind power (fed from an outlet of the upstream), host (hosted by it) or path (reached through it). A disruptive command follows host edges down from its target and a power command follows the power edges from its outlet, so these edges are what a reboot or an outlet cycle holds; a path edge holds the dependent’s in-band endpoints while its upstream’s gate is closed. Containment (a component’s parent) is a different fact and never appears here. An edge whose other end is outside the caller’s component:read is counted in hidden, never named. Gated by component:read; a component outside it is a non-disclosing 404.

Arguments: Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component dependency list codec-1

Commands for the effective-secret resource

Effective secrets for a component

omniglass component effective-secret list <name>

Resolves the secrets that cascade onto a component (platform -> location -> component), with the winner and the shadowed candidates it overrode. There is NO system band: a secret is device-facing, and the room a component happens to serve is the wrong owner for a credential the device itself answers with. Fields are masked, as in the directory; plaintext is only ever the audited reveal. Gated by secret:read, which the viewer floor does not carry, and admin-sensitive secrets appear only to the admin tier.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component effective-secret list <name>

Commands for the effective-tag resource

Effective tags for a component

omniglass component effective-tag list <name> [flags]

Resolves the tags that cascade onto a component (platform -> location -> system -> component): keys union and the most specific binding shadows the rest, with the winner and the shadowed candidates. A non-propagating key resolves only from a binding on the component itself. The system band comes from MEMBERSHIP: pass ?system= (a name or a uuid, ADR-0062) to resolve against one the component belongs to (a shared device answers differently for each), or omit it to resolve against its primary membership. Gated by component:read; the component must be in the caller’s component read scope.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--systemstring(none)Resolve against this system, name or uuid (ADR-0062), which the component must be a member of. Omit to resolve against its primary membership, the default for a caller with no system in hand.

Example:

Terminal window
omniglass component effective-tag list <name>

Commands for the effective-variable resource

omniglass component effective-variable list

Section titled “omniglass component effective-variable list”

Effective variables for a component

omniglass component effective-variable list <name>

Resolves the variables that cascade onto a component (platform -> location -> system -> component): names union and the most specific binding shadows the rest, with the winner and the shadowed candidates. The system band comes from the component’s PRIMARY membership; resolving against a named system is not offered here yet, unlike effective-tags. Gated by variable:read; the component must be in the caller’s component read scope.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component effective-variable list <name>

Commands for the event resource

List a component’s recent events

omniglass component event list <name> [flags]

Returns the component’s recent log occurrences (the log-kind sink), newest first, bounded to the last 24 hours, narrowed by an optional event type (key), source and message text (q). Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)Only occurrences of this event type, by name
--qstring(none)Only occurrences whose message contains this text, case-insensitively
--sourcestring(none)Only occurrences from this transport

Example:

Terminal window
omniglass component event list <name>

Get a component

omniglass component get <name>

Fetches a component by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by component:read.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component get <name>

Commands for the health resource

Read a component’s health

omniglass component health list <name> [flags]

The component’s own current health (healthy, degraded or outage from its active alarms; unknown for a device nothing has observed) beside the recorded edges that got it there, in the shape the system health read returns: slots and systems are empty, transitions are one entry per change inside since..until (default the last 30 days), oldest first. since after until is a 400. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--sincestring(none)Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent
--untilstring(none)Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since

Example:

Terminal window
omniglass component health list 'hq.west.level-2.boardroom-a.$comp.videobar-1'

Commands for the identity-binding resource

omniglass component identity-binding delete

Section titled “omniglass component identity-binding delete”

Unbind an identity a conduit reports

omniglass component identity-binding delete <name> <key> <value>

Removes the binding of this value, reported by the conduit component under this match key, so its samples no longer land on the owner it named. Unbinding writes onto both ends, so it costs a write on both: gated by component:update on the conduit, and it also needs update on the binding’s owner (component:update, or system:update for a system), a 403 naming it when the caller reads the owner but cannot write it. A binding whose owner the caller cannot read is a 404, as one that does not exist is: the list does not name it either.

Arguments: Name of the conduit component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component identity-binding delete ucc-platform ucc-room-id room-17c-415a

List the identities a conduit component fans out

omniglass component identity-binding list <name>

The identity bindings of this conduit component: each value it reports under a match key (a registered property type, such as ucc-room-id) and the one system or component that value’s samples land on. A component that speaks for many owners (a cloud service, a controller fronting many components) is the conduit, the path rather than the owner. Each binding is named only when its owner is inside the caller’s read on its tier (system:read for a system owner, component:read for a component owner); the rest are counted in hidden, never named. Gated by component:read; a conduit outside it is a non-disclosing 404.

Arguments: Name of the conduit component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component identity-binding list ucc-platform

omniglass component identity-binding update

Section titled “omniglass component identity-binding update”

Bind an identity a conduit reports to its owner

omniglass component identity-binding update <name> <key> <value> [flags]

Ties this value, reported by the conduit component under this match key, to one owner, a system or a component, so the conduit’s samples naming it land on that owner. One identity on one conduit has exactly one owner: a put naming the owner it is already bound to changes nothing, and one naming a different owner moves it. The match key must be a registered property type (422 otherwise), and the owner a component or a system other than the conduit itself (a location or an outpost owns no observed sample, and a value with no identity already lands on the conduit: each a 422). The value rides the path as one percent-encoded segment, so a value carrying a slash, a space or another reserved character is escaped (room%2F1) and round-trips. A binding writes onto both of its ends, so it costs a write on both: gated by component:update on the conduit, and it also needs the owner’s update (component:update, or system:update for a system, refused with a 403 naming it before anything resolves). Each end resolves in its own tier’s read scope and must be inside its update scope: an end outside the read scope is a non-disclosing 404, one readable but not writable a 403. A move also needs update on the owner it leaves; refused, it says the identity is bound to another owner but never which one.

Arguments: Name of the conduit component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--ownerstring(none)Name or uuid of the owner the identity’s values land on, or a dotted address
--owner-kindstring(none)What kind of owner the identity names. A component or a system; a location or an outpost owns no observed sample, so neither is an owner here

Example:

Terminal window
omniglass component identity-binding update ucc-platform ucc-room-id room-17c-415a --owner owner --owner-kind owner_kind

Commands for the impairment resource

Get what is broken on a simulated component

omniglass component impairment get <name>

The impairment an operator set on a simulated component (unplugged, or a degraded link), applied by the simulator beside its outpost when that simulator runs with impairments and NET_ADMIN. A healthy device reads all zero. Gated by simulation:read; the component resolves within the caller’s component read scope.

Arguments: The simulated component’s name, or a dotted address; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component impairment get <name>

Break or repair a simulated component

omniglass component impairment set <name> [flags]

Sets what is broken on a simulated component: unplugged, or a link with added latency, jitter, loss or a rate limit. It replaces the whole impairment, so a field left out reads as zero (setting a latency on an unplugged device plugs it back in); an empty body repairs it. Returns the impairment as stored, loss rounded to hundredths. Audited. The simulator beside the component’s outpost applies it on its next pull. Gated by simulation:update, whose scope is resolved on the component tier; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not impair is a 403. Jitter above latency, or a value outside its range, is a 422.

Arguments: The simulated component’s name, or a dotted address; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--jitter-msint0Variation on the delay, in milliseconds; at most the latency
--latency-msint0Delay added to traffic toward the device, in milliseconds
--loss-pctfloat640Share of packets toward the device dropped, in percent, to hundredths
--rate-kbitint0Bandwidth limit on the device’s link, both ways, in kilobits per second; 0 is unlimited
--unpluggedboolfalseDark on every protocol: connects time out, datagrams and pings go unanswered

Example:

Terminal window
omniglass component impairment set <name>

List components in scope

omniglass component list [flags]

Lists the components the caller may read, each filtered to its scope subtree. Optional product, driver and component_type filters narrow to the components a catalog row classifies or a driver serves, and limit caps the page while total counts every match (the catalog drawers’ used-by reads). Gated by component:read.

FlagTypeDefaultDescription
--component-typestring(none)Only components of a product classified under exactly this component type (name or uuid)
--driverstring(none)Only components of a product this driver serves (name or uuid)
--limitint0Cap the page at this many rows; 0 or absent is no cap. total still counts every match.
--productstring(none)Only components of this product (name or uuid)

Example:

Terminal window
omniglass component list

List tags on a component

omniglass component listTags <name>

Lists the tags bound directly on a component (not the resolved cascade). Gated by component:read.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component listTags <name>

Commands for the log resource

List a component’s recent log lines

omniglass component log list <name> [flags]

Returns the component’s recent raw log lines (the ingest lane of ADR-0066, distinct from typed events), newest first, bounded to the last 24 hours, narrowed by an optional severity threshold and source, with the sources the window carries. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--qstring(none)Only lines whose message contains this text, case-insensitively
--severitystring(none)Only lines at this severity or more severe (RFC 5424’s eight levels); a line with no severity is left out
--sourcestring(none)Only lines that arrived on this channel

Example:

Terminal window
omniglass component log list <name>

Commands for the membership resource

List the systems a component is in

omniglass component membership list <name>

The systems this component is bound into, ordered by name. A component may belong to several: a rack DSP serving three rooms is a member of all three, and each of them depends on it. Exactly one membership may be marked primary, the default for a question asked without a system in hand. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component membership list <name>

Commands for the metric resource

List a component’s effective metrics

omniglass component metric list <name>

Every metric the component’s product declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the component (from_contract false). Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component metric list <name>

Commands for the sample resource

Read one metric series’ samples

omniglass component metric sample list <name> <metric> [flags]

The samples behind the effective read’s latest value for one series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with count, min, max, avg and last (null when empty), and covered_from, the earliest instant retention leaves data for. A bucket aggregates one instance’s measured samples (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured samples in the window, or a 422 listing them when there are several. Over more than 48 hours, or past the series’ retention, the resolution is raised to whole hours, and resolution_seconds is the width applied. At whole hours a series with hourly trends (an observed one) takes every hour the trend fold has closed from its trend, so the read reaches back as far as the trends are kept, and its open hours from the samples; any other series, or a finer resolution, reads its samples, within their retention (ADR-1566). Gated by component:read; an out-of-scope owner is a non-disclosing 404.

FlagTypeDefaultDescription
--hoursint0The window in hours, counted back from now; 24 when unset
--instancestring(none)The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. Ignored without a resolution
--limitint0The row cap, newest kept; 500 when unset. Ignored when a resolution is set
--resolutionint0The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. Over a window of more than 48 hours, or one past the series’ retention, it is raised to whole hours, at least one, and resolution_seconds says the width applied. A window of more than 5000 buckets is refused

Example:

Terminal window
omniglass component metric sample list <name> <metric>

Move a component

omniglass component move <name> [flags]

Relocates and/or re-parents a component: at least one of location or parent is required (422 otherwise). Both follow the three-state convention (an omitted field is unchanged, an explicit empty string clears, a name sets). A reparent is cycle-guarded and scope-injected; clearing parent to root requires an all-scoped move grant (a location-scoped grant reaches a component for read and create only). A separate act from update, and a separately grantable one (component:move), because a placement change is an authorization act, not a label edit: it moves a row out from under one grant’s subtree and under another’s. Recorded under its own audit verb, move, distinct from update. Does not recompute health: a component’s own health is purely its active alarms, unaffected by where it sits. A taken name at the destination is a 409. Gated by component:move; read and move scopes drive the 404 versus 403 split, and the destination location resolves within the caller’s location:read scope, because the move restamps the label from it: a destination outside that scope is refused (422).

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--locationstring(none)Relocates the component to this location name. An empty string clears its placement.
--parentstring(none)Re-parents the component within the component tree to this component name; cycle-guarded and scope-injected. An empty string makes it a root component (requires an all-scoped move grant).

Example:

Terminal window
omniglass component move <name>

Preview a component label recompute

omniglass component previewLabels

Lists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by component:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.

Example:

Terminal window
omniglass component previewLabels

Commands for the property resource

Clear a property on a component

omniglass component property delete <name> <property>

Removes the component’s declared value, so the property falls back to the product contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the component never set is a 404. Gated by component:update; read and update scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component property delete <name> <property>

List a component’s properties and where each stands

omniglass component property list <name>

Every property the component has: each its product declares, resolved to the component’s own value or the contract default (is_set marks a declared value), each set directly on the component (from_contract false), each a calc rule writes (source_rule), and each only observed or told by a command. Every row but a calculated one carries its reconciliation: want (declared), told (intended), is (observed, worst case across every live instance, naming is_instance) and drift, computed on read. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component property list <name>

Commands for the sample resource

Read one property series’ change history

omniglass component property sample list <name> <property> [flags]

The change history behind the effective value for one property series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with the change count, last (the value its own changes end on, null when empty) and held (the value in force at its end), and covered_from, the earliest instant retention leaves data for. Both forms carry carried_in, the value in force when the window opens (the newest measured row of the instance before it, within retention), so a step chart starts on it instead of blank. A bucket aggregates one instance’s measured changes (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured changes in the window, or a 422 listing them when there are several. Gated by component:read; an out-of-scope owner is a non-disclosing 404.

FlagTypeDefaultDescription
--hoursint0The window in hours, counted back from now; 24 when unset
--instancestring(none)The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it
--limitint0The row cap, newest kept; 500 when unset. Ignored when a resolution is set
--resolutionint0The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused

Example:

Terminal window
omniglass component property sample list <name> <property>

Set a property on a component

omniglass component property update <name> <property> [flags]

Declares a value for the property on this component, overriding the product contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by component:update; read and update scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--valuestring(none)The value to declare, shape given by the property’s data_type

Example:

Terminal window
omniglass component property update <name> <property> --value <json>

Commands for the reachability resource

Read a component’s per-endpoint reachability

omniglass component reachability list <name>

Composes, per endpoint, the latest reachability, the probe-layer signals that compose it, and the recent reachability transitions for the availability strip. Gated by component:read; an out-of-scope component is a non-disclosing 404.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component reachability list <name>

Recompute component labels

omniglass component recomputeLabels

Applies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by component:update.

Example:

Terminal window
omniglass component recomputeLabels

Remove a tag value from a component

omniglass component removeTag <name> [flags]

Removes a key’s value from a component. Gated by component:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key to remove

Example:

Terminal window
omniglass component removeTag <name> --key key

Rename a component

omniglass component rename <name> [flags]

Moves the component’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by component:rename; read and rename scopes drive the 404 versus 403 split.

Arguments: The component’s current name, a dotted address, or its uuid; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--namestring(none)The new name, unique within its placement (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass component rename <name> --name name

Draft the name and label a component create would store

omniglass component renderLabel [flags]

Drafts the name and the label a component create would stamp, for the classification and placement a create form already holds, without creating anything. It allocates no ordinal, opens no write transaction and takes no advisory lock, which is what separates it from a preview that mints: the ordinal is READ (the lowest free number among the live siblings in the placement bucket) rather than allocated. That answer is provisional, so a form posts the NAME back as expected_name on the create and is refused (409) rather than silently renamed if another create takes the number or the type’s stem moves first. Omitting name drafts the name the platform would mint, and refuses (422) exactly where a nameless create would. Gated by component:create, the permission the create it precedes needs; the parent resolves within the caller’s component:create scope and the location ref within location:read, because the rendered string can carry that label. Naming a system additionally requires system:update and resolves within that scope, the same as the create, because the create binds that system’s membership: a preview is never served for a bind the create would refuse. Omitting parent is the parentless bucket, which a create refuses without an all-scoped grant, so the draft refuses it too (403): a form must not preview a bucket its create declines, and the previewed ordinal reports which names that bucket already holds.

FlagTypeDefaultDescription
--locationstring(none)The location this component will sit at, by name or uuid. Resolved within the caller’s location:read scope: a location out of scope is refused, never rendered.
--namestring(none)The name the row will carry. Omit it to draft the name and label the platform would produce; supply it to draft the label an operator-named row would carry, which has no ordinal at all.
--parentstring(none)The parent component, by name or uuid. Part of the placement bucket a generated name’s ordinal is read from, so a draft that omits it previews the wrong bucket. Resolved within the caller’s component:create scope, the same set the create resolves it in.
--productstring(none)The product this component is an instance of, by name or uuid; the classification both a label rule and a generated name are resolved from
--systemstring(none)The system this component will belong to, by name or uuid. Naming it requires system:update, exactly as the create does, because the create inserts that system’s membership; it resolves within that scope, and system:read decides only whether the refusal may name the system.

Example:

Terminal window
omniglass component renderLabel --product product

Regenerate a component’s name

omniglass component resetName <name>

Hands the pen back to the platform: regenerates the name from the component’s current type and placement (the same ”-” rule a nameless create applies) and marks it name_generated, whether or not it already was. Gated by component:rename, the same token :rename uses: it changes the name, exactly that permission’s blast radius.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component resetName <name>

Set a tag value on a component

omniglass component setTag <name> [flags]

Binds a value for a key on a component. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by component:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key (must exist and apply to this kind)
--valuestring(none)The bound value

Example:

Terminal window
omniglass component setTag <name> --key key --value value

Commands for the simulation resource

Fire an operation at a simulated component

omniglass component simulation fire <name> [flags]

Asks the simulator beside the component’s outpost to run one operation against the simulated component, on one of its protocol surfaces: an HTTP call, a command line (SSH, Telnet, TCP) or an SNMP get, and returns its answer. The simulator answers from the component’s live state in process, as its listeners would, so a command’s change sticks and the collector sees it; an impairment does not stop it. Audited. Gated by simulation:update, resolved on the component tier. A component that is not simulated is a 409, a surface it does not serve a 422, and no simulator answering a 503.

Arguments: The simulated component’s name, or a dotted address; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--bodystring(none)HTTP: the request body
--commandstring(none)SSH, Telnet or TCP: the command line
--methodstring(none)HTTP: the method; GET when empty
--oidstring(none)SNMP: the OID to get
--pathstring(none)HTTP: the request path
--surfacestring(none)The surface to fire on, by its name in the component’s surface list

Example:

Terminal window
omniglass component simulation fire <name> --surface surface

Get a component’s simulation

omniglass component simulation get <name>

Whether a component is simulated (it has an endpoint on an outpost and a product a simulator profile simulates) and, when it is, its outpost, address, live hits and impairment, the products its profile simulates, and its full API surface: every protocol surface, with its HTTP routes, commands and SNMP OIDs. A component that is not simulated reads simulated false. Gated by simulation:read; the component resolves within the caller’s component read scope.

Arguments: The simulated component’s name, or a dotted address; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component simulation get <name>

Commands for the unbound-identity resource

List the identities a conduit reported that no binding places

omniglass component unbound-identity list <name>

A component that speaks for many owners (a conduit) lands each value its driver identifies on the owner an identity binding names; a value naming an identity it has no binding for lands on no owner and is kept here, one row per match key and value (a count, first and last heard, the keys it carried), bounded at 1024 per conduit with the least recently heard evicted, and aged out after seven days. Binding one (PUT …/identity-bindings/{key}/{value}) makes the next value naming it land on its owner. Gated by component:read; an out-of-scope conduit is a non-disclosing 404.

Arguments: The conduit component’s name, or a dotted address (e.g. hq.$comp.ucc-platform); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass component unbound-identity list 'hq.$comp.ucc-platform'

Update a component

omniglass component update <name> [flags]

Patches a component’s label or product. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: relocating or re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. Product is required, so it is unchanged when omitted and reclassified when named, but an explicit empty string is refused (422), not a clear. Gated by component:update; read and update scopes drive the 404 versus 403 split.

Arguments: The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--labelstring(none)A new operator-facing label
--productstring(none)Re-classifies the component to this product (catalog SKU), by name or uuid. Required once set: an empty string is refused (422), not a clear. Explicitly-set property values persist; the new product’s contract defaults follow.

Example:

Terminal window
omniglass component update <name>

Commands for the component-type resource

Create a component type

omniglass component-type create [flags]

Creates a custom (non-official) component_type, optionally under a parent. Gated by component_type:create.

FlagTypeDefaultDescription
--abbrevstring(none)A compact form of label; omit to inherit the parent’s
--default-tagsstring(none)Tags every instance of this type starts with
--iconstring(none)A glyph key; omit to inherit the parent’s
--labelstring(none)What an operator reads in pickers and lists
--label-rulestring(none)A label rule, written in Go text/template, rendering the label of every instance of this type, over a closed map of that component’s facts (Name, Ordinal, TypeName, TypeAbbrev, Stem, ProductName, VendorName, LocationLabel, SystemTypeLabel) and the functions title, upper, lower, slug and words (words turns a kebab or snake name into the words in it, so {{title (words .Name)}} reads north-wing as North Wing). Omit to inherit the parent’s, then the global component rule. A rule that does not parse is refused here, 422.
--namestring(none)The globally unique name
--parent-idstring(none)The parent component_type, by name or uuid; omit for a root type
--stemstring(none)The auto-generated component name’s prefix; omit to inherit the parent’s. Lowercase letters, digits, and hyphens.

Example:

Terminal window
omniglass component-type create --label label --name name

Delete a component type

omniglass component-type delete <id>

Deletes a custom component_type, refused if official (422, forked or not: a fork is an overlay, not ownership) or still a parent of another component_type (409). :restore is the only removal a shipped row admits, and it removes your fork, not the row. Gated by component_type:delete.

Example:

Terminal window
omniglass component-type delete display

List component types

omniglass component-type list

Lists the component_type catalog (the taxonomy a product is classified under: mic, camera, wireless-mic under mic), ordered alphabetically by label. Each row carries its parent link, so the console reconstructs the tree client-side. Gated by component_type:read.

Example:

Terminal window
omniglass component-type list

Restore a component type’s shipped values

omniglass component-type restore <id>

Discards your fork of a shipped component_type, so reads return the values this release ships and later releases can improve them again. 409 when the row carries no fork of yours. Gated by component_type:update, the same permission that took the fork: restoring is undoing your own edit, not deleting a row.

Example:

Terminal window
omniglass component-type restore display

Update a component type

omniglass component-type update <id> [flags]

Patches a component_type’s label, stem, icon, abbrev, label_rule, or default_tags. A shipped (official) row is never written: the patch FORKS it, storing your version over the shipped one, and the response comes back with forked=true under the same id. :restore discards the fork. Gated by component_type:update.

FlagTypeDefaultDescription
--abbrevstring(none)A new compact form; an empty string clears it, so this type inherits the nearest ancestor’s again
--default-tagsstring(none)Replaces the default-tag set; omit to leave unchanged
--iconstring(none)A new glyph key; an empty string clears it, so this type inherits the nearest ancestor’s again
--labelstring(none)A new operator-facing label
--label-rulestring(none)A new label rule; an empty string clears it, so instances fall back to the nearest ancestor’s rule and then the global component rule. Refused with 422 if it does not parse.
--stemstring(none)A new name prefix (lowercase letters, digits, and hyphens); an empty string CLEARS it, so this type inherits the nearest ancestor’s again. A root type has no ancestor to inherit from and is refused (422).

Example:

Terminal window
omniglass component-type update display

Commands for the driver resource

Create a driver

omniglass driver create [flags]

Creates a custom (non-official) driver. Gated by driver:create.

FlagTypeDefaultDescription
--labelstring(none)What an operator reads in pickers and lists
--namestring(none)The globally unique name; renameable
--specstring(none)The declarative spec body; validated against the catalogs, and a spec that fails validation refuses the write (422)
--versionstring(none)A free-form version string, e.g. 1.0.0

Example:

Terminal window
omniglass driver create --label label --name name

Delete a driver

omniglass driver delete <id>

Deletes a custom driver, refused if official (422). Gated by driver:delete.

Example:

Terminal window
omniglass driver delete snmp-generic

Get a driver

omniglass driver get <id>

Fetches a driver by id. Gated by driver:read.

Example:

Terminal window
omniglass driver get snmp-generic

List drivers

omniglass driver list

Lists the driver catalog, ordered alphabetically by label. Populates the driver picker on the product form. Gated by driver:read.

Example:

Terminal window
omniglass driver list

Preview a driver spec’s polls through an outpost

omniglass driver preview [flags]

Runs a driver spec’s polls once through the outpost named, against the target its inputs name, and answers with what each poll read: the samples its emits extracted, each emit that did not locate, and an excerpt of the raw answer, masked of every secret the preview used. Nothing is stored. The spec is a stored driver (driver) or an unsaved one (spec); an invalid spec is a 422 listing its findings, as validate-driver-spec gives them. A preview runs a poll that is its own request (http, https, an snmp get, a tcp line); a poll that rides a held session or a bound socket needs an attached endpoint (run-endpoint-poll). A secret input must be one the caller may bind (secret:bind), since the preview hands it to the target named. A preview whose transport and target name an endpoint the outpost holds runs on that endpoint’s lane, never beside its other requests and ahead of its scheduled polls; when that endpoint’s gate is closed (refused, unreachable, or disrupted by a command), or the probe reads the target’s host unreachable, it is a 409 naming the reason, and nothing is sent. An outpost that is not connected is a 503, one that does not answer in time a 504; too many runs in flight, here or on the outpost’s operator lanes, is a 429. Audited on the outpost and on each secret used. Gated by driver:preview.

FlagTypeDefaultDescription
--driverstring(none)A stored driver to preview, by name; or give spec
--inputsstring(none)The inputs an attach would take (host, port, a secret by name); a secret must be one you may bind (secret:bind), since a preview hands it to the target
--outpoststring(none)The outpost that runs the preview, by name: the one that reaches the target
--pollsstring(none)The polls to run, by name; absent runs every poll
--specstring(none)A driver spec to preview inline, unsaved; or give driver
--timeout-secondsint0How long the outpost may take for the whole preview (default 15, at most 30)

Example:

Terminal window
omniglass driver preview --outpost outpost

Rename a driver

omniglass driver rename <id> [flags]

Moves a custom driver’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official driver keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by driver:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass driver rename <id> --name name

Update a driver

omniglass driver update <id> [flags]

Patches a custom driver’s label or version. Official drivers are read-only (422). Gated by driver:update.

FlagTypeDefaultDescription
--labelstring(none)A new operator-facing label
--specstring(none)A replacement spec body; validated like the create’s, refused with a 422 when it cannot be interpreted
--versionstring(none)A new version string, e.g. 1.0.1

Example:

Terminal window
omniglass driver update snmp-generic

Check a driver spec without saving it

omniglass driver validate [flags]

Checks a driver spec by the rules a save applies (the strict parse, then validation against the live catalogs) and writes nothing. The answer lists every fault the validator can pin down, each pinned on the function it is in, the first always the fault a save would name; an empty list is a spec create-driver accepts. Gated by driver:read.

FlagTypeDefaultDescription
--specstring(none)The driver spec to check, as create-driver takes it

Example:

Terminal window
omniglass driver validate --spec <json>

Commands for the endpoint resource

Create an endpoint

omniglass endpoint create [flags]

Creates an endpoint owned by a component (or a server-hosted one, which needs an all-scoped grant), named by its transport; the optional label is the only identity string an operator types, and is where what the connection is FOR goes. A secret input hands that credential to the endpoint’s host, so it takes secret:bind on the secret: one the caller cannot read is a 422, one it can read but not bind a 403. The create scope cascades through the owning component. Gated by endpoint:create.

FlagTypeDefaultDescription
--componentstring(none)Owning component, by name or id; omit for a server-hosted endpoint (needs an all-scoped grant)
--driverstring(none)Attach this driver (by name or id): the spec derives the transport and params, and the endpoint’s tasks derive from the spec’s functions
--inputsstring(none)The inputs the driver’s spec declares (host, port, credentials as secret reference names); required ones must be supplied, defaults fill the rest
--labelstring(none)What an operator reads in lists (Control processor). Settable here because the name is derived from the transport, so it says how the device is reached and never what the connection is for
--out-of-bandboolfalseMark the endpoint a management path (a BMC, a management port) that answers through a reboot of its device, so a reboot’s hold leaves its gate open
--outpoststring(none)Outpost placement, by name or id
--paramsstring(none)Address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss); an attach derives them from the inputs instead
--transportstring(none)A transport name from the built-in transports (GET /transports); the endpoint is named by it, unique within the component. Exactly one of transport (a bare probe endpoint) or driver (an attach) is set

Example:

Terminal window
omniglass endpoint create

Delete an endpoint

omniglass endpoint delete <endpoint>

Deletes an endpoint, refused while a task still references it. Gated by endpoint:delete; read and delete scopes (through the component) drive the 404 versus 403 split.

Arguments: The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass endpoint delete 'boi.17c.415a.$comp.display-1/https'

Get an endpoint

omniglass endpoint get <endpoint>

Fetches an endpoint by its address (/) or uuid. An endpoint whose component is out of the caller’s read scope is a non-disclosing 404, and a name no endpoint the caller can see answers to is a 404 naming what was looked up, and a name more than one answers to is a 409 listing each match. Gated by endpoint:read.

Arguments: The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass endpoint get 'boi.17c.415a.$comp.display-1/https'

List endpoints in scope

omniglass endpoint list

Lists the endpoints whose owning component the caller may read (the component cascade). Gated by endpoint:read.

Example:

Terminal window
omniglass endpoint list

Commands for the poll resource

Run an endpoint’s poll now

omniglass endpoint poll run <endpoint> <poll> [flags]

Runs one of an attached endpoint’s polls now, on the outpost that holds the endpoint, outside its schedule (which is unchanged), and answers with what it read. The samples land as a scheduled run’s do. The run waits for the endpoint’s lane on the outpost, ahead of its scheduled polls and never beside another request to the endpoint; it borrows the endpoint’s held session where it has one and honors its gate: a gated endpoint refuses the run with the gate’s reason (409), a refusal, an unreachable reading from the endpoint’s probe, or a disruptive command (a reboot) the run was queued behind, and nothing is sent. A poll the endpoint does not have is a 404 naming the polls it has; an endpoint on no outpost is a 409. An outpost that is not connected is a 503, one that does not answer in time a 504; too many runs in flight, here or on the outpost’s operator lanes, is a 429. Audited on the endpoint. Gated by endpoint:run; read and run scopes (through the component) drive the 404 versus 403 split.

FlagTypeDefaultDescription
--timeout-secondsint0How long the outpost may take (default 15, at most 30)

Example:

Terminal window
omniglass endpoint poll run 'hq.west.level-2.huddle.$comp.panel-1/telnet' status

Retry an endpoint’s gated connections

omniglass endpoint retry <endpoint> [flags]

Moves the endpoint’s retry counter, which is part of its connection fingerprint: a gate a refusal retrying cannot fix holds (a wrong credential, a changed host key or certificate, a reply its driver declares terminal) lifts, the outpost recycles the endpoint’s held session, and every connection to it is attempted again. Fixing the secret, the address, the transport, the tls mode or the driver’s login needs no retry: the change moves the fingerprint itself. An unrelated edit (a label) moves nothing. host_key names a key to trust, the one the endpoint’s transport pins (the offered key a key refusal names): an ssh host key, or a tls or https endpoint’s certificate public key, which such an endpoint also takes as certificate. It becomes the declared pin and recycles the session onto it whatever its state, an audited acceptance of the change. While the endpoint’s gate names an offered key, the key must be that key, so a trust confirmed against a refusal the record has since moved past is a 409 and changes nothing. Audited, a trusted key with the pin it replaced (old) and the pin it set (new). Gated by endpoint:retry; read and retry scopes (through the component) drive the 404 versus 403 split.

Arguments: The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--certificatestring(none)A tls or https endpoint only: the same as host_key, named for the certificate (the offered_key a certificate refusal names). It becomes the endpoint’s declared tls-certificate pin, held to the same rule (the exact offered key while a key refusal holds), and the session redials onto it. Omit to retry with the pin unchanged
--host-keystring(none)The SHA256 fingerprint of a changed key the operator now trusts, the key the endpoint’s transport pins (the offered_key a key refusal names on the component’s reachability read): an ssh endpoint’s host key, which becomes its declared ssh-host-key, or a tls or https endpoint’s certificate public key, which becomes its declared tls-certificate. The session redials onto it. While a key refusal holds, it must be that exact offered key: any other is a 409 that changes nothing (the refusal on record is the outpost’s last word, so to trust a key the component presents since, retry without a key first). With no key refusal held it declares a pin ahead of time. Omit to retry with the pin unchanged

Example:

Terminal window
omniglass endpoint retry 'boi.17c.415a.$comp.display-1/https'

Rotate a webhook endpoint’s token

omniglass endpoint rotateToken <endpoint>

Mints a webhook endpoint’s token anew (#1024): a post bearing the old one answers 404 at once, exactly as a token that never existed, and the new one is revealed through the endpoint’s secret, to give the sender. A token deleted with its secret is minted again. A dialed endpoint has no token, a 422. Audited on the endpoint and the secret. Gated by endpoint:update; read and update scopes (through the component) drive the 404 versus 403 split.

Arguments: The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass endpoint rotateToken 'boi.17c.415a.$comp.display-1/https'

Update an endpoint

omniglass endpoint update <endpoint> [flags]

Patches an endpoint’s outpost placement, params, label, out-of-band mark, or (driver-attached) its connection inputs in place: the host, port and attached secret references (a secret taking secret:bind, as on create), validated against the driver’s declared inputs, the endpoint’s tasks re-derived in the same transaction. A value the driver refuses is a 400 naming the field. An empty label clears it and the surface falls back to the derived name. Gated by endpoint:update; read and update scopes (through the component) drive the 404 versus 403 split.

Arguments: The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--inputsstring(none)A driver-attached endpoint’s inputs, edited in place (#1061): the host, the port, an attached secret’s reference name, any input the driver declares. Merged over the stored inputs and validated against the driver; a value it refuses is a 400 naming the input. Changing where a credential is sent needs the caller to hold secret:bind on it, a 403 naming secret:bind without it
--labelstring(none)A new label; an empty string clears it, and the surface falls back to the derived name. Omit to leave it alone
--out-of-bandboolfalseMark the endpoint a management path that answers through a reboot of its device (true), or an ordinary one (false). Omit to leave it alone
--outpoststring(none)Reassign the outpost placement, by name or id
--paramsstring(none)Replace the address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss). On a driver-attached endpoint only the timeout is set here: its address derives from its host and port inputs
--transportstring(none)The transport: a driver-attached endpoint takes only one its driver speaks

Example:

Terminal window
omniglass endpoint update 'boi.17c.415a.$comp.display-1/https'

Commands for the event-rule resource

Create an event rule

omniglass event-rule create [flags]

Authors a rule that fires on each component it watches when its sample key meets the fire criteria for the fire sustain, and clears when the clear criteria (or the negation of fire) holds for the clear sustain. It names the event type it writes when it fires (required) and, optionally, when it clears; with a severity it also raises an alarm while it is firing, and without one it is informational. Criteria are expressions over the sample (value, key, instance, component.name, component.type) yielding true or false; a metric rule with a sample_window also reads window, the series’ points over that span, oldest first, so slope, growth and span can fire it on a sustained trend (criteria that read window need a sample_window, and a sample_window needs criteria that read it), and any metric rule may read age, how long the series has run in seconds (a process’s own key, since the process started), to hold a trend until a fill or a restart’s refill is past; a body may give {expr} or the short form {op, value}, and the answer is always {expr}. The key must be a registered property or metric, the criteria must compile against its lane (an unknown name or a result that is not a bool is a 422 naming the criteria, line and column), the event types registered and the severity, when given, a level that exists (else 422); a name already taken is a 409. Audited. Gated by rule:create, with an all-scope grant.

FlagTypeDefaultDescription
--clear-criteriastring(none)The criteria that ends it: {expr} or {op, value}; absent clears on the negation of fire_criteria, !(fire)
--clear-event-typestring(none)The event type the rule writes when it clears, by name (rule-cleared is the generic one); absent, it writes none
--clear-sustainstring(none)A Go duration; empty is 0s
--descriptionstring(none)What the rule watches for and why
--enabledboolfalseDefaults to true
--fire-criteriastring(none)The criteria the rule fires on: {expr}, or the short form {op, value}
--fire-event-typestring(none)The event type the rule writes when it fires, by name (rule-fired is the generic one)
--fire-sustainstring(none)A Go duration; empty is 0s
--labelstring(none)A human label; also the alarm message when message is empty
--messagestring(none)The alarm message; empty uses the label or the name
--namestring(none)The rule’s name (lowercase kebab)
--sample-keystring(none)The property or metric the rule reads
--sample-windowstring(none)A metric rule’s trend window, a Go duration up to 168h: the criteria read window, the series’ points over it, oldest first; empty is 0s, no window
--selectorstring(none)The components the rule watches (component types and components); absent is every component
--severitystring(none)The severity level the alarm is raised at, by name; absent or empty, the rule is informational and raises no alarm

Example:

Terminal window
omniglass event-rule create --fire-criteria <json> --fire-event-type fire_event_type --name name --sample-key sample_key

Delete an event rule

omniglass event-rule delete <name>

Removes an operator rule; an official rule is read-only (409). Audited. Gated by rule:delete, with an all-scope grant.

Example:

Terminal window
omniglass event-rule delete <name>

Get an event rule

omniglass event-rule get <name>

Returns one event rule by name, with its live state as counts over the components the caller may read. Gated by rule:read.

Example:

Terminal window
omniglass event-rule get <name>

List event rules

omniglass event-rule list

Lists the event rules, the authored config that raises alarms, each with its live state as counts (firing, open_alarms, pending_streaks) read in the same query. Rules read like a catalog: every rule is listed whatever the caller’s scope, while the counts cover only components the caller may read. Gated by rule:read.

Example:

Terminal window
omniglass event-rule list

Preview an event rule

omniglass event-rule preview [flags]

Judges a candidate rule (sample key, selector, criteria) without writing anything, as the ingest would have with no sustains (the answer says they are ignored): over each series it selects on components the caller may read, from the state its newest deciding sample in the 7 days before the window set (state_unknown when there is none), through every sample in the last 24 hours that the ingest would have judged (a late sample older than one before it decides nothing). Answers the edges it would have written and the series it would hold in force now. Its reads are index probes per series, capped at row_cap window samples taken a whole series at a time: series_judged of series_total, and truncated when the cap stopped it. A selector naming a component the caller cannot read is the same 422 as one that does not exist. Criteria take {expr} or {op, value}; one that does not compile is a 422 naming the criteria, line and column, and criteria that read window or age (a trend rule’s) are a 422, since each sample is judged alone. Gated by rule:read.

FlagTypeDefaultDescription
--clear-criteriastring(none)The criteria it clears on; absent, the negation of fire_criteria
--clear-sustainstring(none)Accepted and ignored, like fire_sustain
--fire-criteriastring(none)The criteria it fires on: {expr}, or the short form {op, value}
--fire-sustainstring(none)Accepted so a rule body previews as it is, and ignored: a preview judges each sample alone
--sample-keystring(none)The property or metric the candidate rule reads
--selectorstring(none)The components it watches; absent or empty, every component

Example:

Terminal window
omniglass event-rule preview --fire-criteria <json> --sample-key sample_key

Rename an event rule

omniglass event-rule rename <name> [flags]

Moves an operator rule’s name, the address an operator types. A separate act from an update, because it breaks bookmarks and integration config outside this system; inside it nothing breaks, since every reference holds the rule’s uuid (an alarm’s raised_by_rule_id and dedup key, a firing, a streak, an event’s derived_by_rule_id). Not a material change: no version bump, streaks keep running and firings stay. An event keeps the name it was written under (derived_by_rule); the rule’s next events carry the new one. An official rule keeps its name (409), a taken name is a 409, an illegal or uuid-shaped one a 422. Returns the rule with its uuid. Audited. Gated by rule:update, with an all-scope grant.

FlagTypeDefaultDescription
--namestring(none)The rule’s new name, unique among rules (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass event-rule rename <name> --name name

Commands for the state resource

Get an event rule’s live state

omniglass event-rule state list <name>

What a rule holds right now: its firings (one per component and instance, whether or not it raises an alarm), the alarms it raised that are still open, each on a component and instance, its streaks waiting out a sustain, and when it last judged an ingested sample. Only firings, alarms and streaks on components the caller may read are listed. Gated by rule:read.

Example:

Terminal window
omniglass event-rule state list <name>

Update an event rule

omniglass event-rule update <name> [flags]

Patches a rule (an absent field is unchanged), bumping its version; disabling it stops new opens. Criteria take {expr} or the short form {op, value}, compiled as on create (a 422 names the criteria, line and column). An empty severity makes the rule informational and an empty clear_event_type drops its clear event; the fire event type cannot be emptied (422). Official rules are read-only (409). Audited. Gated by rule:update, with an all-scope grant.

FlagTypeDefaultDescription
--clear-criteriastring(none)The criteria that ends it: {expr} or {op, value}; absent clears on the negation of fire_criteria, !(fire)
--clear-event-typestring(none)The event type the rule writes when it clears, by name; empty writes none
--clear-negatesboolfalseDrop the clear criteria, so the rule clears on the negation of its fire criteria
--clear-sustainstring(none)How long the clear criteria must hold, a Go duration; empty is 0s
--descriptionstring(none)What the rule watches for and why
--enabledboolfalseWhether the rule evaluates; defaults to true on create
--fire-criteriastring(none)The criteria the rule fires on: {expr}, or the short form {op, value}
--fire-event-typestring(none)The event type the rule writes when it fires, by name; it cannot be emptied
--fire-sustainstring(none)How long the fire criteria must hold, a Go duration (e.g. 30s); empty is 0s
--labelstring(none)A human label; also the alarm message when message is empty
--messagestring(none)The alarm message; empty uses the label or the name
--sample-keystring(none)The property or metric the rule reads
--sample-windowstring(none)How far back the criteria’s window reads the metric’s series, a Go duration up to 168h; empty is 0s, no window
--selectorstring(none)Replace the components the rule watches; absent leaves them unchanged, and an empty selector watches every component
--severitystring(none)The severity level the alarm is raised at, by name; empty makes the rule informational (no alarm)

Example:

Terminal window
omniglass event-rule update <name>

Commands for the event-type resource

Create an event type

omniglass event-type create [flags]

Registers a custom event type (official=false). The name must be a single kebab token, e.g. call-started. Gated by event_type:create.

FlagTypeDefaultDescription
--descriptionstring(none)What the occurrence means
--labelstring(none)A human label
--namestring(none)The event type name (lowercase kebab)
--payload-schemastring(none)A JSON Schema fragment for the payload

Example:

Terminal window
omniglass event-type create --name name

Delete an event type

omniglass event-type delete <name>

Removes a custom event type by name. Official event types are read-only (409), and so is a type still in use: one that recorded events or an event rule’s fire or clear event type names is a 409 until nothing names it. Gated by event_type:delete.

Example:

Terminal window
omniglass event-type delete <name>

Get an event type

omniglass event-type get <name>

Returns one event type by name. Gated by event_type:read.

Example:

Terminal window
omniglass event-type get <name>

List event types

omniglass event-type list

Lists every registered event type (official and custom). The catalog is fleet-wide reference data. Gated by event_type:read.

Example:

Terminal window
omniglass event-type list

Update an event type

omniglass event-type update <name> [flags]

Patches a custom event type’s label, description, or payload schema. Partial by default: the fields present in the body change and the rest are left alone. payload_schema is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; label and description clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. The name is fixed at creation. Official event types are read-only. Gated by event_type:update.

FlagTypeDefaultDescription
--descriptionstring(none)What the occurrence means
--labelstring(none)A human label
--payload-schemastring(none)A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name payload_schema in update_mask with no value here to CLEAR it
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (payload_schema back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass event-type update <name>

Commands for the expression resource

Validate an expression

omniglass expression validate [flags]

Compiles an expression against a registered site’s environment and answers whether it compiles, with positioned diagnostics, and the site’s bindings, admitted builtins and run budget, all generated from the site’s declaration. For criteria a sample key is required, and types the value (a metric is a number; a property is text, or a bool for a bool property). For calc the key is the rule’s output key, typing the result, and the rule’s inputs (and owner_kind, component by default) give the bindings, each input’s alias bound to the list of its key’s type (a system also binds members, one record per member); an input that is unknown, or an alias that is not an identifier, is reserved or repeats, is a 422; a name the expression uses that no alias binds is a diagnostic carrying that name (unbound); the answer’s value_type so reveals a key’s lane and data type to a rule:read holder, as the rule list already does. Compiles without the engine’s program cache and stores and runs nothing. An unknown site, a missing or unknown key is a 422. Gated by rule:read.

FlagTypeDefaultDescription
--inputsstring(none)For calc (required there), the rule’s inputs: each bound by its alias, typed by its key (by name or uuid)
--keystring(none)The sample key that types the expression (required at both sites). For criteria, the key the rule reads: its lane and data type type the value (a metric is a number; a property is text, or a bool for a bool property). For calc, the rule’s output key: its type is the result the reduce must yield
--owner-kindstring(none)For calc, what the rule derives on: each input binds by its alias as the list of its current values (one per instance on a component, every member’s on a system); a system also binds members, one record per slot-bound member with value. and has. per input; defaults to component
--sitestring(none)Where the expression is written: action, an action rule’s when; calc, a calc rule’s reduce; criteria, an event rule’s fire_criteria or clear_criteria
--sourcestring(none)The expression

Example:

Terminal window
omniglass expression validate --site site --source source

Commands for the file resource

Create a file from an upload

omniglass file create [flags]

Stores the uploaded bytes as a content-addressed blob (identical bytes dedup to one blob) and writes the file handle pointing at it. Gated by file:create; a sensitive file additionally needs the admin tier (file:create:admin).

FlagTypeDefaultDescription
--contentstring(none)The file bytes, base64-encoded
--content-typestring(none)The MIME type used to serve the file
--namestring(none)The file’s filename, which is already the label an operator reads (no path separators)
--sensitiveboolfalseAdmin-only visibility; defaults false. Setting true requires the admin tier

Example:

Terminal window
omniglass file create --content content --content-type content_type --name name

Delete a file

omniglass file delete <file>

Removes a file handle. The underlying blob is left in place (garbage collection is a later slice). A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:delete.

Example:

Terminal window
omniglass file delete codec-firmware-2.1.4.txt

Download a file’s bytes

omniglass file download <file>

Returns a file’s bytes (base64-encoded) read from the blob it points at, the hash verified on read. A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:read.

Example:

Terminal window
omniglass file download codec-firmware-2.1.4.txt

Get a file’s metadata

omniglass file get <file>

Returns one file handle’s searchable metadata (no bytes). A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:read.

Example:

Terminal window
omniglass file get codec-firmware-2.1.4.txt

List files

omniglass file list

Lists the file handles the caller may see (searchable metadata, no bytes). Sensitive files appear only to the admin tier. Gated by file:read.

Example:

Terminal window
omniglass file list

Liveness and database-reachability probe

omniglass healthz

Reports process health and the database leg, pinged through the Storage Gateway. Public: the liveness probe carries no operator data.

Example:

Terminal window
omniglass healthz

A working omniglass on Docker, to learn on

Commands for the calendar resource

What the lab’s simulator intends in a window

omniglass lab calendar list [flags]

The lab calendar (#2757) for a window: the meetings and scripted problems every simulated room acts out, the ground truth to lay beside what Omniglass detected. Derived from the lab’s scenario and seed (the same calendar the simulator computes), never stored or learned from collected data. Lab only: a server that is not a lab answers 404. Gated by simulation:read; entries are limited to rooms whose system is in the caller’s system read scope. The window is at most 31 days; a wider one is a 422. site, building, room and system narrow it further.

FlagTypeDefaultDescription
--buildingstring(none)Only rooms in this building.
--endstring(none)End of the window (RFC 3339), after start and at most 31 days past it.
--roomstring(none)Only this room.
--sitestring(none)Only rooms at this site.
--startstring(none)Start of the window (RFC 3339).
--systemstring(none)Only the room of this system, by name.

Example:

Terminal window
omniglass lab calendar list

Measure a running scale lab: rows a minute, growth, WAL a sample, CPU and memory, ingest lag, redeliveries, the busiest ingest lane’s busy fraction, fleet view and system page times, the retention drain and each kind’s delivery loss, once or sampled on an interval

omniglass lab measure [flags]

Measures a scale lab (omniglass lab run --scenario corporate --systems N) over a stated window and prints one table: rows a minute per lane, table and WAL growth a day extrapolated from the window, CPU and memory per container, WAL bytes a sample, ingest lag from probe to row (p50, p95, p99), consumer redeliveries, the busiest ingest lane’s busy fraction and service time a batch, the console’s fleet view response times, the retention pass’s drain rate, each telemetry kind’s delivery loss across the outpost hop and the ingest hop (in, out, loss, deduplicated and the cause of any loss), the outpost lane and the push lane apart, each polled protocol’s loss across the sim hop (the requests the simulated endpoints settled against the replies that reached the outpost), and the outpost lane’s end-to-end loss a kind. It writes the same figures as JSON so two runs compare.

With no —systems it measures the scale lab already running. With —systems it brings up a throwaway scale lab of that size, measures it, and removes it, so the one command is the whole run.

When no sample probed in the window had landed by its end, the ingest lag cell reads not measured, with the reason and the age of the newest landed sample under the table, and every other figure still prints. The consumer lane row is read from the server’s periodic ingest lane log line, a line a lane, and needs two of a lane’s tallies, 30 s apart, inside the window; a window too short to hold them reads not measured, with the reason under the table.

The delivery read waits, up to —settle-timeout, until every boot that minted a batch in the window (each outpost’s, and the server’s for the push lane) has landed one minted after it and the server’s ingest lanes have acknowledged, landed or dropped at the bound, every batch the stream held once all of those were published (its ack floor past the stream’s last sequence), so a consumer that never empties under steady load still settles; then it reconciles each batch’s ledger against what landed. The outpost hop is what each outpost minted against what its spool shipped: a batch its spool dropped (overflow, age, refused by the bus) and items it lost before any batch carried them (self-log overflow, encode failure) read under their cause. The ingest hop is what the outpost (or the server, for the push lane) shipped against what was stored. A healthy lab reads loss 0 for every kind on both hops; a boot that did not settle prints unsettled with its outpost (or as the push lane), and no ratio is read from it. A boot its outpost followed with another boot (the outpost restarted with batches still spooled) is read as far as it landed and prints unshipped: what it held never shipped, and nothing landed says how much.

Every database read the measure makes runs under what its run has left, and never longer than ten minutes: the database itself stops a read at that bound, and a run that is interrupted cancels the read in flight, so no measure leaves a query running against the lab it measured.

The retention probe plants a backlog of aged property rows and restarts the server to run its pass; —backlog 0 skips it and leaves the server alone. A lab started before this build’s lab run does not record commit timestamps, which the ingest lag reads: bring it up again.

—page-clients N times the console’s system page as an operator feels it: N clients each load the page —page-loads times across the window, making every read a cold open of the page makes, timed from the first request to the last answer. A load with any read that does not answer 200 counts as an error and stays out of the times.

—every samples the lab already running on an interval instead of measuring it once. The lab is found and warmed up once; then every —every one window is measured and written as one JSON line holding the same fields at the same paths as —json, plus the sample’s sequence, end time and the server’s uptime. Lines go to —append (opened for append, so a series resumes into the same file) or to standard output. —samples stops after that many; 0 samples until interrupted, finishing the sample in flight. A sample that fails writes a line with its error and no figures, and the run goes on. Sampling skips the retention probe, which restarts the server.

FlagTypeDefaultDescription
--appendstring(none)append each sample’s line to this file, created if missing; empty writes to standard output
--backlogint64150000aged property rows the retention probe plants; 0 skips the probe and its server restart (0 when sampling)
--drain-timeoutduration3m0show long the retention probe waits for the pass to clear the backlog
--everyduration0ssample the running lab on this interval, one JSON line a sample; 0 measures once
--fleet-readsint100how many timed fleet view reads, spread over the window
--jsonstringlab-measure.jsonalso write the figures here as JSON; empty writes none
--page-clientsint0how many clients load the console’s system page at once across the window; 0 skips the load
--page-loadsint20how many timed system page loads each client makes, spread over the window
--page-systemstring(none)the system whose page the clients load, by name; empty loads the fleet view’s first
--samplesint0stop after this many samples; 0 samples until interrupted
--scenariostringcorporatethe scale scenario a —systems lab runs
--settle-timeoutduration5m0show long the delivery read waits for every outpost’s and the push lane’s batches from the window to land before naming a boot unsettled; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more
--systemsint0bring up a throwaway scale lab of this many systems, measure it and remove it; 0 measures the one already running
--warmupduration2m0show long the lab runs before the window starts (once, before the first sample)
--windowduration5m0sthe window the rates, growth and usage are read over

Check a fresh scale lab against the committed performance baseline, regenerate it, or measure each driver’s cost

Measure fresh scale labs and write the size’s baseline from them

omniglass lab perf baseline [flags]

Brings up —runs throwaway scale labs of the size, one after another, and writes the baseline the check compares with: each gated figure’s median, spread and values, the inputs the runs measured with and the host they ran on. It refuses, naming each, when an exact figure is not 0, a figure was not measured in every run, or a figure’s runs spread past its tolerance, which a check could never gate. The baseline is a host’s: generate it on the host class it gates, and commit the file in a reviewed change.

—systems, —warmup, —window and —fleet-reads override the size’s inputs, for a throwaway baseline a quick check can run against; the committed baselines use the size’s own.

FlagTypeDefaultDescription
--appendstring(none)keep each fresh run’s report as a line in this file, which —samples reads again
--fleet-readsint0override the size’s timed fleet view reads; 0 is the size’s
--imagestring(none)the omniglass image each lab runs (lab run’s —image); empty is this binary’s own build
--lastint0with —samples: how many samples from the series’ end to read; 0 reads —runs
--outstring(none)where to write the baseline; empty is the size’s committed file under internal/labfootprint/baseline
--runsint3how many throwaway labs to measure, one after another; every gated figure is their median
--samplesstring(none)read a sampling run’s series (lab measure —every —append) in place of fresh labs
--settle-timeoutduration5m0show long each run’s delivery read waits for its window’s batches to land; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more
--sizestring300the gated size, its rung on the ladder: 300 (corporate at 300 systems) or 1000 (corporate at 1000)
--systemsint0override the size’s systems; 0 is the size’s
--warmupduration0soverride the size’s warmup; 0 is the size’s
--windowduration0soverride the size’s window; 0 is the size’s

Measure fresh scale labs and fail when a figure regressed past the baseline

omniglass lab perf check [flags]

Brings up —runs throwaway scale labs one after another, each measured with the baseline’s own inputs (scenario, systems, warmup, window and fleet reads, with the retention probe off), and compares the runs with the baseline. It prints one row a figure and exits nonzero when any reads fail, or when the runs are invalid.

The exact figures (every closed-loop gap, an ingest lag not measured, redeliveries, each kind’s delivery loss) fail at any value but 0. The host-independent figures (rows a minute, growth and WAL per system, samples a batch) gate on any host. The host-dependent figures (latency, CPU, memory, fleet view time) gate only on the host the baseline was generated on; on another they read reported. A gated figure is the median of the runs, and fails only past its tolerance and past the runs’ combined spread. Runs that spread past the tolerance read noisy, which does not fail. A figure better than its tolerance reads improved: refresh the baseline.

Runs are invalid, and no figure is compared, when they measured another fleet, window or device set than the baseline’s, or an outpost restarted, changed fleet or carried an impairment during the window.

FlagTypeDefaultDescription
--appendstring(none)keep each fresh run’s report as a line in this file, which —samples reads again
--baselinestring(none)the baseline to check against; empty is the size’s committed one under internal/labfootprint/baseline
--imagestring(none)the omniglass image each lab runs (lab run’s —image); empty is this binary’s own build
--jsonstring(none)also write the verdict here as JSON
--lastint0with —samples: how many samples from the series’ end to read; 0 reads —runs
--runsint3how many throwaway labs to measure, one after another; every gated figure is their median
--samplesstring(none)read a sampling run’s series (lab measure —every —append) in place of fresh labs
--settle-timeoutduration5m0show long each run’s delivery read waits for its window’s batches to land; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more
--sizestring300the gated size, its rung on the ladder: 300 (corporate at 300 systems) or 1000 (corporate at 1000)

Measure what each shipped driver’s polls cost an outpost, and write the table the docs render

omniglass lab perf drivers [flags]

Brings up a throwaway lab with no fleet and, for each shipped driver in turn, an outpost of its own with the simulator beside it in its network namespace, so the outpost’s cgroup holds only the outpost’s work. Each driver is measured idle, then at one, two and three times —step-tasks poll tasks; the table is the slope of the outpost’s CPU over every step and of its memory over the loaded steps (the jump from idle is a one-off warm cost), with the threads’ own CPU per run from poll-cpu-time beside it. A driver whose memory does not fit a line is swept again on a fresh outpost at four times the step, up to —max-step-tasks, since a cheap driver’s few KiB a task is inside the noise at a small step. A figure that still does not fit is listed as not measured, with why. The sweep takes hours: each step’s window holds the driver’s slowest poll.

The table is a host’s: run it on the host class it describes, then run go run ./cmd/labgen and commit both files in a reviewed change.

FlagTypeDefaultDescription
--imagestring(none)the omniglass image the lab and the sweep’s outposts run (lab run’s —image); empty is this binary’s own build
--max-step-tasksint6400the biggest step a driver whose memory does not show is swept again at; 0 sweeps each driver once
--onlystringSlice[]sweep only these drivers; empty sweeps every shipped one
--outstringinternal/labfootprint/drivercost/shipped.jsonwhere to write the table, relative to the working directory: run it from the repository’s root
--step-tasksint400about how many poll tasks each step adds
--warmupduration2m0show long each step runs before it is measured
--windowduration2m0seach step’s measured window; a driver’s slowest poll lengthens it

Bring up a lab: omniglass, its database and an outpost collecting from a simulated fleet, until Ctrl-C

omniglass lab run [flags]

Brings up a working omniglass on this machine’s Docker as one compose project of three containers: Postgres, the server, and the edge outpost edge-hq running the simulator in its own process, serving the seeded dev fleet. The outpost collects from the fleet for real, and impairments work. It prints what it is doing while it comes up, then the console’s address and the login, and holds until Ctrl-C, which removes the containers and the network and keeps the data for the next run.

Docker is the only requirement. Only the console is published, on 127.0.0.1 (—listen moves it, and says what that exposes). A binary built by make runs the image the same make built; a release binary runs its release’s image. The lab’s database is marked as a lab’s, and a lab and a real server refuse each other’s database.

FlagTypeDefaultDescription
--freshboolfalseremove the lab’s data first and start over from the seed
--imagestring(none)run this omniglass image instead of the one this binary was built with (env OMNIGLASS_LAB_IMAGE); one that is not this binary’s own build is warned about
--keepboolfalsea scale lab: keep its data when it stops, so the next run with the same scenario, size and —keep picks up where it left off (—fresh starts over)
--listenstring127.0.0.1the address the console is published on; anything but loopback exposes the lab, and its well-known login, to your network
--omnibot-key-envstring(none)run omnibot on a live model (OpenRouter by default) with the key in this environment variable, e.g. OPENROUTER_API_KEY, handed to the server as its env secret lab-omnibot-key; without it, or the shell’s own OMNIGLASS_SETTING__ASSISTANT__ and OMNIGLASS_SECRET__ variables, omnibot plays the recording —omnibot-replay names
--omnibot-replaystring(none)the recording omnibot plays when no live model is configured, by name (corporate-outage, default); default: the one written for the scenario’s fleet (corporate-outage for corporate, else default)
--planboolfalseprint the scale lab scenario’s resolved plan (sites, systems per standard, components per product) and exit, starting nothing
--portint8080the console’s port on this machine; 0 lets Docker pick a free one, printed when the lab is ready
--scenariostringdevthe fleet the lab seeds on its first run (the seed-dev command lists them), or a scale lab scenario (corporate) sized by —systems
--systemsint0how many systems a scale lab scenario resolves to

Judge a 3,000-system soak from the platform’s own alarm history

Print pass or fail for a soak: no platform alarm left open or open too long, every loss ratio at 0

omniglass lab soak verdict [flags]

Judges a soak from what the platform says about itself, and nothing else: it reads, through the API (—server and —token, or $OMNIGLASS_SERVER and $OMNIGLASS_TOKEN), the platform system’s alarm history and the Platform health page, and prints pass or fail with every reason. The token needs read over outposts, systems and components, all of them, since a verdict from part of the page would pass what it could not see.

Pass: the soak ran at least 7 days (—since to —until), no platform alarm is still open, none raised in the window was open longer than —tolerance, and every loss ratio on the page (each hop, kind and outpost, the newest window and the last hour, the end to end, the worklist pull) is 0. A reading that cannot answer fails: no build reported, no loss ratio on the page, an alarm history the API cut short, or two builds among the servers.

With —record-dir it also writes the release record, one file named for the build, which the release commits: docs/src/content/soak-records from the repository’s root. The exit status is 1 on a fail.

FlagTypeDefaultDescription
--record-dirstring(none)also write the release record into this directory, one file named for the build (docs/src/content/soak-records is where releases keep them)
--sincestring(none)when the soak started, an RFC 3339 timestamp; required
--toleranceduration30m0sthe longest a platform alarm may stay open and still pass
--untilstring(none)when the soak ended, an RFC 3339 timestamp; empty is now

Commands for the location resource

Create many locations in one write

omniglass location batchCreate [flags]

Creates locations in one transaction: each request is the body POST /locations takes, run as that create runs it, in order, so a location may name as its parent one an earlier request creates. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /locations maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by location:create, and each request is held to that scope as its single create is.

FlagTypeDefaultDescription
--requestsstring(none)The locations to create, each the body POST /locations takes, in order: a parent before its children, which then name it as their parent
--validate-onlyboolfalseRun every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written

Example:

Terminal window
omniglass location batchCreate --requests <json>

Check a location name

omniglass location checkName [flags]

Reports whether a proposed name is a valid slug and currently free within the given placement (under the given parent, or among roots when no parent is given). Advisory (Save is still gated by the unique constraint). Gated by location:update.

FlagTypeDefaultDescription
--locationstring(none)The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check
--namestring(none)The proposed name to check
--parentstring(none)The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check

Example:

Terminal window
omniglass location checkName --name name

Create a location

omniglass location create [flags]

Creates a location, optionally under a parent (a root needs an all-scoped grant). Omit name and the platform generates one from the location_type’s name rule, taking the lowest free ordinal among the siblings in that placement; a type carrying no name rule refuses (422), since a building’s real name is not something the platform can know. The parent resolves within the caller’s location:read scope before its location:create scope: a parent the caller cannot read is the same 404 as one that does not exist, so the answer never discloses a location outside the caller’s read, and a parent the caller can read but not create under is a 403. Gated by location:create.

FlagTypeDefaultDescription
--expected-namestring(none)The name a create form previewed (POST /locations:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the location_type’s name rule moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422.
--labelstring(none)What an operator reads; the name is the address
--location-typestring(none)The location_type, by name or uuid (campus, building, …)
--namestring(none)Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the location_type’s name rule.
--parentstring(none)Parent location name; omit for a root location

Example:

Terminal window
omniglass location create --location-type location_type

Start a subtree of locations from a template

omniglass location createFromTemplate [flags]

Creates a subtree of locations from a location template under a parent location (or as a new top), each location’s type checked against its parent type’s allowed parents as this fleet has them (your fork of a shipped type included), each named by the template, the request (the root) or its type’s name rule, and the systems the template puts in them, staffed as a system template is, unattached. One transaction: all of it or none, every piece in your own scope with its own audit row carrying from_template. Gated by location:create; when the subtree carries systems it also needs system:create, system:read, system:update, component:create and component:update, and standard:create when a standard is created from its template. A type this fleet does not hold, or a placement its types refuse, is a 422 naming the type or the pair.

FlagTypeDefaultDescription
--labelstring(none)The subtree root’s label
--namestring(none)The subtree root’s name; omitted takes the template’s, else its type’s name rule mints one
--parentstring(none)The location the subtree sits under, by name or dotted path; omitted makes it a new top
--templatestring(none)The location template, by name

Example:

Terminal window
omniglass location createFromTemplate --template template

Delete a location

omniglass location delete <name>

Deletes a location, refused (409) while it still has child locations or is still referenced elsewhere. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by location:delete; read and delete scopes drive the 404 versus 403 split.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location delete <name>

Get a location

omniglass location get <name>

Fetches a location by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by location:read.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location get <name>

Commands for the health resource

Read a location’s health

omniglass location health list <name> [flags]

The location’s current health, worst-wins over every system placed anywhere beneath it, with those systems and their health as the drill-down (the system health read names the slot, which occupant is down, and the alarm). Transitions are the recorded edges inside since..until (default the last 30 days); since after until is a 400. Gated by location:read; an out-of-scope location is a non-disclosing 404.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--sincestring(none)Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent
--untilstring(none)Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since

Example:

Terminal window
omniglass location health list <name>

List locations in scope

omniglass location list

Lists the locations the caller may read, each filtered to its scope subtree. Gated by location:read.

Example:

Terminal window
omniglass location list

List tags on a location

omniglass location listTags <name>

Lists the tags bound directly on a location (not the resolved cascade). Gated by location:read.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location listTags <name>

Commands for the metric resource

List a location’s effective metrics

omniglass location metric list <name>

Every metric the location’s type declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the location (from_contract false). Gated by location:read; an out-of-scope location is a non-disclosing 404.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location metric list <name>

Move a location

omniglass location move <name> [flags]

Re-parents a location (a tree move): parent is required (422 if omitted), cycle-guarded, and placement-validated against the resolved location_type. Moving to root is not supported (422): MoveLocation gains no clear-to-root capability locations have never had. A separate act from update, and a separately grantable one (location:move), because a placement change is an authorization act, not a label edit. Recorded under its own audit verb, move, distinct from update. Does not recompute health. A taken name at the destination is a 409. A move can RENAME the location: a platform-generated name is scoped to its parent bucket, so a move that changes the parent re-mints the name and the ordinal under the new parent, from the same location_type name rule. A move that re-states the current parent leaves the name alone, and an operator-typed name is never touched. Gated by location:move; the read and move scopes drive the 404 versus 403 split.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--parentstring(none)Re-parents the location (a tree move) to this location name; cycle-guarded and placement-validated. Moving to root is not supported.

Example:

Terminal window
omniglass location move <name>

Preview a location label recompute

omniglass location previewLabels

Lists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by location:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.

Example:

Terminal window
omniglass location previewLabels

Commands for the property resource

Clear a property on a location

omniglass location property delete <name> <property>

Removes the location’s declared value, so the property falls back to the location type contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the location never set is a 404. Gated by location:update; read and update scopes drive the 404 versus 403 split.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location property delete <name> <property>

List a location’s effective properties

omniglass location property list <name>

Every property the location’s type declares, resolved to the location’s own value or the contract default (is_set marks a declared value), plus any property set directly on the location (from_contract false), in the component and system properties read’s shape. A location owns no observed sample, so a row’s reconciliation carries want and never is. Gated by location:read; an out-of-scope location is a non-disclosing 404.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location property list <name>

Set a property on a location

omniglass location property update <name> <property> [flags]

Declares a value for the property on this location, overriding the location type contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by location:update; read and update scopes drive the 404 versus 403 split.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--valuestring(none)The value to declare, shape given by the property’s data_type

Example:

Terminal window
omniglass location property update <name> <property> --value <json>

Recompute location labels

omniglass location recomputeLabels

Applies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by location:update.

Example:

Terminal window
omniglass location recomputeLabels

Remove a tag value from a location

omniglass location removeTag <name> [flags]

Removes a key’s value from a location. Gated by location:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key to remove

Example:

Terminal window
omniglass location removeTag <name> --key key

Rename a location

omniglass location rename <name> [flags]

Moves the location’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by location:rename; the read and rename scopes drive the 404 versus 403 split.

Arguments: The location’s current name, a dotted address, or its uuid; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--namestring(none)The new name, unique within its placement (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass location rename <name> --name name

Draft the name and label a location create would store

omniglass location renderLabel [flags]

The location tier of :renderLabel on components. Drafts the name and the label a location create would stamp, allocating nothing. A shipped fleet answers from the global location rule, which reads the location’s own name as words and titles it, so a location named north-wing drafts as North Wing; an empty label means no rule resolves at any tier, and the surface falls back to the name. Omitting name refuses (422) a location_type with no name rule, the same refusal a nameless create gives. Gated by location:create; the parent resolves within the caller’s location:create scope, because a location’s two placement buckets are under a parent or at the root and that is where the ordinal is read from. Omitting parent is the ROOT bucket, which a create refuses without an all-scoped grant, so the draft refuses it too (403) rather than reporting which names the fleet root already holds.

FlagTypeDefaultDescription
--location-typestring(none)The location_type this location is classified by, by name or uuid
--namestring(none)The name the row will carry. Omit it to draft the name and label the platform would produce, which a location_type with no name rule refuses; supply it to draft the label an operator-named location would carry.
--parentstring(none)The parent location, by name or uuid. A location has two placement buckets, under a parent or at the root, and this is which one a generated name’s ordinal is read from. Resolved within the caller’s location:create scope.

Example:

Terminal window
omniglass location renderLabel --location-type location_type

Regenerate a location’s name

omniglass location resetName <name>

Hands the pen back to the platform, the same verb components and systems carry: the name is re-minted from the location_type’s name rule and the lowest free ordinal in this placement, and name_generated goes back to true. A location_type carrying no name rule refuses (422), which is every type a shipped fleet has: only a positional kind of location, one whose number is an arbitrary disambiguator rather than a designation read off the signage (a parking deck, a rack row), has a name the platform can generate, and an operator declares such a type themselves. Gated by location:rename, the same token :rename uses.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass location resetName <name>

Set a tag value on a location

omniglass location setTag <name> [flags]

Binds a value for a key on a location. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by location:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key (must exist and apply to this kind)
--valuestring(none)The bound value

Example:

Terminal window
omniglass location setTag <name> --key key --value value

Update a location

omniglass location update <name> [flags]

Patches a location’s label or location_type. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. Changing the location_type of a location the PLATFORM named re-mints the name from the new type’s name rule, and is refused (422) when the new type carries none, which is every shipped type: :rename the location first to claim its name, then reclassify it. A location an operator named is never renamed by a reclassify. Gated by location:update; the read and update scopes drive the 404 versus 403 split.

Arguments: The location’s name, or a dotted address (e.g. boi.17c.415a); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--labelstring(none)A new operator-facing label
--location-typestring(none)Re-types the location: a location_type, by name or uuid

Example:

Terminal window
omniglass location update <name>

Commands for the location-type resource

Create a location type

omniglass location-type create [flags]

Creates a custom (non-official) location_type, optionally with the label_rule locations of that type get. An unparseable rule is a 422. Gated by location_type:create.

FlagTypeDefaultDescription
--allowed-parent-typesstring(none)location_type names and/or the reserved root sentinel this type may be placed under; empty means unconstrained
--iconstring(none)A glyph key; the console falls back to map-pin when empty
--labelstring(none)What an operator reads in pickers and lists
--label-rulestring(none)The label rule locations of this type get, a Go text/template over the location data map; omit to fall back to the global rule. Refused (422) if it does not compile
--namestring(none)The globally unique name (e.g. wing); “root” is reserved
--name-rulestring(none)How the platform NAMES locations of this type; omit to have an operator name every one of them. Refused (422) if it cannot mint a legal name

Example:

Terminal window
omniglass location-type create --label label --name name

Delete a location type

omniglass location-type delete <id>

Deletes a custom location_type, refused if official (422) or still referenced by a location (409). Gated by location_type:delete.

Example:

Terminal window
omniglass location-type delete room

List location types

omniglass location-type list

Lists the location_type catalog (the shape-definers a location is classified by), ordered alphabetically by label. Populates the type picker on the location form. Gated by location_type:read.

Example:

Terminal window
omniglass location-type list

Commands for the metric resource

Withdraw a metric from a location type

omniglass location-type metric delete <id> <metric>

Removes one line from a location type’s contract, a shipped (official) type’s included, since nothing seeds a contract line; locations of the type keep any samples the series already holds, now off-contract. A metric the type does not declare is a 404, and so is an unknown type. Gated by location_type:delete.

Example:

Terminal window
omniglass location-type metric delete room <metric>

List a location type’s declared metrics

omniglass location-type metric list <id>

Lists the location type’s declared-metric contract (which metrics every location of the type carries), ordered by metric name, each with its optional default and required flag. Gated by location_type:read.

Example:

Terminal window
omniglass location-type metric list room

Declare a metric on a location type

omniglass location-type metric update <id> <metric> [flags]

Declares a catalog metric on a location type, or revises the declaration in place (the line is addressed by name, so the write is idempotent). A shipped (official) type’s contract is writable too: a contract line is a row in its own table and nothing seeds one, so every line is an operator’s. An unknown type is a 404 and a metric the catalog does not know is a 422. Gated by location_type:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the metric’s data_type; omit for no default
--requiredboolfalseWhether every location of this type must carry the metric; defaults to false

Example:

Terminal window
omniglass location-type metric update room <metric>

Commands for the property resource

Withdraw a property from a location type

omniglass location-type property delete <id> <property>

Removes one line from a location type’s contract, a shipped (official) type’s included, since nothing seeds a contract line; locations of the type keep any value they set for it, now off-contract. A property the type does not declare is a 404, and so is an unknown type. Gated by location_type:delete.

Example:

Terminal window
omniglass location-type property delete room <property>

List a location type’s declared properties

omniglass location-type property list <id>

Lists the location type’s declared-property contract (what every location of the type exposes), ordered by property name, each with its optional default and required flag. Gated by location_type:read.

Example:

Terminal window
omniglass location-type property list room

Declare a property on a location type

omniglass location-type property update <id> <property> [flags]

Declares a catalog property on a location type, or revises the declaration in place (the line is addressed by name, so the write is idempotent). A shipped (official) type’s contract is writable too: a contract line is a row in its own table and nothing seeds one, so every line is an operator’s. An unknown type is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by location_type:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the property’s data_type; omit for no default
--requiredboolfalseWhether every location of this type must set the property; defaults to false

Example:

Terminal window
omniglass location-type property update room <property>

Rename a location type

omniglass location-type rename <id> [flags]

Moves a custom location type’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official location type keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by location_type:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass location-type rename <id> --name name

Restore a location type’s shipped values

omniglass location-type restore <id>

Discards your fork of a shipped location_type, so reads return the values this release ships, including a rule a later release WITHDREW. 409 when the row carries no fork of yours. Gated by location_type:update, the same permission that took the fork: restoring is undoing your own edit, not deleting a row.

Example:

Terminal window
omniglass location-type restore room

Update a location type

omniglass location-type update <id> [flags]

Patches a location_type’s label, icon, allowed parents, label_rule or name_rule. An unparseable label_rule (or a name_rule that cannot mint a legal name) is a 422 at rule-edit time, never a broken row at create time, and setting a label rule restamps nothing on its own: apply it with /locations:recomputeLabels after seeing the blast radius with :previewLabels. A shipped (official) row is never written: the patch FORKS it, storing your version over the shipped one, and the response comes back with forked=true under the same id. :restore discards the fork. Gated by location_type:update.

FlagTypeDefaultDescription
--allowed-parent-typesstring(none)Replaces the allowed-parent set; omit to leave unchanged, [] to clear back to unconstrained
--iconstring(none)A new glyph key; the console falls back to map-pin when empty
--labelstring(none)A new operator-facing label
--label-rulestring(none)A new label rule for locations of this type; omit to leave unchanged, "" to clear back to the global rule. Refused (422) if it does not compile. Editing it does not restamp anything: apply it with /locations:recomputeLabels, having seen the blast radius with :previewLabels
--name-rulestring(none)A new name rule for locations of this type; omit to leave unchanged, or name name_rule in update_mask with no rule here to CLEAR it back to operator-named. Refused (422) if it cannot mint a legal name. Setting it renames nothing that already exists: it decides how the NEXT nameless create, :resetName, move or reclassify names a row
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (name_rule back to operator-named); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass location-type update room

Serve the omniglass MCP tools over stdio, for a local agent

omniglass mcp

Serves the omniglass MCP server over stdio by relaying to the server’s /mcp endpoint with your token, so a local agent (Claude Code, or any MCP client that launches a command) drives omniglass through the same generated tools, with your permissions and scope, audited as you via MCP. Configure the agent to run omniglass mcp with OMNIGLASS_SERVER and OMNIGLASS_TOKEN in its environment. Standard output carries only the MCP protocol; anything else goes to standard error.

Call one MCP tool, as an MCP client over stdio does

omniglass mcp call <tool> [flags]

Calls one tool on the omniglass MCP server, connecting over stdio to omniglass mcp exactly as an agent does, and prints its result. A tool error (the route’s own refusal) is printed and exits non-zero.

FlagTypeDefaultDescription
--argsstring(none)the tool’s arguments, a JSON object

Example:

Terminal window
omniglass mcp call get-component-reachability --args '{"name":"panel-1"}'

List the agent skills, or print one as its SKILL.md

omniglass mcp skill [name]

Lists the skills the omniglass MCP server serves as prompts (workflows such as triaging an alarm), or prints one as an Agent Skills SKILL.md, for an agent that reads skill files. The skills ship in the binary, so this needs no server.

Example:

Terminal window
omniglass mcp skill triage-alarm > .claude/skills/triage-alarm/SKILL.md

List the MCP tools, as an MCP client over stdio sees them

omniglass mcp tools

Lists every tool the omniglass MCP server serves, with what a client may assume of each (read-only, destructive, idempotent, open-world), by connecting over stdio to omniglass mcp exactly as an agent does.

Commands for the metric-type resource

Create a metric type

omniglass metric-type create [flags]

Registers a custom metric type (official=false). The name must be a valid metric key. Gated by metric_type:create.

FlagTypeDefaultDescription
--data-typestring(none)The value type; a metric is always a number
--descriptionstring(none)What the series measures
--labelstring(none)A human label
--namestring(none)The metric type name (lowercase kebab)
--precisionint0Decimal places a rendered value keeps
--unitstring(none)The display unit of the series (ms, dB, percent)

Example:

Terminal window
omniglass metric-type create --data-type data_type --name name

Delete a metric type

omniglass metric-type delete <name>

Removes a custom metric type by name. Official metric types are read-only. A metric type a calc rule writes is a 409 naming the rule. Gated by metric_type:delete.

Example:

Terminal window
omniglass metric-type delete <name>

Get a metric type

omniglass metric-type get <name>

Returns one metric type by name. Gated by metric_type:read.

Example:

Terminal window
omniglass metric-type get <name>

List metric types

omniglass metric-type list

Lists every registered metric type (official and custom). The catalog is fleet-wide reference data. Gated by metric_type:read.

Example:

Terminal window
omniglass metric-type list

Set a metric type’s retention window

omniglass metric-type setRetention <name> [flags]

Sets how many days this type’s samples are kept, overriding the metric lane’s window (retention.metric_days), or with null returns it to the lane’s. Works on an official type: a shipped type’s definition is read-only, but how long an install keeps its samples is the install’s, and the boot seed never resets it. A command’s intended values are never removed; a series with no sample inside the window reads as no reading within retention (ADR-1275). 3 to 36,500 days (a metric day folds into blocks 48 hours after it starts, so a shorter window folds nothing). Audited as set_retention. Gated by metric_type:update and platform:update.

FlagTypeDefaultDescription
--daysstring(none)The type’s own retention window in whole days, 3 to 36,500; null clears it, so the type is kept for its lane’s window (retention.metric_days). Required: an empty body is refused

Example:

Terminal window
omniglass metric-type setRetention <name> --days <json>

Update a metric type

omniglass metric-type update <name> [flags]

Patches a custom metric type’s label, description, unit, or precision. Partial by default: the fields present in the body change and the rest are left alone. precision is a nullable integer with no empty value, so it clears by being named in update_mask with no value in the body; label, description and unit clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. Data type is fixed at creation. Official metric types are read-only. Gated by metric_type:update.

FlagTypeDefaultDescription
--descriptionstring(none)What the series measures
--labelstring(none)A human label
--precisionint0Decimal places a rendered value keeps; omit to leave unchanged, or name precision in update_mask with no value here to CLEAR it back to unset
--unitstring(none)The display unit of the series
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (precision back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass metric-type update <name>

Apply embedded database migrations (dbmate)

omniglass migrate

Applies every embedded migration the database has not run. Migrations only move forward, so a database a newer release migrated is refused, naming its newest migration and the newest this binary knows: run that release or a later one.

Commands for the notification resource

Get a notification

omniglass notification get <id>

Returns one notification. One about a component outside the caller’s component read scope is a non-disclosing 404. Gated by notification:read.

Example:

Terminal window
omniglass notification get <id>

List notifications

omniglass notification list [flags]

The messages sent, on their way, or failed about alarms, newest first, filtered by alarm, target or status. Only notifications about components in the caller’s component read scope are listed. A row addressed to a person names them only to that person and to holders of user:read:admin. Gated by notification:read.

FlagTypeDefaultDescription
--alarmstring(none)Only the notifications about this alarm (its uuid)
--limitint0At most this many, newest first (default 100)
--statusstring(none)Only those in this status
--targetstring(none)Only those to this target, by name

Example:

Terminal window
omniglass notification list

Retry a failed notification

omniglass notification retry <id>

Re-queues a failed notification for a fresh run of attempts, sending the same rendered message with the same Idempotency-Key. One that is queued, sent or suppressed (its alarm was snoozed), or one that failed before any attempt (its rule’s when did not run, or its type did not render, so it holds no message), is a 409. Audited as retry. Gated by notification:retry, whose scope resolves on the component tier; a component outside the caller’s component read scope is a non-disclosing 404, one it reads but may not retry on a 403.

Example:

Terminal window
omniglass notification retry <id>

Commands for the notification-target resource

Create a notification target

omniglass notification-target create [flags]

Adds a destination a notification can be sent to: a webhook, its URL and, optionally, the platform secret it signs or authenticates with; or people, a user_group (every person in the group, read at each alarm transition), one user, or a role (every person holding it, directly or through a group grant, read at each alarm transition), on the channels named. A person is told only about an alarm on a component their own component read scope admits. Binding a group takes user_group:read:admin, binding a person user:read:admin, and binding a role role:read:admin and user:read:admin (a 403 without it), since the target reaches whoever they name. Binding a secret takes the right to bind it (secret:bind, and the admin tier for an admin-sensitive one), since every send hands it to the URL: a secret the caller cannot read is a 404, one it can read but not bind a 403. A URL the egress contract refuses under the allow list in force, an unknown kind, or a secret that is not a platform hmac-key or bearer-token is a 422; a taken name a 409. Audited, the URL masked. Gated by notification_target:create with an all-scope grant.

FlagTypeDefaultDescription
--addressesstring(none)An email target’s recipient addresses
--channelsstring(none)A group, person or role target’s channels: inbox, email
--enabledboolfalseWhether deliveries go to it (default true)
--kindstring(none)The target kind
--labelstring(none)A human label
--namestring(none)The target’s name (lowercase kebab)
--rolestring(none)A role target’s role, by name or uuid; binding one takes role:read:admin and user:read:admin, since it reaches whoever holds the role
--secretstring(none)A platform secret, by name or uuid, of type hmac-key (signs each body) or bearer-token (sent as Authorization: Bearer)
--urlstring(none)A webhook’s destination URL: https, or plain http to a host or address the notification.egress_allow setting names. A private, loopback or link-local destination is refused at send unless that setting names it; a cloud metadata address always is
--userstring(none)A user target’s person, by username or uuid; binding one takes user:read:admin
--user-groupstring(none)A user_group target’s group, by name or uuid; binding one takes user_group:read:admin

Example:

Terminal window
omniglass notification-target create --kind kind --name name

Delete a notification target

omniglass notification-target delete <name>

Removes a target. One an action rule still sends to is a 409, and so is a shipped (official) one, which is disabled instead. Audited. Gated by notification_target:delete with an all-scope grant.

Example:

Terminal window
omniglass notification-target delete <name>

Get a notification target

omniglass notification-target get <name>

Returns one notification target by name or uuid, its URL masked. Gated by notification_target:read with an all-scope grant.

Example:

Terminal window
omniglass notification-target get <name>

List notification targets

omniglass notification-target list

Lists every notification target, by name, each URL masked to its scheme and host. An all-scope directory: gated by notification_target:read with an all-scope grant (admin), and off the viewer floor, since a target is an egress destination holding a credential.

Example:

Terminal window
omniglass notification-target list

Reveal a notification target’s URL

omniglass notification-target reveal <name>

Returns the target’s URL whole. Audited as reveal (the URL is not in the audit row). Gated by notification_target:reveal with an all-scope grant.

Example:

Terminal window
omniglass notification-target reveal <name>

Send a test notification to a target

omniglass notification-target test <name>

Sends one synthetic message (transition test, about no alarm) to a webhook or email target through the egress contract, signed or authenticated as a delivery would be (an email through the install’s mail relay), and answers what the receiver said; a group, person or role target is a 422, since people are told only about alarms. Records nothing but its audit row (the result, never the URL). A disabled target is still tested. Gated by notification_target:test with an all-scope grant.

Example:

Terminal window
omniglass notification-target test <name>

Update a notification target

omniglass notification-target update <name> [flags]

Patches a target’s label, URL, secret or enabled flag (an absent field is unchanged; an empty secret unbinds it). Binding a secret takes the right to bind it (secret:bind), as on create, and so does moving the URL of a target that keeps a bound secret (a 403 without it), since the next send would hand the secret to the new URL. A shipped (official) target takes only its label and enabled flag; any other field is a 409. Audited, the URL masked and a change to it recorded as changed. Gated by notification_target:update with an all-scope grant.

FlagTypeDefaultDescription
--addressesstring(none)An email target’s recipient addresses
--channelsstring(none)A group, person or role target’s channels: inbox, email; refused on a shipped (official) target
--enabledboolfalseWhether deliveries go to it
--labelstring(none)A human label (empty clears it)
--secretstring(none)A platform secret by name or uuid; empty unbinds it
--urlstring(none)The destination URL: https, or plain http to a host or address the notification.egress_allow setting names. A private, loopback or link-local destination is refused at send unless that setting names it; a cloud metadata address always is

Example:

Terminal window
omniglass notification-target update <name>

Commands for the notification-type resource

Create a notification type

omniglass notification-type create [flags]

Registers an operator notification type (official=false). Subject and text are written in the rule language a label rule uses (the functions title, upper, lower, slug, words; {{if}} and the builtins and, or, not, eq, ne, lt, le, gt, ge), reading the alarm facts Component, ComponentLabel, ComponentType, Location, Severity, SeverityLabel, Message, Transition, RaisedAt, ClearedAt, Rule, Link; a fact outside them renders empty, and anything else (printf, call, index, range, a variable, a source past 4096 bytes) is a 422, and is never stored. A taken name is a 409. Audited. Gated by notification_type:create.

FlagTypeDefaultDescription
--descriptionstring(none)What the message is for
--labelstring(none)A human label
--namestring(none)The type’s name (lowercase kebab)
--subjectstring(none)The one-line subject, written in the rule language
--textstring(none)The body text, written in the rule language

Example:

Terminal window
omniglass notification-type create --name name --subject subject --text text

Delete a notification type

omniglass notification-type delete <name>

Removes an operator notification type. An official type, or one an action rule still sends, is a 409. Audited. Gated by notification_type:delete.

Example:

Terminal window
omniglass notification-type delete <name>

Get a notification type

omniglass notification-type get <name>

Returns one notification type by name or uuid. Gated by notification_type:read.

Example:

Terminal window
omniglass notification-type get <name>

List notification types

omniglass notification-type list

Lists every notification type (official and operator), by name: what a message about an alarm says. Fleet-wide reference data. Gated by notification_type:read.

Example:

Terminal window
omniglass notification-type list

Preview a notification type against an alarm

omniglass notification-type preview <name> [flags]

Renders the type’s subject and text (or a draft of either, sent in the body) against one real alarm, exactly as a delivery of that alarm’s transition would carry them, with the facts they read. Writes nothing. The alarm is named by its component and id; without an id, the component’s most recently raised alarm. A draft the sandbox refuses is a 422, one that fails to render (its output past the cap) a 422 naming it. Gated by notification_type:read; the component is resolved in the caller’s component read scope, so a component outside it is a non-disclosing 404.

FlagTypeDefaultDescription
--alarmstring(none)The alarm’s id; absent previews the component’s most recently raised alarm
--componentstring(none)The component the alarm is on, by name or dotted address
--subjectstring(none)A draft subject to render instead of the stored one, so an editor previews before it saves
--textstring(none)A draft text to render instead of the stored one
--transitionstring(none)The edge to render for; absent reads the alarm’s own state (cleared when it is, raised otherwise)

Example:

Terminal window
omniglass notification-type preview <name> --component component

Rename a notification type

omniglass notification-type rename <id> [flags]

Moves a custom notification type’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official notification type keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by notification_type:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass notification-type rename <id> --name name

Update a notification type

omniglass notification-type update <name> [flags]

Patches an operator type’s label, description, subject or text (an absent field is unchanged). Subject and text are written in the rule language a label rule uses (the functions title, upper, lower, slug, words; {{if}} and the builtins and, or, not, eq, ne, lt, le, gt, ge), reading the alarm facts Component, ComponentLabel, ComponentType, Location, Severity, SeverityLabel, Message, Transition, RaisedAt, ClearedAt, Rule, Link; a fact outside them renders empty, and anything else (printf, call, index, range, a variable, a source past 4096 bytes) is a 422. An official type is read-only (409). The name moves only through :rename. Audited. Gated by notification_type:update.

FlagTypeDefaultDescription
--descriptionstring(none)What the message is for
--labelstring(none)A human label (empty clears it)
--subjectstring(none)The one-line subject, written in the rule language
--textstring(none)The body text, written in the rule language

Example:

Terminal window
omniglass notification-type update <name>

Run omnibot, the built-in assistant, on a prompt or in a chat

omniglass omnibot [prompt...] [flags]

Runs omnibot, the built-in assistant, as the person whose token it is given. The conversation runs on the server, on the model the install is configured with (the assistant settings), so the model’s key never reaches this terminal; the server is told it acts for you and the audit log shows its actions as omnibot’s. A tool whose agent policy is always runs, one whose policy is ask is put to you on the terminal first (without a terminal it is declined), and one whose policy is never is not offered. With no prompt it opens a chat, each line continuing the conversation; in the chat, /secret [location:|component:] asks for a credential without echo, stores it as a secret with your own token, and tells omnibot only its name, so the value never reaches the model. Each conversation is kept on the server for you alone; —resume names it, picking it up where it was left if it exists, and a call a paused run left waiting is put to you first. —replay runs the loop on this machine instead, on a recorded model, with a one-day agent token of its own that it revokes when it finishes; —max-steps bounds that loop.

FlagTypeDefaultDescription
--max-stepsint10with —replay, the most model turns the run takes before it stops
--replaystring(none)run the loop here on a recorded model (YAML turns) instead of on the server’s
--resumestring(none)keep the conversation on the server under this name, picking it up if it exists

Example:

Terminal window
omniglass omnibot "add a display to the lobby"
omniglass omnibot
omniglass omnibot --resume omnibot-3f2a
omniglass omnibot --replay lobby.yaml "add a display to the lobby"

Commands for the outpost resource

Claim an outpost identity in exchange for its NATS credential

omniglass outpost claim [flags]

The outpost-facing exchange: an outpost presents its enrollment token and receives its NATS credential (url, username, password). Public (the token is the authentication); an invalid token is a 401.

FlagTypeDefaultDescription
--namestring(none)The outpost name the enrollment was minted for
--tokenstring(none)The one-time enrollment token from outpost create, exchanged here for the outpost’s NATS credential

Example:

Terminal window
omniglass outpost claim --name name --token token

Create an outpost

omniglass outpost create [flags]

Registers an edge outpost server-side (day-one enrollment: create, then :enroll to mint its token). Gated by outpost:create.

FlagTypeDefaultDescription
--descriptionstring(none)Free-form operator notes about the outpost
--labelstring(none)Operator label; falls back to the name when empty
--locationstring(none)Optional location the outpost sits in, by name or id (descriptive placement, not scope)
--namestring(none)Globally unique outpost name (lowercase letters, digits, and hyphens); it is also the outpost’s NATS subject token, which is why the rule forbids a dot

Example:

Terminal window
omniglass outpost create --name name

Delete an outpost

omniglass outpost delete <name>

Decommissions an outpost: a hard delete that cascades its endpoints, their derived tasks, its outpost-owned tags and self-telemetry, its platform component, and its enrollment credential. Component telemetry it collected is unaffected. Requires an all-scope action. Gated by outpost:delete.

Example:

Terminal window
omniglass outpost delete <name>

Mint an outpost’s enrollment token

omniglass outpost enroll <name>

Mints (or re-mints) the outpost’s enrollment token and returns it once. The token is stored only as a hash; it is never logged. Gated by outpost:enroll.

Example:

Terminal window
omniglass outpost enroll <name>

Get an outpost

omniglass outpost get <name>

Fetches an outpost by name. Requires an all-scope read. Gated by outpost:read.

Example:

Terminal window
omniglass outpost get <name>

List outposts

omniglass outpost list

Lists the edge outposts. An outpost is fleet-wide, so listing requires an all-scope read. Gated by outpost:read.

Example:

Terminal window
omniglass outpost list

List tags on a outpost

omniglass outpost listTags <name>

Lists the tags bound directly on a outpost (not the resolved cascade). Gated by outpost:read.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass outpost listTags <name>

Commands for the log resource

List an outpost’s recent self-logs

omniglass outpost log list <name>

Returns the outpost’s own recent operational log lines (the raw ingest lane of ADR-0066, owner-bound to the outpost), newest first, bounded to the last 24 hours. Gated by outpost:read; an out-of-scope outpost is a non-disclosing 404.

Example:

Terminal window
omniglass outpost log list <name>

Remove a tag value from a outpost

omniglass outpost removeTag <name> [flags]

Removes a key’s value from a outpost. Gated by outpost:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key to remove

Example:

Terminal window
omniglass outpost removeTag <name> --key key

Run the edge outpost: claim, pull the worklist, and heartbeat over NATS

omniglass outpost run [flags]

Runs the edge outpost: claims its NATS credential with the enrollment token, pulls its worklist, collects, and heartbeats until interrupted. Outbound-only: the outpost dials the server, never the reverse.

—simulate also runs the simulator in the same process, serving the simulated components placed on this outpost on its own loopback (each on its 127.x address), with this outpost’s identity: one process, one enrollment, nothing to arrange between them. —impairments, —port-offset and —poll are the simulator’s and are refused without —simulate. omniglass sim run is the same simulator as a process of its own, beside an outpost.

FlagTypeDefaultDescription
--heartbeatduration30sheartbeat interval
--impairmentsboolfalsewith —simulate: apply impairments (unplug, latency, loss) and truthful ping by rewriting the firewall and traffic shaping of this network namespace; needs NET_ADMIN, and is meant for a namespace of the outpost’s own (a container)
--lane-workersstringautohow many endpoint lanes run at once, each sending one request to its endpoint at a time, an operator’s ahead of the scheduled; auto sizes them from the CPU and memory the outpost may use (env OMNIGLASS_LANE_WORKERS)
--namestring(none)this outpost’s registered name (env OMNIGLASS_OUTPOST_NAME)
--onceboolfalserun a single claim + pull + heartbeat cycle and exit
--pollduration10swith —simulate: how often the simulator re-pulls its component list
--port-offsetint0with —simulate: lift the simulated ports below 1024 by this much, to serve without the privilege to bind them
--probe-everyduration30show often each reachability probe runs, on the outpost’s own timer, apart from the heartbeat. Keep it under the console’s 150s staleness window, past which a probe-only endpoint reads stale between probes
--serverstring(none)Omniglass server base URL (env OMNIGLASS_SERVER)
--session-dialsint16how many held sessions make their first dial and handshake at once (a redial takes no slot); a session waiting for a slot reads establishing (env OMNIGLASS_OUTPOST_SESSION_DIALS)
--simulateboolfalsealso run the simulator in this process, serving the simulated components placed on this outpost on its own loopback
--tokenstring(none)enrollment token from POST /outposts/{name}:enroll (env OMNIGLASS_OUTPOST_TOKEN)
--worklist-everyduration30show often the outpost pulls its worklist, apart from the heartbeat; a change to the outpost’s worklist nudges it to pull at once, and only a lost nudge waits for this pull

Set a tag value on a outpost

omniglass outpost setTag <name> [flags]

Binds a value for a key on a outpost. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by outpost:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key (must exist and apply to this kind)
--valuestring(none)The bound value

Example:

Terminal window
omniglass outpost setTag <name> --key key --value value

Get an outpost’s simulator

omniglass outpost simulation <name>

The devices a simulator beside the outpost serves (each component with an endpoint placed on the outpost, within the caller’s component read scope), joined to the hits the server has seen and the simulator’s capabilities. Hits are live and per server process, not stored. Requires an all-scope outpost read. Gated by outpost:read.

A value equal to a subcommand name (observation) runs that subcommand; put — before it to pass it as , e.g. outpost simulation -- observation.

Example:

Terminal window
omniglass outpost simulation <name>

Commands for the observation resource

omniglass outpost simulation observation list
Section titled “omniglass outpost simulation observation list”

Get an outpost’s endpoint observation

omniglass outpost simulation observation list <name>

What the simulated endpoints beside an outpost saw arrive and how each request settled, and what the outpost tallied sending, read in that order: the simulator, then the outpost, then the simulator again, so a request in transit between reads is never a false gap. A scale lab reconciles the three. Totals are per protocol with a capped sample of device ids, bounded at any fleet size, and count since each process started. Gated by simulation:read, and only for a caller whose component read scope is all, since the totals span every component the outpost simulates. An outpost that does not exist is a 404; no simulator answering, or the outpost not answering, a 503.

Example:

Terminal window
omniglass outpost simulation observation list <name>

Update an outpost

omniglass outpost update <name> [flags]

Patches an outpost’s label, description, and location (a nil field is unchanged; a location of "" clears it). The name is immutable. Requires an all-scope action. Gated by outpost:update.

FlagTypeDefaultDescription
--descriptionstring(none)New free-form operator notes
--labelstring(none)A new operator-facing label
--locationstring(none)Set the outpost’s location by name or id, or "" to clear it

Example:

Terminal window
omniglass outpost update <name>

Read Omniglass’s own health from a running server

Read whether the platform is keeping up, and exit nonzero when it is not

omniglass platform health [flags]

Reads the platform view (the read behind the console’s Platform health page) and reduces it to whether Omniglass is keeping up: the system and server health, open alarms, each pipeline hop’s in, out and loss with the end to end, the outposts with loss or not healthy, ingest lag, the queues, the database and retention, and every failure figure above zero. It exits nonzero when any health is not healthy, an alarm is open, or the newest windows lost work end to end.

It reads through the API alone with —server and —token, so it works against any deployment. The view is gated by outpost:read; a part the token cannot read prints as not visible to you, never as zero. —window reads twice and adds the database’s and the telemetry stream’s growth and rates; —every samples on an interval and writes one JSON line a sample, to —append or stdout; —page-clients times the console’s system page under concurrent clients.

FlagTypeDefaultDescription
--appendstring(none)append each sample’s line to this file (with —every)
--everyduration0ssample on this interval, one JSON line a sample (0 reads once)
--jsonboolfalseprint the reading as JSON
--page-clientsint0time the console’s system page with this many concurrent clients (0 skips it)
--page-loadsint1timed system page loads a client, spread across —window
--page-systemstring(none)the system whose page to load (default the fleet view’s first)
--samplesint0stop after this many samples (with —every; 0 runs until interrupted)
--windowduration0sread twice this far apart and add the growth and rates between (0 reads once)

Example:

Terminal window
omniglass platform health
omniglass platform health --json
omniglass platform health --window 1m --page-clients 4
omniglass platform health --every 5m --window 1m --append health.jsonl

Commands for the product resource

Create a product

omniglass product create [flags]

Creates a custom (non-official) product, classified under a component_type. kind and component_type are both required; kind refuses vm (retired, folded into app). Gated by product:create.

FlagTypeDefaultDescription
--component-typestring(none)The component_type this product is classified under (mic, camera, …), by name or uuid; every product must belong to a type in that tree. The generics (generic-device, generic-app, generic-service) fit anything not yet modeled more specifically.
--driver-idstring(none)The driver that talks to it, by handle or uuid
--iconstring(none)A product-level icon override; unset inherits the component_type’s icon
--kindstring(none)What class of thing the product is. vm is retired (folded into app); required, no default, so every product states its class explicitly.
--labelstring(none)What an operator reads in pickers and lists
--label-rulestring(none)A label rule, written in Go text/template, rendering the label of every component of this product, over a closed map of that component’s facts (Name, Ordinal, TypeName, TypeAbbrev, Stem, ProductName, VendorName, LocationLabel, SystemTypeLabel) and the functions title, upper, lower, slug and words (words turns a kebab or snake name into the words in it, so {{title (words .Name)}} reads north-wing as North Wing). Omit to inherit the component_type chain’s rule, then the global component rule. A rule that does not parse is refused here, 422.
--namestring(none)The globally unique name; renameable
--parent-product-idstring(none)The parent product, by handle or uuid
--vendor-idstring(none)The vendor, by handle or uuid

Example:

Terminal window
omniglass product create --component-type component_type --kind kind --label label --name name

Delete a product

omniglass product delete <id>

Deletes a custom product, refused if official (422) or still referenced by a component (409). Gated by product:delete.

Example:

Terminal window
omniglass product delete boreal-edge-55

Get a product

omniglass product get <id>

Fetches a product by its name or its uuid. Either form resolves, so omniglass product get acme-soundbar and the uuid are interchangeable. Gated by product:read.

Example:

Terminal window
omniglass product get boreal-edge-55

List products

omniglass product list [flags]

Lists the product catalog, ordered alphabetically by label. Each product carries its vendor, driver, kind, and component_type. declares_metric and declares_property narrow it to the products whose contract declares that key. Gated by product:read.

FlagTypeDefaultDescription
--declares-metricstring(none)Only products whose contract declares this metric (name or uuid)
--declares-propertystring(none)Only products whose contract declares this property (name or uuid)

Example:

Terminal window
omniglass product list

Commands for the metric resource

Withdraw a metric from a product

omniglass product metric delete <id> <metric>

Removes one line from a custom product’s contract; instances keep any samples the series already holds, now off-contract. A metric the product does not declare is a 404, and an official product is read-only (422). Gated by product:delete.

Example:

Terminal window
omniglass product metric delete boreal-edge-55 <metric>

List a product’s declared metrics

omniglass product metric list <id>

Lists the product’s declared-metric contract (which metrics every instance of the product carries), ordered by metric name, each with its optional default and required flag. Gated by product:read.

Example:

Terminal window
omniglass product metric list boreal-edge-55

Declare a metric on a product

omniglass product metric update <id> <metric> [flags]

Declares a catalog metric on a custom product, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official products are read-only (422); an unknown product is a 404 and a metric the catalog does not know is a 422. Gated by product:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the metric’s data_type; omit for no default
--requiredboolfalseWhether every instance of this product must carry the metric; defaults to false

Example:

Terminal window
omniglass product metric update boreal-edge-55 <metric>

Commands for the property resource

Withdraw a property from a product

omniglass product property delete <id> <property>

Removes one line from a custom product’s contract; instances keep any value they set for it, now off-contract. A property the product does not declare is a 404, and an official product is read-only (422). Gated by product:delete.

Example:

Terminal window
omniglass product property delete boreal-edge-55 <property>

List a product’s declared properties

omniglass product property list <id>

Lists the product’s declared-property contract (what every instance of the product exposes), ordered by property name, each with its optional default and required flag. Gated by product:read.

Example:

Terminal window
omniglass product property list boreal-edge-55

Declare a property on a product

omniglass product property update <id> <property> [flags]

Declares a catalog property on a custom product, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official products are read-only (422); an unknown product is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by product:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the property’s data_type; omit for no default
--requiredboolfalseWhether every instance of this product must set the property; defaults to false

Example:

Terminal window
omniglass product property update boreal-edge-55 <property>

Rename a product

omniglass product rename <id> [flags]

Moves a custom product’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official product keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by product:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass product rename <id> --name name

Update a product

omniglass product update <id> [flags]

Patches a custom product’s label, vendor, driver, kind, component_type, icon, label rule, or parent. Each optional field follows the three-state string: omitted is unchanged, an empty string clears it, a value sets it, so a vendor, driver, parent, icon or label rule can be unset as well as changed. component_type is required, so an empty string on it is a 422 (a reclassify names a real type; it never clears). Official products are read-only (422). Gated by product:update.

FlagTypeDefaultDescription
--component-typestring(none)Reclassifies the product to this component_type, by name or uuid; component_type is required, so this only reclassifies, it never clears
--driver-idstring(none)A new driver, by handle or uuid; an empty string clears it
--iconstring(none)A new icon override; an empty string clears it, so the product inherits its component_type’s icon
--kindstring(none)A new product class
--labelstring(none)A new operator-facing label
--label-rulestring(none)A new label rule; an empty string clears it, so components fall back to the component_type chain and then the global component rule. Refused with 422 if it does not parse.
--parent-product-idstring(none)A new parent product, by handle or uuid; an empty string clears it
--vendor-idstring(none)A new vendor, by handle or uuid; an empty string clears it

Example:

Terminal window
omniglass product update boreal-edge-55

Commands for the property-type resource

Create a property

omniglass property-type create [flags]

Registers a custom property (official=false). The name must be a valid property key. Gated by property_type:create.

FlagTypeDefaultDescription
--data-typestring(none)The value type; a numeric signal is a metric type
--descriptionstring(none)What the property means
--labelstring(none)A human label
--namestring(none)The property name (lowercase kebab)
--validationstring(none)A JSON Schema fragment constraining the value

Example:

Terminal window
omniglass property-type create --data-type data_type --name name

Delete a property

omniglass property-type delete <name>

Removes a custom property by name. Official properties are read-only. A property a calc rule writes is a 409 naming the rule, and one identity bindings use as their match key is a 409 counting them. Gated by property_type:delete.

Example:

Terminal window
omniglass property-type delete <name>

Get a property

omniglass property-type get <name>

Returns one property by name. Gated by property_type:read.

Example:

Terminal window
omniglass property-type get <name>

List properties

omniglass property-type list

Lists every registered property (official and custom). The catalog is fleet-wide reference data. Gated by property_type:read.

Example:

Terminal window
omniglass property-type list

Set a property type’s retention window

omniglass property-type setRetention <name> [flags]

Sets how many days this type’s transitions are kept, overriding the property lane’s window (retention.property_days), or with null returns it to the lane’s. Works on an official type: a shipped type’s definition is read-only, but how long an install keeps its samples is the install’s, and the boot seed never resets it. The retention floor still holds: a declared value and a series’ latest value are never removed. 1 to 36,500 days. Audited as set_retention. Gated by property_type:update and platform:update.

FlagTypeDefaultDescription
--daysstring(none)The type’s own retention window in whole days, 1 to 36,500; null clears it, so the type is kept for its lane’s window (retention.metric_days or retention.property_days). Required: an empty body is refused

Example:

Terminal window
omniglass property-type setRetention <name> --days <json>

Update a property

omniglass property-type update <name> [flags]

Patches a custom property’s label, description, or validation. Partial by default: the fields present in the body change and the rest are left alone. validation is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; label and description clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. Data type is fixed at creation. Official properties are read-only. Gated by property_type:update.

FlagTypeDefaultDescription
--descriptionstring(none)What the property means
--labelstring(none)A human label
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (validation back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it
--validationstring(none)A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name validation in update_mask with no value here to CLEAR it

Example:

Terminal window
omniglass property-type update <name>

Commands for the role resource

List roles

omniglass role list

Lists the roles with their metadata and effective (flattened) permissions. Gated by the role:read:admin capability.

Example:

Terminal window
omniglass role list

Commands for the search resource

Find locations, systems, components and catalog entries by name

omniglass search list [flags]

The read behind the command palette. Returns up to limit hits of each kind whose name or label holds q, case-insensitively, best match first (exact, then prefix, then the rest by name). Locations, systems and components are searched inside the caller’s own read scope for each kind, so nothing outside it appears; a caller with no scope for a kind gets an empty group, not an error. Each fleet hit carries its location_path, so many components with one name are told apart. Catalog hits cover products (product:read), drivers (driver:read), calc rules and event rules (rule:read) and metrics (metric_type:read), each only for a caller who holds that permission. Gated by location:read, the floor of every fleet reader; the component group also needs component:read.

FlagTypeDefaultDescription
--limitint0The most hits returned for each kind
--qstring(none)The text to find, matched case-insensitively anywhere in a name or label

Example:

Terminal window
omniglass search list

Commands for the secret resource

Decrypt a secret for clipboard copy

omniglass secret copy <secret>

Decrypts and returns a secret’s field values for a clipboard copy, audited under the copy verb (distinct from an on-screen reveal). Same exposure and the same secret:reveal gate as reveal.

Arguments: The secret: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass secret copy demo-panel-login

Create a secret

omniglass secret create [flags]

Seals a secret at an owner scope. Fields are validated and encrypted against the type shape. Gated by secret:create, plus platform:create when owner_kind is platform (the install-wide tier).

FlagTypeDefaultDescription
--admin-sensitiveboolfalseAdmin-only visibility; omit to use the type default. Setting true requires the admin tier
--fieldsstring(none)The operator field map, validated against the type shape
--labelstring(none)What an operator reads in lists and pickers (Polling community); omit to fall back to the name
--namestring(none)The cascade name (lowercase letters, digits, and hyphens); unique per owner
--ownerstring(none)The owning entity’s name; omit for a platform secret
--owner-kindstring(none)Which tier owns this secret (the system band is retired, ADR-0052)
--secret-typestring(none)A secret_type id

Example:

Terminal window
omniglass secret create --fields <json> --name name --owner-kind owner_kind --secret-type secret_type

Delete a secret

omniglass secret delete <secret>

Removes a secret, by name or uuid. Gated by secret:delete, plus platform:delete when the secret sits at the platform tier; read and delete scopes on the owner drive the 404 versus 403 split.

Arguments: The secret: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass secret delete demo-panel-login

List secrets

omniglass secret list

Lists the secrets the caller may see, with masked fields, filtered to the read scope; admin-sensitive secrets appear only to the admin tier. Gated by secret:read, which the viewer floor does not carry (secret is a sensitive resource).

Example:

Terminal window
omniglass secret list

Reveal a secret’s plaintext

omniglass secret reveal <secret>

Decrypts and returns a secret’s field values, auditing the decrypt. Gated by secret:reveal at the caller’s scope; an admin-sensitive secret additionally needs the admin tier (secret:reveal:admin), so a scoped operator reveals device secrets but never a platform credential.

Arguments: The secret: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass secret reveal demo-panel-login

Update a secret

omniglass secret update <secret> [flags]

Replaces the given field values on a secret, re-sealing secret fields, and patches its label. Only those change; name, type, and owner are fixed at creation. An omitted field keeps its value, an omitted label leaves it alone, and an empty label clears it. Gated by secret:update, plus platform:update when the secret sits at the platform tier.

Arguments: The secret: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--fieldsstring(none)The field values to replace; an omitted field keeps its value
--labelstring(none)A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone

Example:

Terminal window
omniglass secret update demo-panel-login

Commands for the secret-type resource

List secret types

omniglass secret-type list

Lists the secret_type shapes a secret can take, for the create form. Gated by secret:read.

Example:

Terminal window
omniglass secret-type list

Seed a dev database with example locations, users, and grants (idempotent; never for production)

omniglass seed-dev [flags]

Populate a fresh dev database with a small example fleet so a dev stack comes up with locations, sign-in-able users, and their grants instead of empty. The same trusted direct-DB lane as bootstrap, and idempotent, so a re-run changes nothing. Not for production: these are operator rows, not ship-with reference data.

—scenario picks the fleet: dev the example fleet a lab comes up with empty nothing beyond the boot seed: a fresh install’s first run degraded the example fleet with an open alarm on one in every 3 components storm the large fleet with an open alarm on one in every 3 components: an alarm storm of 150 or more, for the alarm queue’s scale checks large the example fleet plus its self-contained rooms copied 6 times under each of 5 replica sites (only the example fleet is simulated)

FlagTypeDefaultDescription
--scenariostringdevthe fleet to seed (see the list above)
--sim-fleetbooltruewire the simulated fleet: addresses and endpoints on the dev outpost for every example-fleet component the simulator serves, never a scenario’s copies or a hand-added device (a lab’s outpost collects from them)
--sim-port-offsetint0the lift the simulator applies to ports below 1024, which the simulated fleet’s endpoints target: 0 for one that binds the real ports (in a container, as the lab’s does), or the —port-offset of a simulator run unprivileged on a host

Run the control-plane server (HTTP API)

omniglass server

Runs the control plane: applies pending migrations and the boot seed, then serves the HTTP API on OMNIGLASS_ADDR and hosts the embedded NATS bus outposts connect to on OMNIGLASS_NATS_ADDR. Either address may name port 0, which binds whatever free port the kernel hands out; set OMNIGLASS_READY_FILE to a path and, once both listeners are bound, the server writes the addresses it got there as JSON (addr, nats_addr, and the nats_url it advertises to outposts). A file already at that path is cleared first thing at boot, and the server removes its own at a graceful shutdown (SIGINT or SIGTERM). A supervisor or a test reads the ports from that file rather than picking one and hoping it stays free. Configured by environment; see the deployment guides.

FlagTypeDefaultDescription

Commands for the session resource

List your own sessions and tokens

omniglass session list

Lists the caller’s own active bearer credentials (time-bounded web-login sessions and CLI/API tokens) with their non-secret metadata; the current one is flagged. Requires authentication; self-scoped (never another user’s). The token secret is never returned.

Example:

Terminal window
omniglass session list

Revoke one of your own sessions

omniglass session revoke <id>

Revokes one of the caller’s own sessions or tokens by id (from the session list); revoking the current one signs it out. Requires authentication; self-scoped, so a credential id that is not yours is a 404.

Example:

Terminal window
omniglass session revoke <id>

Revoke all of your own sessions or tokens

omniglass session revoke-all [flags]

Revokes every one of the caller’s own web-login sessions, or every one of its CLI/API tokens (chosen by purpose), returning how many were ended. Requires authentication; self-scoped. Always keeps the credential that made this request, so you are never signed out of the one you are on; sessions and tokens never cross.

FlagTypeDefaultDescription
--purposestring(none)Which of your own credentials to revoke: all your web-login sessions, or all your CLI/API tokens

Example:

Terminal window
omniglass session revoke-all --purpose purpose

Set or rotate a user’s console password, revoking their sessions (direct DB)

omniglass set-password <username> <password> [flags]

Installs or replaces a human’s password credential (argon2id), addressed by username, and revokes the user’s live SESSIONS so a break-glass reset locks out any stolen login at once. API tokens are a separate bearer secret, not tied to the password, and are kept unless —revoke-tokens is given (a full lockout of a compromised account). The same trusted direct-DB lane as bootstrap and token: dev setup, break-glass, or a password reset before the admin UI lands.

FlagTypeDefaultDescription
--revoke-tokensboolfalsealso revoke the user’s API tokens (a full lockout of a compromised account)

Commands for the setting resource

Restore a settings namespace to defaults

omniglass setting delete <namespace>

Drops the namespace’s platform binding, restoring the env layer, the file layer and the declared defaults. Gated by settings:update and platform:update.

Example:

Terminal window
omniglass setting delete <namespace>

Get effective settings with provenance

omniglass setting list

The effective settings document plus per-key provenance (which level won) and lock state. Gated by settings:read (admin).

Example:

Terminal window
omniglass setting list

Commands for the me resource

Get the caller’s effective settings

omniglass setting me list

The current user’s resolved settings, client-visible namespaces only, no provenance. Feeds the SPA at boot. Requires authentication.

Example:

Terminal window
omniglass setting me list

Restore all settings to defaults

omniglass setting restoreDefaults

Removes every platform binding (a factory reset), restoring the env layer, the file layer and the declared defaults. Gated by settings:update and platform:update.

Example:

Terminal window
omniglass setting restoreDefaults

Update a settings namespace

omniglass setting update <namespace> [flags]

Applies an RFC 7386 JSON Merge Patch to the namespace’s platform binding; null on a key restores it (for example {“egress_allow”:null}). Gated by settings:update and platform:update.

The request body is a JSON object: pass it inline with —body, or from a file (or - for stdin) with —body-file. A malformed document is refused before any request is made.

FlagTypeDefaultDescription
--bodystring(none)the request body as a JSON object
--body-filestring(none)read the request body, a JSON object, from this file (- for stdin)

Example:

Terminal window
omniglass setting update notification --body '{"egress_allow":["smtp.example.com"]}'

Commands for the severity-level resource

Create a severity level

omniglass severity-level create [flags]

Adds an operator severity level at a rank of its own, between two others without renumbering. A name or rank already taken is a 409; a color outside the palette is a 422. Audited. Gated by severity_level:create, with an all-scope grant: a level’s rank moves health fleet-wide.

FlagTypeDefaultDescription
--colorstring(none)One of gray, blue, green, yellow, orange, red, darkred
--health-effectstring(none)What an open alarm at this level does to its component; omitted, derived from rank (below 20 none, below 40 degraded, else outage)
--labelstring(none)A human label
--namestring(none)The level’s name (lowercase kebab)
--rankint0Its position among the levels: higher is more severe; unique

Example:

Terminal window
omniglass severity-level create --color color --name name --rank <int>

Delete a severity level

omniglass severity-level delete <name>

Removes an operator level no alarm or event rule names; an official level or one in use is a 409. Audited. Gated by severity_level:delete, with an all-scope grant.

Example:

Terminal window
omniglass severity-level delete <name>

Get a severity level

omniglass severity-level get <name>

Returns one severity level by name. Gated by severity_level:read.

Example:

Terminal window
omniglass severity-level get <name>

List severity levels

omniglass severity-level list

Lists the severity levels, least to most severe, each with its declared health effect (none, degraded or outage) on a component with an open alarm at it; outage remains as a deprecated alias of health_effect outage. Gated by severity_level:read.

Example:

Terminal window
omniglass severity-level list

Update a severity level

omniglass severity-level update <name> [flags]

Patches an operator level’s name, label, color, rank or health effect (an absent field is unchanged); a rename carries every alarm at the level with it. Official levels are read-only (409). Audited. Gated by severity_level:update, with an all-scope grant.

FlagTypeDefaultDescription
--colorstring(none)One of gray, blue, green, yellow, orange, red, darkred
--health-effectstring(none)What an open alarm at this level does to its component; changing it recomputes every component with an open alarm at the level
--labelstring(none)A human label
--namestring(none)A new name; every alarm at this level follows
--rankint0Its position among the levels; unique

Example:

Terminal window
omniglass severity-level update <name>

Simulate the devices placed on an outpost

Run a mail relay simulator that keeps what it is sent

omniglass sim mail [flags]

Serves SMTP on —listen and keeps every message it accepts, writing each as one JSON line (from, to, subject, text, message_id) to —out (standard output by default). It sends nothing on. Point the notification settings’ mail_relay at it with mail_security none and name its address in egress_allow. While —down-file holds the word down, it refuses every message with a temporary error.

FlagTypeDefaultDescription
--down-filestring(none)while this file holds the word down, refuse every message with a temporary error
--listenstring127.0.0.1:2525the address to serve SMTP on
--outstring(none)append each accepted message as a JSON line to this file (default standard output)

Serve the outpost’s simulated devices and follow changes until interrupted

omniglass sim run [flags]

Serves each component placed on the outpost whose product has a simulator profile and whose endpoints target a loopback address, on that address, and reports every request it answers to the server. Re-pulls the device list on an interval, so devices added or removed on the server start or stop without a restart. With a world file (env OMNIGLASS_SIM_WORLD), the simulator holds the world it simulates: the lab calendar and each device’s room, from the scenario and not from the server.

FlagTypeDefaultDescription
--impairmentsboolfalseapply impairments (unplug, latency, loss) and truthful ping by rewriting the firewall and traffic shaping of this network namespace; needs NET_ADMIN, and is meant for a namespace of the simulator’s own (a pod or container)
--namestring(none)the outpost this simulator runs beside (env OMNIGLASS_OUTPOST_NAME)
--pollduration10show often to re-pull the device list
--port-offsetint0lift the simulated ports below 1024 by this much, to serve without the privilege to bind them
--serverstring(none)Omniglass server base URL (env OMNIGLASS_SERVER)
--tokenstring(none)that outpost’s enrollment token (env OMNIGLASS_OUTPOST_TOKEN)

Commands for the simulation resource

Add a simulated component

omniglass simulation add-component <name> [flags]

Creates a component of a simulated product, at the lowest free address in the simulated block (127.60.0.0/16), with the endpoint the collector reaches it through placed on the outpost: a driver attach where the driver’s inputs are known (only when the platform secret the attach references exists, the community or the credential the face demands, else it falls back), otherwise a reachability probe on a port the profile serves, lifted as the outpost’s simulator lifts its ports. The simulator serves it from its next pull, with no restart. Gated by simulation:update, and also needs component:create and endpoint:create, each in the caller’s own scope. An outpost with no simulator connected is a 409, and a product no profile simulates a 422.

FlagTypeDefaultDescription
--locationstring(none)Where the component sits, by name or dotted path
--namestring(none)The new component’s name
--productstring(none)A product a simulator profile simulates

Example:

Terminal window
omniglass simulation add-component <name> --name name --product product

Add a simulated system

omniglass simulation add-system <name> [flags]

Creates a system built to a standard, with a simulated component for each staffed slot in the standard’s plan (see plan-simulation-system), each at its own free address in the simulated block with its endpoint placed on the outpost, and assigned its slot, all in one transaction: it lands whole or not at all. Component names are minted as an unnamed create mints them; slots nothing simulated fits are left short and listed. The simulator serves the components from its next pull. Gated by simulation:update, and also needs system:create, system:update, system:read, component:create, component:update, endpoint:create and outpost:read (and location:read when it names a location), each in the caller’s own scope; the components are created without a parent, so component:create must be all-scope, and so must component:update, since assigning each its slot writes onto it as an assignment route does. A refused piece is mapped as its own route maps it (a component refused is a 403). An outpost with no simulator connected is a 409, and a standard nothing simulated can staff a 422.

FlagTypeDefaultDescription
--locationstring(none)Where the system and its components sit, by name or dotted path
--namestring(none)The system’s name; minted from its type when empty
--standardstring(none)The standard the system is built to; its slots decide the components
--system-typestring(none)The system’s type, which also mints its name when none is given

Example:

Terminal window
omniglass simulation add-system <name> --standard standard --system-type system_type

Get the simulated fleet

omniglass simulation get

Every outpost a simulator has pulled for since the server started, each with its capabilities, its account of impairments, and the components it simulates within the caller’s component read scope, joined to their live hits. A caller sees an outpost’s simulator when its component read scope holds at least one component the outpost simulates (an all-scope reader sees all of them); no outpost read is needed. Connected is true when any listed simulator pulled recently. Hits are per server process, not stored. Gated by simulation:read.

Example:

Terminal window
omniglass simulation get

Plan a simulated component

omniglass simulation plan-component <name> [flags]

Previews what adding a simulated component of a product would create (see add-outpost-simulation-component): the lowest free address in the simulated block (127.60.0.0/16) and the endpoints the collector would reach it through, a driver attach with its inputs (a secret input names the platform secret, never its value) or a reachability probe with its target, planned exactly as the add plans them. Creates nothing and reserves nothing: the address is not held, so an add or another plan in between may take it, and an add made after this plan then lands on the next free address instead. Gated by simulation:read, and needs outpost:read on the outpost. An outpost that does not exist is a 404, one with no simulator connected a 409, a product no profile simulates a 422, and a full block or a profile with no surface the collector can reach a 409.

FlagTypeDefaultDescription
--productstring(none)A product a simulator profile simulates

Example:

Terminal window
omniglass simulation plan-component <name>

Plan a simulated system to a standard

omniglass simulation plan-system <standard>

Previews a simulated system built to a standard: each of the standard’s slots (one alternate taken per choice) staffed with the first simulated product that fits its accepted types and pins, as many as its quorum and at least one, or left short with the reason when nothing simulated fits. Creates nothing. Gated by simulation:read.

Example:

Terminal window
omniglass simulation plan-system <standard>

List the simulator’s profiles

omniglass simulation profiles

The simulator’s profile catalog, embedded in the binary: each profile with the products it simulates and the protocols it speaks. Adding a simulated component names one of these products. Gated by simulation:read.

Example:

Terminal window
omniglass simulation profiles

Commands for the standard resource

Create a standard

omniglass standard create [flags]

Creates a custom (non-official) standard, optionally as a variant of another. Gated by standard:create.

FlagTypeDefaultDescription
--labelstring(none)What an operator reads in pickers and lists
--namestring(none)The globally unique name; renameable
--parent-standard-idstring(none)A standard this one is a variant of, by handle or uuid

Example:

Terminal window
omniglass standard create --label label --name name

Create a standard from a template

omniglass standard createFromTemplate [flags]

Writes one standard of your own (official false) from a standard template in the catalog: its slots, choices, property and metric contract lines and map, in one transaction, audited once as a create carrying the template it came from (from_template). Nothing points back at the template, so a later release can change the template without touching your standard, and your standard renames, edits and deletes like any you created. The name is the template’s unless you give one; a taken name is a 409, so creating from the same template again needs a second name. A variant is created only once you hold the standard it hangs off (the parent you name, or yours named for the template’s parent), else a 422 naming the template to create from first. An unknown template is a 404. Gated by standard:create.

FlagTypeDefaultDescription
--labelstring(none)The standard’s label; omitted takes the template’s
--namestring(none)The name the standard takes; omitted takes the template’s
--parentstring(none)For a variant, the standard it hangs off, by name or uuid; omitted takes your standard named for the template’s parent
--templatestring(none)The standard template to create from, by name

Example:

Terminal window
omniglass standard createFromTemplate --template template

Delete a standard

omniglass standard delete <id>

Deletes a custom standard, refused if official (422) or still referenced by a system (409). Gated by standard:delete.

Example:

Terminal window
omniglass standard delete meeting-room

Get a standard

omniglass standard get <id>

Fetches a standard by id. Gated by standard:read.

Example:

Terminal window
omniglass standard get meeting-room

List standards

omniglass standard list

Lists the standard catalog, ordered alphabetically by label. A standard is the contract a system is built to. Gated by standard:read.

Example:

Terminal window
omniglass standard list

Commands for the metric resource

Withdraw a metric from a standard

omniglass standard metric delete <id> <metric>

Removes one line from a custom standard’s contract; conforming systems keep any samples the series already holds, now off-contract. A metric the standard does not declare is a 404, and an official standard is read-only (422). Gated by standard:delete.

Example:

Terminal window
omniglass standard metric delete meeting-room <metric>

List a standard’s declared metrics

omniglass standard metric list <id>

Lists the standard’s declared-metric contract (which metrics every system conforming to it carries), ordered by metric name, each with its optional default and required flag. Gated by standard:read.

Example:

Terminal window
omniglass standard metric list meeting-room

Declare a metric on a standard

omniglass standard metric update <id> <metric> [flags]

Declares a catalog metric on a custom standard, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official standards are read-only (422); an unknown standard is a 404 and a metric the catalog does not know is a 422. Gated by standard:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the metric’s data_type; omit for no default
--requiredboolfalseWhether every system conforming to this standard must carry the metric; defaults to false

Example:

Terminal window
omniglass standard metric update meeting-room <metric>

Commands for the property resource

Withdraw a property from a standard

omniglass standard property delete <id> <property>

Removes one line from a custom standard’s contract; conforming systems keep any value they set for it, now off-contract. A property the standard does not declare is a 404, and an official standard is read-only (422). Gated by standard:delete.

Example:

Terminal window
omniglass standard property delete meeting-room <property>

List a standard’s declared properties

omniglass standard property list <id>

Lists the standard’s declared-property contract (what every system conforming to it exposes), ordered by property name, each with its optional default and required flag. Gated by standard:read.

Example:

Terminal window
omniglass standard property list meeting-room

Declare a property on a standard

omniglass standard property update <id> <property> [flags]

Declares a catalog property on a custom standard, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official standards are read-only (422); an unknown standard is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by standard:update.

FlagTypeDefaultDescription
--default-valuestring(none)The contract default, validated against the property’s data_type; omit for no default
--requiredboolfalseWhether every system conforming to this standard must set the property; defaults to false

Example:

Terminal window
omniglass standard property update meeting-room <property>

Rename a standard

omniglass standard rename <id> [flags]

Moves a custom standard’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official standard keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by standard:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass standard rename <id> --name name

Commands for the slot resource

Withdraw a slot from a standard

omniglass standard slot delete <id> <slot>

Removes the slot from the standard, and with it every assignment conforming systems made to it. A slot the standard does not declare is a 404. Gated by standard:delete.

Example:

Terminal window
omniglass standard slot delete meeting-room <slot>

List a standard’s declared slots

omniglass standard slot list <id>

Lists the slots this standard declares (every conforming system inherits them live), ordered by name, each with its quorum and the component_types (accepted_types) and, if pinned, the products a filling component must match. An unknown standard is a 404, never an empty list. Gated by standard:read.

Example:

Terminal window
omniglass standard slot list meeting-room

Declare a slot on a standard

omniglass standard slot update <id> <slot> [flags]

Declares a slot every conforming system needs filled, or revises it in place (the slot is addressed by name, so the write is idempotent and declaring is this same route). Partial by default: the fields present in the body change and the rest of the declaration is left alone. update_mask overrides that, writing exactly the fields it names, which is how a field is cleared, and [”*”] replaces the whole declaration. An unknown standard, type, or product is a 422, as is a mask naming a field this resource does not patch. A name a conforming system already declares itself is a 409, since a slot name must mean one slot in a system, and so is a capacity below what a conforming system already holds; either names the conflicting system only if the caller may read it. Gated by standard:update.

FlagTypeDefaultDescription
--accepted-typesstring(none)The component_types a filling component’s product must be classified within (self or a descendant); replaces the accepted set wholesale when written, and an empty set accepts any type. Clearing it means naming accepted_types in update_mask
--alternatestring(none)The choice/alternate this slot joins, addressed as “choice-name/alternate-name” (#626). An empty string detaches the slot, making it unconditional; an unknown choice or alternate is a 422
--capacityint0The most components the slot will accept; must be at least quorum, and unbounded on first declare. Name capacity in update_mask with no value here to clear it back to unbounded
--impactstring(none)What an impaired slot means for its system; degraded on first declare. The same broken component matters differently depending on the slot it was filling: a dead confidence monitor is not a dead main display
--labelstring(none)The slot’s human label; defaults to the slot name on first declare
--pinned-productsstring(none)If set, a filling component’s product must be one of these; replaces the pinned set wholesale when written, and an empty set accepts any product of an accepted type. Clearing it means naming pinned_products in update_mask
--position-labelsstring(none)Human labels for each position within the slot, by index; replaces the label set wholesale when written. An empty list is not a populated field, so clearing the labels means naming position_labels in update_mask
--quorumint0How many components must fill the slot; one on first declare
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED; send [”*”] for full replacement, where every field the body omits goes back to its default. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass standard slot update meeting-room <slot>

Update a standard

omniglass standard update <id> [flags]

Patches a custom standard’s label, parent, label rule or map. The parent_standard_id field follows the three-state convention: an omitted field is unchanged, an explicit empty string clears it (a standalone standard), a handle or uuid sets it, and an unknown parent is a 422. Official standards are read-only (422). Gated by standard:update.

FlagTypeDefaultDescription
--labelstring(none)A new operator-facing label
--mapstring(none)The room-layout declaration to store; JSON null clears it; absent leaves it. Validated: positive aspect, coordinates in [0, 1], 1-based positions, no duplicate (slot, position) pair
--parent-standard-idstring(none)A new variant parent, by handle or uuid; omit to leave unchanged, "" to clear it back to a standalone standard

Example:

Terminal window
omniglass standard update meeting-room

Commands for the system resource

Commands for the alarm resource

List a system’s members’ alarms

omniglass system alarm list <name> [flags]

Every member’s alarms in one read, newest first, each naming its component: the active ones whatever their age, and those cleared in the last 30 days, capped at 500. With since (and optionally until) it is instead every alarm raised during that range, active or cleared, the same cap applying. It is what a system’s Activity reads to explain its alarms, one request however many members the system has. since after until is a 400. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--sincestring(none)Read the alarms raised during since..until instead of the default (active ones, and those cleared in the last 30 days): active, or cleared at or after since, and raised at or before until
--untilstring(none)The range’s end, with since; defaults to now and must not be earlier than since

Example:

Terminal window
omniglass system alarm list <name>

Create many systems in one write

omniglass system batchCreate [flags]

Creates systems in one transaction: each request is the body POST /systems takes, run as that create runs it, in order, so a system may name as its parent one an earlier request creates, and its location by name as the single create does. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /systems maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by system:create; each request is held to that scope, and its location resolves within your location:read scope, as its single create is.

FlagTypeDefaultDescription
--requestsstring(none)The systems to create, each the body POST /systems takes, in order: a parent before its children
--validate-onlyboolfalseRun every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written

Example:

Terminal window
omniglass system batchCreate --requests <json>

Check a system name

omniglass system checkName [flags]

Reports whether a proposed name is a valid slug and currently free within the given placement (parent wins over location; neither means the root/unplaced bucket). Advisory (Save is still gated by the unique constraint). Gated by system:update.

FlagTypeDefaultDescription
--locationstring(none)The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check
--namestring(none)The proposed name to check
--parentstring(none)The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check

Example:

Terminal window
omniglass system checkName --name name

Create a system

omniglass system create [flags]

Creates a system, optionally under a parent (a root needs an all-scoped grant, or a location inside the location subtree of a location-scoped system:create grant; a root with no location needs the all-scoped grant), at a location, conforming to a standard, and classified as a system_type. Gated by system:create; the location reference resolves within the caller’s location:read scope, because the label this stores is rendered from it, and a location outside that scope is refused (422) exactly as :renderLabel refuses to preview it.

FlagTypeDefaultDescription
--expected-namestring(none)The name a create form previewed (POST /systems:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the system_type’s stem moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422.
--labelstring(none)What an operator reads; the name is the address
--locationstring(none)Location name this system is placed at
--namestring(none)Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the system_type’s stem.
--parentstring(none)Parent system name; omit for a root system
--standard-idstring(none)The standard it conforms to, by handle or uuid; omit for a one-off system
--system-type-idstring(none)The system_type it is classified as (what it is for), by name or uuid; omit to leave it unclassified

Example:

Terminal window
omniglass system create

Start a whole system from a template

omniglass system createFromTemplate [flags]

Creates a system from a system template at a location, built to the standard you name or the template’s own (yours of that name when you hold one, else created from its standard template, with any parent it hangs off, in the same write), with a component for each slot filled to its quorum and assigned, and the declared values. A component whose slot you give an address in attach lands attached; the rest land unattached and are listed in to_attach. One transaction: it lands whole or not at all, every piece in your own scope with its own audit row carrying from_template. Gated by system:create, and also needs system:read, system:update, component:create and component:update; endpoint:create when anything attaches, standard:create when a standard is created from its template. A location outside your location scope is a 404, an unknown template or standard a 404, a standard the template cannot staff a 422 naming the slots.

FlagTypeDefaultDescription
--attachstring(none)Driver inputs per slot, one object per component of the slot in order; an object with an address (host) attaches that component, the rest land unattached
--labelstring(none)The system’s label
--locationstring(none)The location the system and its components sit in, by name or dotted path
--namestring(none)The system’s name; minted from its type when empty
--outpoststring(none)The outpost the endpoints are placed on; needed when any component attaches
--standardstring(none)A standard of your own to build to, by name; omitted takes the template’s, created from its template in the same write when you hold none of that name
--templatestring(none)The system template, by name

Example:

Terminal window
omniglass system createFromTemplate --template template

Delete a system

omniglass system delete <name>

Deletes a system, refused (409) while it still has child systems or is still referenced elsewhere. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by system:delete; read and delete scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system delete <name>

Commands for the event resource

List a system’s recent events, members included

omniglass system event list <name> [flags]

Returns the system’s own events and its members’, newest first, bounded to the last 24 hours, each row labeled by the owner that raised it, narrowed by an optional event type (key), source and message text (q). A component shared with another system appears in both systems’ lists. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)Only occurrences of this event type, by name
--qstring(none)Only occurrences whose message contains this text, case-insensitively
--sourcestring(none)Only occurrences from this transport

Example:

Terminal window
omniglass system event list <name>

Get a system

omniglass system get <name>

Fetches a system by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by system:read.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system get <name>

Read every system’s health

omniglass system health

The current health for every system in the caller’s read scope, in one call: the bulk counterpart of the per-system health read, carrying the one fact a list’s health column renders and none of the explanation. A console painting a page of systems reads this once instead of resolving every slot, occupant, alarm and transition per row. A system that has never been recomputed reads healthy. Gated by system:read; an empty scope is an empty list, not a 403.

Example:

Terminal window
omniglass system health

Read a system’s health

omniglass system health list <name> [flags]

The system’s current health and why: every slot it needs filled, whether it is impaired, what an impaired slot means for the system (impact), and for an impaired slot which assigned components are down plus the alarms that took them down. A slot that belongs to a choice (#626, an exclusive-or group such as an all-in-one alternate versus a component-built one) carries choice and alternate, and active is false when a different alternate answered the choice, meaning this slot’s own impaired figure did not move the health. Members lists every component bound into the system, slotted or not, with its own health, its open alarms and the slot it fills; a member outside every slot is shown and not rolled up, since only slots decide the health (ADR-2459). Reason names the slots behind the health. Transitions are the recorded edges inside since..until (default the last 30 days), one entry per change; since after until is a 400. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--sincestring(none)Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent
--untilstring(none)Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since

Example:

Terminal window
omniglass system health list <name>

List systems in scope

omniglass system list [flags]

Lists the systems the caller may read, each filtered to its scope subtree. An optional standard filter narrows to the systems built to one standard, and limit caps the page while total counts every match. Gated by system:read.

FlagTypeDefaultDescription
--limitint0Cap the page at this many rows; 0 or absent is no cap. total still counts every match.
--standardstring(none)Only systems built to this standard (name or uuid)

Example:

Terminal window
omniglass system list

List tags on a system

omniglass system listTags <name>

Lists the tags bound directly on a system (not the resolved cascade). Gated by system:read.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system listTags <name>

Commands for the log resource

List a system’s members’ recent log lines

omniglass system log list <name> [flags]

Returns the members’ raw log lines merged newest first, bounded to the last 24 hours and capped, each naming the component that wrote it, narrowed by an optional severity threshold and source, with the sources the window carries. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--qstring(none)Only lines whose message contains this text, case-insensitively
--severitystring(none)Only lines at this severity or more severe (RFC 5424’s eight levels); a line with no severity is left out
--sourcestring(none)Only lines that arrived on this channel

Example:

Terminal window
omniglass system log list <name>

Commands for the member resource

Take a component out of a system

omniglass system member delete <name> <component>

Unbinds this component from the system. Refused with a 409 while it still fills a slot here, since removing it would leave the system staffed by a non-member: unassign the slot first. A component that was not a member is a 404. Gated by system:update, and also needs component:update, because unbinding moves the component’s primary and restamps its label; read and update scopes drive the system’s 404 versus 403 split, and a member outside the component:update scope is a 403 (the system’s member list already names it).

Arguments: Name of the system, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system member delete <name> <component>

List the components in a system

omniglass system member list <name>

The components bound into this system, ordered by name. Membership is what a slot attaches to: every component staffing a slot here is a member, and a member may also carry no slot at all (a power conditioner is in the room without filling a declared slot). Each member carries its own health, so a system’s view can poll its members’ health here rather than reading the whole fleet. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: Name of the system, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system member list <name>

Make this the component’s default system

omniglass system member setPrimary <name> <component>

Moves the component’s default to this membership. The default answers questions asked without a system in hand; it does not decide anything that names a system explicitly. A component that was not a member here is a 404. Gated by system:update, and also needs component:update, because the default decides which system’s band every cascade on the component reads; read and update scopes drive the system’s 404 versus 403 split, and a member outside the component:update scope is a 403 (the system’s member list already names it).

Arguments: Name of the system, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system member setPrimary <name> <component>

Put a component in a system

omniglass system member update <name> <component>

Binds this component into the system. Idempotent. A component’s first membership becomes its primary with nobody asking, so a component in exactly one system never has to think about the concept; a later membership does not take that default away. Gated by system:update, and also needs component:update, because the binding writes onto the component (its primary, its label, the system band of its cascade): each end resolves in its own tier’s read scope and must be inside its update scope, so an end outside the read scope is a non-disclosing 404 and one readable but not writable a 403.

Arguments: Name of the system, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system member update <name> <component>

Commands for the metric resource

List a system’s effective metrics

omniglass system metric list <name>

Every metric the system’s standard declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the system (from_contract false). Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system metric list <name>

Commands for the sample resource

Read one metric series’ samples

omniglass system metric sample list <name> <metric> [flags]

The samples behind the effective read’s latest value for one series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with count, min, max, avg and last (null when empty), and covered_from, the earliest instant retention leaves data for. A bucket aggregates one instance’s measured samples (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured samples in the window, or a 422 listing them when there are several. Over more than 48 hours, or past the series’ retention, the resolution is raised to whole hours, and resolution_seconds is the width applied. At whole hours a series with hourly trends (an observed one) takes every hour the trend fold has closed from its trend, so the read reaches back as far as the trends are kept, and its open hours from the samples; any other series, or a finer resolution, reads its samples, within their retention (ADR-1566). Gated by system:read; an out-of-scope owner is a non-disclosing 404.

FlagTypeDefaultDescription
--hoursint0The window in hours, counted back from now; 24 when unset
--instancestring(none)The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. Ignored without a resolution
--limitint0The row cap, newest kept; 500 when unset. Ignored when a resolution is set
--resolutionint0The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. Over a window of more than 48 hours, or one past the series’ retention, it is raised to whole hours, at least one, and resolution_seconds says the width applied. A window of more than 5000 buckets is refused

Example:

Terminal window
omniglass system metric sample list <name> <metric>

Move a system

omniglass system move <name> [flags]

Relocates and/or re-parents a system: at least one of location or parent is required (422 otherwise). Both follow the three-state convention (an omitted field is unchanged, an explicit empty string clears, a name sets). A reparent is cycle-guarded and scope-injected; clearing parent to root requires an all-scoped move grant (a location-scoped grant reaches a system for read and create only). A separate act from update, and a separately grantable one (system:move), because a placement change is an authorization act, not a label edit: it moves a row out from under one grant’s subtree and under another’s. Recorded under its own audit verb, move, distinct from update. A relocate still recomputes health at both ends (the location it left and the one it arrived at); a reparent does not, since the health rollup runs system -> location, never through the system tree. A taken name at the destination is a 409. A move can RENAME the system: a platform-generated name is scoped to its placement bucket, so a move that changes the bucket re-mints the name and the ordinal in the destination. A move that changes no bucket, including a re-stated placement and a relocate of a parented system (a parent wins over a location), leaves the name alone, and an operator-typed name is never touched. Gated by system:move; read and move scopes drive the 404 versus 403 split, and the destination location resolves within the caller’s location:read scope, because the move restamps the label from it: a destination outside that scope is refused (422).

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--locationstring(none)Relocates the system to this location name. An empty string clears its placement.
--parentstring(none)Re-parents the system within the system tree to this system name; cycle-guarded and scope-injected. An empty string makes it a root system (requires an all-scoped move grant).

Example:

Terminal window
omniglass system move <name>

Preview a system label recompute

omniglass system previewLabels

Lists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by system:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.

Example:

Terminal window
omniglass system previewLabels

Commands for the property resource

Clear a property on a system

omniglass system property delete <name> <property>

Removes the system’s declared value, so the property falls back to the standard contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the system never set is a 404. Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system property delete <name> <property>

List a system’s properties and where each stands

omniglass system property list <name>

Every property the system has: each its standard declares, resolved to the system’s own value or the contract default (is_set marks a declared value), each set directly on the system (from_contract false), each a calc rule writes (source_rule), and each only observed or told by a command. Every row but a calculated one carries its reconciliation: want (declared), told (intended), is (observed, worst case across every live instance, naming is_instance) and drift, computed on read. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system property list <name>

Commands for the sample resource

Read one property series’ change history

omniglass system property sample list <name> <property> [flags]

The change history behind the effective value for one property series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with the change count, last (the value its own changes end on, null when empty) and held (the value in force at its end), and covered_from, the earliest instant retention leaves data for. Both forms carry carried_in, the value in force when the window opens (the newest measured row of the instance before it, within retention), so a step chart starts on it instead of blank. A bucket aggregates one instance’s measured changes (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured changes in the window, or a 422 listing them when there are several. Gated by system:read; an out-of-scope owner is a non-disclosing 404.

FlagTypeDefaultDescription
--hoursint0The window in hours, counted back from now; 24 when unset
--instancestring(none)The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it
--limitint0The row cap, newest kept; 500 when unset. Ignored when a resolution is set
--resolutionint0The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused

Example:

Terminal window
omniglass system property sample list <name> <property>

Set a property on a system

omniglass system property update <name> <property> [flags]

Declares a value for the property on this system, overriding the standard contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--valuestring(none)The value to declare, shape given by the property’s data_type

Example:

Terminal window
omniglass system property update <name> <property> --value <json>

Recompute system labels

omniglass system recomputeLabels

Applies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by system:update.

Example:

Terminal window
omniglass system recomputeLabels

Remove a tag value from a system

omniglass system removeTag <name> [flags]

Removes a key’s value from a system. Gated by system:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key to remove

Example:

Terminal window
omniglass system removeTag <name> --key key

Rename a system

omniglass system rename <name> [flags]

Moves the system’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by system:rename; read and rename scopes drive the 404 versus 403 split.

Arguments: The system’s current name, a dotted address, or its uuid; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--namestring(none)The new name, unique within its placement (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass system rename <name> --name name

Draft the name and label a system create would store

omniglass system renderLabel [flags]

The system tier of :renderLabel on components. Drafts the name and the label a system create would stamp, allocating nothing: the ordinal is read from the placement bucket and the drafted name is posted back as expected_name on the create. A system suppresses the first ordinal in a bucket, so the first board-meeting in a room drafts as board-meeting and the second as board-meeting-2. Omitting name drafts the name the platform would mint and refuses (422) an unclassified system, the same refusal a nameless create gives, since the stem lives on the system_type. Gated by system:create; the parent resolves within the caller’s system:create scope and the location ref within location:read, because a system’s label can carry its location’s. Omitting parent is the parentless bucket, refused (403) without an all-scoped create grant, exactly as the create refuses it.

FlagTypeDefaultDescription
--locationstring(none)The location this system will sit at, by name or uuid. Resolved within the caller’s location:read scope.
--namestring(none)The name the row will carry. Omit it to draft the name and label the platform would produce; supply it to draft the label an operator-named row would carry, which has no ordinal at all.
--parentstring(none)The parent system, by name or uuid. Part of the placement bucket a generated name’s ordinal is read from. Resolved within the caller’s system:create scope.
--standard-idstring(none)The standard this system conforms to, by name or uuid; omit for a one-off system
--system-type-idstring(none)The system_type this system is classified by, by name or uuid. Required to render a generated name’s label: the stem lives on that catalog row.

Example:

Terminal window
omniglass system renderLabel

Regenerate a system’s name

omniglass system resetName <name>

Hands the pen back to the platform: regenerates the name from the system’s current system_type and placement (the same rule a nameless create applies, the type’s stem plus the lowest free ordinal, bare for the first of that stem in the placement) and marks it name_generated, whether or not it already was. An unclassified system is a 422: the stem lives on the system_type. Gated by system:rename, the same token :rename uses: it changes the name, exactly that permission’s blast radius.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system resetName <name>

Set a tag value on a system

omniglass system setTag <name> [flags]

Binds a value for a key on a system. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by system:update.

Arguments: The entity’s name. For a component, system, or location, also accepts a dotted address (e.g. boi.17c.415a.$comp.display-1); an outpost’s name is always a single token; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--keystring(none)The tag key (must exist and apply to this kind)
--valuestring(none)The bound value

Example:

Terminal window
omniglass system setTag <name> --key key --value value

Commands for the slot resource

Commands for the assignment resource

Unassign a component from a slot

omniglass system slot assignment delete <name> <slot> <component>

Takes this component out of the slot, leaving the slot understaffed until another fills it. A component that was not filling the slot is a 404. Gated by system:update, and also needs component:update, as assigning does; read and update scopes drive the system’s 404 versus 403 split, and an occupant outside the component:update scope is a 403 (the slot’s own read already names it).

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system slot assignment delete <name> <slot> <component>

Assign a component to a slot

omniglass system slot assignment update <name> <slot> <component>

Puts this component in the slot for this system. Refused with a 422 naming both parties when the component is not a typed match: its product’s component_type outside every type the slot accepts, or (if the slot pins products) its product not one of them. A slot with no accepted types takes any type. Idempotent. Gated by system:update, and also needs component:update, because staffing a slot makes the component a member and writes onto it: each end resolves in its own tier’s read scope and must be inside its update scope, so an end outside the read scope is a non-disclosing 404 and one readable but not writable a 403.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead. The component’s name, or a dotted address (e.g. boi.17c.415a.$comp.display-1); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system slot assignment update <name> <slot> <component>

Withdraw a slot from a system

omniglass system slot delete <name> <slot>

Removes a slot declared on this system, and with it every assignment to it. A slot the system does not declare itself is a 404 (a slot inherited from its standard is withdrawn on the standard, not here). Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system slot delete <name> <slot>

List a system’s effective slots

omniglass system slot list <name>

Every slot this system needs filled: those its standard declares (from_standard true) plus those declared directly on it, each with the types it accepts (and products it pins, if any), the components filling it, and how many more it wants before quorum (understaffed). A one-off system shows only its own. Gated by system:read; an out-of-scope system is a non-disclosing 404.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass system slot list <name>

Exchange two occupants’ positions within a slot

omniglass system slot swapPositions <name> <slot> [flags]

Exchanges the positions of whichever components currently hold position and with within this slot: an ordering change only, it does not affect who is assigned or the system’s health. Either position missing an occupant is a 404. Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--positionint0One of the two positions to exchange
--withint0The other position to exchange with

Example:

Terminal window
omniglass system slot swapPositions <name> <slot> --position <int> --with <int>

Declare a slot on a system

omniglass system slot update <name> <slot> [flags]

Declares a slot directly on this system (how a one-off system gets slots at all, and how a conforming one adds what its standard does not cover), or revises it in place. Partial by default: the fields present in the body change and the rest of the declaration is left alone. update_mask overrides that, writing exactly the fields it names, which is how a field is cleared, and [”*”] replaces the whole declaration. A name the system’s standard already declares is a 409: a system slot never shadows an inherited one, since a slot name must mean one slot in a system. Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--accepted-typesstring(none)The component_types a filling component’s product must be classified within (self or a descendant); replaces the accepted set wholesale when written, and an empty set accepts any type. Clearing it means naming accepted_types in update_mask
--alternatestring(none)The choice/alternate this slot joins, addressed as “choice-name/alternate-name” (#626). An empty string detaches the slot, making it unconditional; an unknown choice or alternate is a 422
--capacityint0The most components the slot will accept; must be at least quorum, and unbounded on first declare. Name capacity in update_mask with no value here to clear it back to unbounded
--impactstring(none)What an impaired slot means for its system; degraded on first declare. The same broken component matters differently depending on the slot it was filling: a dead confidence monitor is not a dead main display
--labelstring(none)The slot’s human label; defaults to the slot name on first declare
--pinned-productsstring(none)If set, a filling component’s product must be one of these; replaces the pinned set wholesale when written, and an empty set accepts any product of an accepted type. Clearing it means naming pinned_products in update_mask
--position-labelsstring(none)Human labels for each position within the slot, by index; replaces the label set wholesale when written. An empty list is not a populated field, so clearing the labels means naming position_labels in update_mask
--quorumint0How many components must fill the slot; one on first declare
--update-maskstring(none)Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED; send [”*”] for full replacement, where every field the body omits goes back to its default. A field this resource does not patch is a 422 naming it

Example:

Terminal window
omniglass system slot update <name> <slot>

Update a system

omniglass system update <name> [flags]

Patches a system’s label, standard, or system_type. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: relocating or re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. The standard and system_type fields both follow the three-state convention: an omitted field is unchanged, an explicit empty string clears (a one-off system, an unclassified system), a name sets. A new standard declaring a slot name the system declares itself is a 409 naming the slot, since a slot name must mean one slot in a system. A standard change carries the system’s staffing in the same transaction: each occupant of an inherited slot moves onto the new standard’s slot of the same name when it is still a typed match and the slot has room, and is released, staying a member, otherwise; clearing the standard releases every inherited assignment. Gated by system:update; read and update scopes drive the 404 versus 403 split.

Arguments: The system’s name, or a dotted address (e.g. boi.17c.$sys.av); a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--labelstring(none)A new operator-facing label
--standard-idstring(none)A new standard, by handle or uuid; "" clears it (a one-off system)
--system-type-idstring(none)A new system_type, by name or uuid; "" clears it (an unclassified system)

Example:

Terminal window
omniglass system update <name>

Commands for the system-type resource

Create a system type

omniglass system-type create [flags]

Creates a custom (non-official) system_type, optionally under a parent and optionally with the label_rule systems of that type get. A root type must carry a stem, since it has no ancestor to inherit one from. An unparseable label_rule is a 422. Gated by system_type:create.

FlagTypeDefaultDescription
--abbrevstring(none)A compact form of label; omit to inherit the parent’s
--iconstring(none)A glyph key; omit to inherit the parent’s
--labelstring(none)What an operator reads in pickers and lists
--label-rulestring(none)The label rule systems of this type get, a Go text/template over the system data map; omit to inherit the nearest ancestor’s. Refused (422) if it does not compile
--namestring(none)The globally unique name
--parent-idstring(none)The parent system_type, by name or uuid; omit for a root type
--stemstring(none)The prefix a generated system name is built from; omit to inherit the parent’s. Lowercase letters, digits, and hyphens. Required for a root type, which has no ancestor to inherit one from.

Example:

Terminal window
omniglass system-type create --label label --name name

Delete a system type

omniglass system-type delete <id>

Deletes a custom system_type, refused if official (422), still a parent of another system_type (409), or still classifying a system (409). Gated by system_type:delete.

Example:

Terminal window
omniglass system-type delete av

List system types

omniglass system-type list

Lists the system_type catalog (the taxonomy of what a system is for: meeting, teaching, signage), ordered alphabetically by label. Each row carries its parent link, so the console reconstructs the tree client-side. Distinct from standard, which is the contract a system is built to. Gated by system_type:read.

Example:

Terminal window
omniglass system-type list

Update a system type

omniglass system-type update <id> [flags]

Patches a custom system_type’s label, stem, icon, abbrev, or label_rule. An unparseable label_rule is a 422 at rule-edit time, never a broken row at create time, and setting one restamps nothing on its own: apply it with /systems:recomputeLabels after seeing the blast radius with :previewLabels. Official types are read-only (422). Gated by system_type:update.

FlagTypeDefaultDescription
--abbrevstring(none)A new compact form; an empty string clears it, so this type inherits the nearest ancestor’s again
--iconstring(none)A new glyph key; an empty string clears it, so this type inherits the nearest ancestor’s again
--labelstring(none)A new operator-facing label
--label-rulestring(none)A new label rule for systems of this type; omit to leave unchanged, "" to clear back to the inherited one. Refused (422) if it does not compile. Editing it restamps nothing on its own: apply it with /systems:recomputeLabels, having seen the blast radius with :previewLabels
--stemstring(none)A new name prefix (lowercase letters, digits, and hyphens); an empty string CLEARS it, so this type inherits the nearest ancestor’s again. A root type has no ancestor to inherit from and is refused (422).

Example:

Terminal window
omniglass system-type update av

Commands for the tag resource

Clear a platform tag value

omniglass tag clearPlatform <name>

Removes the platform-tier binding for a key. Gated by tag:update (all-scope) and platform:update.

Example:

Terminal window
omniglass tag clearPlatform <name>

Mint a tag key

omniglass tag create [flags]

Adds a key to the governed vocabulary. The name is normalized (a lowercase identifier); the optional label is what an operator reads instead. Gated by tag:create (all-scope, an admin action).

FlagTypeDefaultDescription
--allowed-valuesstring(none)The value enum a bound value must belong to; omit for free text
--applies-tostring(none)Entity kinds this key may bind to (component, system, location); omit for universal
--labelstring(none)What an operator reads in lists and pickers (Cost Center); omit to fall back to the name
--namestring(none)The normalized name (lowercase letters, digits, and hyphens), unique tenant-wide
--propagatesboolfalseWhether bindings cascade to descendants; defaults true

Example:

Terminal window
omniglass tag create --name name

Delete a tag key

omniglass tag delete <name>

Removes a key from the vocabulary, cascading its bindings. Gated by tag:delete (all-scope).

Example:

Terminal window
omniglass tag delete <name>

List tag keys

omniglass tag list

Lists the governed key vocabulary. Rides the tag:read floor.

Example:

Terminal window
omniglass tag list

Set a platform tag value

omniglass tag setPlatform <name> [flags]

Binds an install-wide default value for a key at the platform tier. Gated by tag:update (all-scope) and platform:update.

FlagTypeDefaultDescription
--valuestring(none)The bound value

Example:

Terminal window
omniglass tag setPlatform <name> --value value

Update a tag key

omniglass tag update <name> [flags]

Replaces a key’s governance fields (applies_to, propagates) and patches its label; the name is fixed. Gated by tag:update (all-scope).

FlagTypeDefaultDescription
--allowed-valuesstring(none)The value enum a bound value must belong to; omit for free text
--applies-tostring(none)Entity kinds this key may bind to; omit for universal
--labelstring(none)A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone
--propagatesboolfalseWhether bindings cascade to descendants; defaults true

Example:

Terminal window
omniglass tag update <name>

List the distinct values bound for a key

omniglass tag values <name>

Returns the distinct values already bound for a key across the fleet, for value autocomplete on a free-text key (an enum key carries its allowed set on the key itself). Rides the tag:read floor.

Example:

Terminal window
omniglass tag values <name>

Commands for the task resource

Get a task

omniglass task get <id>

Fetches a task by id. A task whose component is out of the caller’s read scope is a non-disclosing 404. Gated by task:read.

Example:

Terminal window
omniglass task get <id>

List tasks in scope

omniglass task list

Lists the tasks whose endpoint’s owning component the caller may read (the component cascade). Tasks are derived from endpoints, not authored. Gated by task:read.

Example:

Terminal window
omniglass task list

Commands for the telemetry resource

Push telemetry for an owner

omniglass telemetry push [flags]

Accepts per-lane observations (metrics, properties, events) and raw log lines for one owner and publishes them onto the ingest lane. Each lane validates against its own catalog: an unregistered name is rejected and reported in the response rather than silently dropped, and a property or event payload violating its type’s schema refuses the batch with a 422. Every key has one writer class, and a push writes only a collected key: a built-in key an outpost writes (a reachability or rung, a probe metric or timing, a held session’s state, collection-failed, an endpoint’s collection telemetry) is an outpost’s own observation and a platform key (health, the webhook receiver’s counts) is the platform’s, each rejected by name on every lane; a key a calc rule outputs is rejected naming the rule. The owner is a component or a system; a system batch carries no log lines (a log line is component-owned), refused with a 422. An observation’s instance is the endpoint it came through: one naming no endpoint on the owner refuses the batch with a 422 naming it and listing the owner’s endpoints, and a system has none, so a system’s observations name no instance. Gated by telemetry:push, whose scope must cover the declared owner on its own tier (one check per batch): the push scope alone is enough to see the owner (no component:read or system:read is needed), an owner outside both the push scope and the caller’s read of that kind is a non-disclosing 404, and one the caller can read but may not push to is a 403.

FlagTypeDefaultDescription
--eventsstring(none)Natively caught occurrences, validated against event_type
--logsstring(none)Raw untyped log lines. No catalog gate. Component owners only: a system batch carrying one is refused with a 422
--metricsstring(none)Numeric observations, validated against metric_type
--ownerstring(none)The entity every row in the batch lands under
--propertiesstring(none)Categorical observations, validated against property_type and each type’s validation schema
--sourcestring(none)Who observed this batch (recorded as the provenance source on every row)
--tsstring(none)Batch timestamp; a per-item timestamp overrides it

Example:

Terminal window
omniglass telemetry push --owner <json>

Commands for the template resource

Get a template

omniglass template get <template>

Reads one template from the catalog by name, whole: its kind and the body that kind carries. An unknown name is a 404. Gated by template:read.

Example:

Terminal window
omniglass template get meeting-room

List templates

omniglass template list [flags]

Lists the template catalog this binary ships, ordered by kind then name, optionally one kind. A template is an example an operator clones: creating from one (POST /standards:createFromTemplate, and the same method on components, systems and locations) writes ordinary rows the operator owns, and nothing points back at the template. Gated by template:read.

FlagTypeDefaultDescription
--kindstring(none)Only templates of this kind; omitted lists every kind

Example:

Terminal window
omniglass template list

Mint an additional bearer token for an existing user (direct DB)

omniglass token <username> [flags]

Issues a new bearer credential for an existing user, addressed by username, and prints the token once. The same trusted direct-DB lane as bootstrap: token reissue, break-glass, or a fresh login token for a dev database when the owner already exists. A —description (required) names what the token is for. The token expires after —ttl (default 90 days, hard maximum 365 days); every credential is time-bounded.

FlagTypeDefaultDescription
--descriptionstring(none)what the token is for (required)
--ttlduration2160h0m0show long the token is valid before it expires (max 365 days)

Commands for the transport resource

List the transports the platform speaks

omniglass transport list

Lists the built-in transports: the wires an endpoint can speak over, a build-time fact of the binary (ADR-0073). Gated by endpoint:read, the surface that consumes it.

Example:

Terminal window
omniglass transport list

Commands for the unclaimed-source resource

List the sources no endpoint claims

omniglass unclaimed-source list

The unclaimed-source inbox: each source a listener heard from that no endpoint claims (a webhook post to an unknown or rotated token), with how often, when first and last, and its last message cut to 512 bytes. Bounded at 256 sources per listener, the least recently heard evicted, and aged out after seven days; a source is let go once its messages land on an endpoint. Claim one by creating its endpoint. Gated by outpost:read on an all-scope grant: it is the listener’s own observation, and listeners are fleet-wide as outposts are.

Example:

Terminal window
omniglass unclaimed-source list

Commands for the user resource

Archive a user

omniglass user archive <id>

Soft-deletes a user: it is hidden from the directory, can no longer authenticate, and its rows stay intact, reversibly (restore) until purged. Gated by user:archive (all-scope). The last active owner cannot be archived.

Example:

Terminal window
omniglass user archive <id>

Commands for the avatar resource

Get a user’s profile picture

omniglass user avatar list <id>

Returns the user’s profile picture as a base64-encoded JPEG. Gated by user:read:admin. A user without a picture is a 404.

Example:

Terminal window
omniglass user avatar list <id>

Create a person

omniglass user create [flags]

Creates a person with an optional initial password. Gated by user:create (all-scope). The new user holds no grants; assign roles separately.

FlagTypeDefaultDescription
--emailstring(none)Contact email for the account
--labelstring(none)What an operator reads in lists; falls back to the username
--passwordstring(none)Optional initial password (at least 12 characters, not a common password, not containing the username); the user changes it after signing in
--usernamestring(none)Unique sign-in name (lowercase letters, digits, and . _ -)

Example:

Terminal window
omniglass user create --username username

Disable a user

omniglass user disable <id>

Soft-disables a user so it can no longer authenticate; its audit trail is kept. Gated by user:update (all-scope). The last active owner cannot be disabled.

Example:

Terminal window
omniglass user disable <id>

Enable a user

omniglass user enable <id>

Re-enables a disabled user, restoring its ability to authenticate. Gated by user:update (all-scope).

Example:

Terminal window
omniglass user enable <id>

Get a user

omniglass user get <id>

Fetches one user by id with its profile and grants. Gated by user:read:admin.

Example:

Terminal window
omniglass user get <id>

Commands for the grant resource

Grant a role to a user

omniglass user grant create <id> [flags]

Assigns a role at a scope to a user. Gated by user_grant:create (all-scope). Refused (403) when the granted role’s capabilities exceed the granter’s own (no promoting anyone, including yourself, to a higher tier such as owner). A duplicate is 409, an unknown role or bad scope 422.

FlagTypeDefaultDescription
--rolestring(none)A role id (viewer, operator, admin, owner, or a custom role)
--scope-idstring(none)The scope root, the location, system or component the scope kind names, by name, dotted address or uuid (stored as its uuid); omit for the all scope
--scope-kindstring(none)The scope kind; ‘all’ confers the whole fleet (group-as-scope is unbuilt and not offered)
--scope-opstring(none)How the scope root matches the tree: subtree (root + descendants, the default), subtree_excl_root (descendants only for update/delete, root kept for read/create), or self (the root row only). Moot for the all scope.

Example:

Terminal window
omniglass user grant create <id> --role role --scope-kind scope_kind

Revoke a grant

omniglass user grant delete <id> <grantId>

Removes one grant from a user. Gated by user_grant:delete (all-scope). The last owner grant cannot be revoked.

Example:

Terminal window
omniglass user grant delete <id> <grantId>

Commands for the identity-link resource

Link a person to an identity at the provider

omniglass user identity-link create <id> [flags]

Links another person to an identity at the identity provider (iss|sub), so they sign in through single sign-on as that person. Email never links. Gated by user:link-identity (all-scope) and the takeover guard a password reset takes: refused on yourself (link from your profile), on an owner (an owner links their own identity), or on a person whose capabilities exceed yours. An identity already linked to anyone is a 409. Audited, the link recording who made it; granting the person owner later deletes it.

FlagTypeDefaultDescription
--identifierstring(none)The identity at the provider as iss

Example:

Terminal window
omniglass user identity-link create <id> --identifier identifier

Unlink a person from an identity at the provider

omniglass user identity-link delete <id> <link>

Removes one of another person’s identity links; every session and token they signed in through it ends with it. Gated by user:link-identity (all-scope) and the same takeover guard as linking. Audited.

Example:

Terminal window
omniglass user identity-link delete <id> <link>

List a person’s identity links

omniglass user identity-link list <id>

Lists the identities at the identity provider a person signs in through (single sign-on), each iss|sub with who made it and when it was last used. Gated by user:read:admin (all-scope), as the user directory is.

Example:

Terminal window
omniglass user identity-link list <id>

Impersonate a user (view-as or act-as)

omniglass user impersonate <id> [flags]

Mints a bounded, revocable token to view as (read-only) or act as (full) the target. Gated by user:impersonate (all-scope). Refused on self, on an owner target (owners are un-impersonatable by anyone), when it would grant a capability the caller lacks (the escalation guard), from within an existing impersonation, or to an agent token.

FlagTypeDefaultDescription
--duration-minutesint0Session lifetime in minutes (default 30, max 1440)
--modestring(none)view_as is read-only; act_as is full, with mutations attributed to both the real actor and the impersonated user

Example:

Terminal window
omniglass user impersonate <id> --mode mode

List users

omniglass user list [flags]

Lists all users (people and machine users) with their grants. Gated by user:read:admin.

FlagTypeDefaultDescription
--include-archivedboolfalseInclude archived (soft-deleted) users, hidden by default
--kindstring(none)Optionally filter by user kind

Example:

Terminal window
omniglass user list

Purge a user

omniglass user purge <id>

Hard-deletes an archived user and its owned rows (profile, credentials, grants, memberships); the audit trail is preserved. Irreversible. A person a notification target notifies cannot be purged (a 409; the refusal names the target to a caller who reads targets). Gated by user:purge:admin (admin-sensitive, all-scope), and the user must be archived first.

Example:

Terminal window
omniglass user purge <id>

Remove a user’s profile picture

omniglass user removeAvatar <id>

Clears another person’s profile picture. Gated by user:set-avatar (all-scope). Removing an absent picture is a no-op. Audited with the administrator as the actor.

Example:

Terminal window
omniglass user removeAvatar <id>

Reset a user’s password

omniglass user resetPassword <id> [flags]

Sets a new password for another person (an administrator action; the target’s current password is not required). Gated by user:reset-password (all-scope). The new password must meet the password policy; a violation is a 422. Refused on yourself (change your own password from your profile, which verifies your current one), on an owner (owners cannot be reset by anyone), or when it would exceed the caller’s own capabilities (the takeover guard, shared with impersonation). The action is audited with the administrator as the actor.

FlagTypeDefaultDescription
--passwordstring(none)The new password (at least 12 characters, not a common password, not containing the username)

Example:

Terminal window
omniglass user resetPassword <id> --password password

Restore a user

omniglass user restore <id>

Reverses an archive: the account is restored to active and can authenticate again. Gated by user:archive (all-scope).

Example:

Terminal window
omniglass user restore <id>

Commands for the session resource

List a user’s sessions

omniglass user session list <id>

Lists another user’s active bearer credentials (login sessions and API tokens) with their non-secret metadata, newest first, so an administrator can see where an account is signed in and revoke a session that should not be. Gated by user:revoke-session (all-scope). The token secret is never returned, and current is always false (there is no “this request’s own session” when viewing another user).

Example:

Terminal window
omniglass user session list <id>

Revoke a user’s session

omniglass user session revoke <id> <sid>

Revokes one of another user’s sessions or tokens by id (an administrator action; the target is immediately signed out of that credential). Gated by user:revoke-session (all-scope). Bounded to the target, so a credential id that is not theirs is a non-disclosing 404, never a cross-user revoke. Refused (403) on an owner (an owner’s sessions cannot be revoked by anyone, the takeover guard shared with impersonation and password reset) or when it would exceed the caller’s own capabilities. Audited with the administrator as the actor.

Example:

Terminal window
omniglass user session revoke <id> <sid>

Revoke all of a user’s sessions or tokens

omniglass user session revokeAll <id> [flags]

Revokes every one of another user’s web-login sessions, or every one of its CLI/API tokens (chosen by purpose), in a single administrator action, returning how many were ended. Gated by user:revoke-session (all-scope). Bounded to the target and never crosses purpose (revoking sessions leaves tokens, and vice versa). Refused (403) on an owner (the takeover guard shared with impersonation and the password reset) or when it would exceed the caller’s own capabilities. Audited with the administrator as the actor.

FlagTypeDefaultDescription
--purposestring(none)Which credentials to revoke: all of the user’s web-login sessions, or all its CLI/API tokens

Example:

Terminal window
omniglass user session revokeAll <id> --purpose purpose

Set a user’s profile picture

omniglass user setAvatar <id> [flags]

Sets another person’s profile picture (an administrator action). Gated by user:set-avatar (all-scope). The image (JPEG, PNG, or WebP, base64-encoded) is normalized server-side to a 256x256 JPEG; a bad or oversize image is a 422. Audited with the administrator as the actor.

FlagTypeDefaultDescription
--image-base64string(none)The image (JPEG, PNG, or WebP), base64-encoded; normalized server-side to a 256x256 JPEG

Example:

Terminal window
omniglass user setAvatar <id> --image-base64 image_base64

Update a user

omniglass user update <id> [flags]

Updates a person’s label, email, and username. Gated by user:update (all-scope). A username is not an entity name and is patchable here rather than through a :rename method: it is the sign-in identifier, on its own rule, and nothing keys on it.

FlagTypeDefaultDescription
--emailstring(none)Email; empty clears it
--labelstring(none)Label; empty clears it
--usernamestring(none)Sign-in name (lowercase letters, digits, and . _ -); renaming is safe

Example:

Terminal window
omniglass user update <id>

Commands for the user-group resource

Create a user group

omniglass user-group create [flags]

Creates a user group. Gated by user_group:create (all-scope). A duplicate name is 409.

FlagTypeDefaultDescription
--descriptionstring(none)Free-form notes on what the group is for
--labelstring(none)What an operator reads in lists
--namestring(none)Unique group name (lowercase letters, digits, and hyphens)

Example:

Terminal window
omniglass user-group create --name name

Delete a user group

omniglass user-group delete <group>

Removes a group and, by cascade, its memberships and grants. A group a notification target notifies cannot be deleted (a 409): the refusal names the target to a caller who reads targets. Gated by user_group:delete (all-scope).

Example:

Terminal window
omniglass user-group delete night-shift

Get a user group

omniglass user-group get <group>

One user group, by name or uuid. Gated by user_group:read:admin.

Example:

Terminal window
omniglass user-group get night-shift

Commands for the grant resource

Grant a role to a group

omniglass user-group grant create <group> [flags]

Assigns a role at a scope to a group; its members inherit it. Gated by user_grant:create (all-scope). Refused (403) when the granted role’s capabilities exceed the granter’s own, exactly as for a direct grant. A duplicate is 409, and so is an owner grant on a group an identity provider group mapping feeds (no provider group reaches an owner).

FlagTypeDefaultDescription
--rolestring(none)A role id (viewer, operator, admin, owner, or a custom role)
--scope-idstring(none)The scope root, the location, system or component the scope kind names, by name, dotted address or uuid (stored as its uuid); omit for the all scope
--scope-kindstring(none)The scope kind; ‘all’ confers the whole fleet (group-as-scope is unbuilt and not offered)
--scope-opstring(none)How the scope root matches the tree; moot for the all scope

Example:

Terminal window
omniglass user-group grant create night-shift --role role --scope-kind scope_kind

Revoke a group grant

omniglass user-group grant delete <group> <grantId>

Removes one grant from a group. Gated by user_grant:delete (all-scope).

Example:

Terminal window
omniglass user-group grant delete night-shift <grantId>

List a group’s grants

omniglass user-group grant list <group>

The role x scope grants a group confers on its members. Gated by user_group:read:admin.

Example:

Terminal window
omniglass user-group grant list night-shift

Commands for the idp-mapping resource

Map an identity provider group to a group

omniglass user-group idp-mapping create <group> [flags]

Maps a value of the identity provider’s groups claim to this group, so a person whose token carries it becomes an idp member at their next sign-in and inherits the group’s grants. The issuer defaults to the configured provider’s; with none configured and none given it is a 422. Refused (409) when the group carries an owner grant at any scope, since no provider group may reach an owner, and when the group already maps the value. Gated by user_group:update (all-scope). Under an agent token or the agent ceiling, refused (403) when the group’s grants exceed the caller’s bounded permissions, as adding a member is.

FlagTypeDefaultDescription
--claim-valuestring(none)The value of the identity provider’s groups claim that puts a person in this group
--issuerstring(none)The identity provider’s issuer, exactly as its tokens carry it; omit for the configured provider’s

Example:

Terminal window
omniglass user-group idp-mapping create night-shift --claim-value claim_value

Remove an identity provider group mapping

omniglass user-group idp-mapping delete <group> <mappingId>

Removes one mapping. When it was the group’s last mapping from its issuer, that issuer’s idp memberships of the group are removed with it; otherwise they are re-judged at each person’s next sign-in or re-check. Local memberships are never touched. Gated by user_group:update (all-scope).

Example:

Terminal window
omniglass user-group idp-mapping delete night-shift <mappingId>

List a group’s identity provider mappings

omniglass user-group idp-mapping list <group>

The identity provider groups that put a person in this group: each a value of the provider’s groups claim, keyed by its issuer. At each single sign-on sign-in, and each re-check refresh whose id_token carries the claim, a person’s idp memberships from that issuer are set to exactly the mapped set. Gated by user_group:read:admin.

Example:

Terminal window
omniglass user-group idp-mapping list night-shift

List user groups

omniglass user-group list

Every user group. Gated by user_group:read:admin.

Example:

Terminal window
omniglass user-group list

Commands for the member resource

Add a member to a group

omniglass user-group member create <group> [flags]

Adds a user to a group; its members inherit the group’s grants. The membership is local: a member an identity provider’s groups brought (idp) becomes local, so it no longer follows the provider. Gated by user_group:update (all-scope). Idempotent. Under an agent token or the agent ceiling, refused (403) when the group’s grants exceed the caller’s bounded permissions, since membership is a grant by another route.

FlagTypeDefaultDescription
--user-idstring(none)The user to add: a person’s username, a machine user’s name, or its uuid

Example:

Terminal window
omniglass user-group member create night-shift --user-id user_id

Remove a member from a group

omniglass user-group member delete <group> <user>

Removes a user from a group; it stops inheriting the group’s grants. An idp membership comes back at the person’s next sign-in or re-check while a mapping still puts them in the group. Gated by user_group:update (all-scope).

Example:

Terminal window
omniglass user-group member delete night-shift alice

List a group’s members

omniglass user-group member list <group>

The users in a group, each with its source: local (an admin added it) or idp (synced from an identity provider’s groups claim through a mapping, with the issuer). Gated by user_group:read:admin.

Example:

Terminal window
omniglass user-group member list night-shift

Rename a user group

omniglass user-group rename <group> [flags]

Moves the group’s name. A separate act from an update, and a separately grantable one, because it breaks the references stored outside this system; inside it nothing breaks, since membership and grants both key on the group’s uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by user_group:rename (all-scope).

FlagTypeDefaultDescription
--namestring(none)The new unique group name (lowercase letters, digits, hyphens)

Example:

Terminal window
omniglass user-group rename night-shift --name name

Update a user group

omniglass user-group update <group> [flags]

Updates a group’s presentational fields. The name is not patchable: renaming is the :rename custom method. Gated by user_group:update (all-scope).

FlagTypeDefaultDescription
--descriptionstring(none)Description; empty clears it
--labelstring(none)Label; empty clears it

Example:

Terminal window
omniglass user-group update night-shift

Commands for the variable resource

Create a variable

omniglass variable create [flags]

Sets a variable at an owner scope. The value is validated against value_type; the optional label is what an operator reads instead of the name. Gated by variable:create, plus platform:create when owner_kind is platform (the install-wide tier).

FlagTypeDefaultDescription
--labelstring(none)What an operator reads in lists and pickers (Poll Interval); omit to fall back to the name
--namestring(none)The cascade name (lowercase letters, digits, and hyphens); unique per owner
--ownerstring(none)The owning entity’s name; omit for a platform variable
--owner-kindstring(none)Which tier owns this variable
--valuestring(none)The value, validated against value_type
--value-typestring(none)The declared value type

Example:

Terminal window
omniglass variable create --name name --owner-kind owner_kind --value <json> --value-type value_type

Delete a variable

omniglass variable delete <variable>

Removes a variable, by name or uuid. Gated by variable:delete, plus platform:delete when the variable sits at the platform tier; read and delete scopes on the owner drive the 404 versus 403 split.

Arguments: The variable: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

Example:

Terminal window
omniglass variable delete poll-interval

List variables (admin directory)

omniglass variable list

Lists every variable. Requires an all-scope read. Gated by variable:read.

Example:

Terminal window
omniglass variable list

Update a variable

omniglass variable update <variable> [flags]

Replaces a variable’s value (validated against its fixed value_type) and patches its label; either may be omitted, and an empty label clears it. Name, type, and owner are fixed at creation. Gated by variable:update, plus platform:update when the variable sits at the platform tier.

Arguments: The variable: its name, or / where more than one you can see shares it (the owner by name, dotted address or uuid, or $platform), or its uuid. The slash is percent-encoded in a URL, as the CLI does; a name more than one row you can see answers to is refused with a 409 listing each match; pass its uuid or its dotted address instead.

FlagTypeDefaultDescription
--labelstring(none)A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone
--valuestring(none)The new value, validated against the fixed value_type; omit to leave it

Example:

Terminal window
omniglass variable update poll-interval

Commands for the vendor resource

Create a vendor

omniglass vendor create [flags]

Creates a custom (non-official) vendor. Gated by vendor:create.

FlagTypeDefaultDescription
--iconstring(none)A glyph key, e.g. boreal-logo
--kindstring(none)The role the organization plays
--labelstring(none)What an operator reads in pickers and lists
--namestring(none)The globally unique name; renameable
--support-phonestring(none)The vendor’s support line
--websitestring(none)The vendor’s website (http or https)

Example:

Terminal window
omniglass vendor create --label label --name name

Delete a vendor

omniglass vendor delete <id>

Deletes a custom vendor, refused if official (422). Gated by vendor:delete.

Example:

Terminal window
omniglass vendor delete boreal

Get a vendor

omniglass vendor get <id>

Fetches a vendor by id. Gated by vendor:read.

Example:

Terminal window
omniglass vendor get boreal

List vendors

omniglass vendor list

Lists the vendor catalog, ordered alphabetically by label. Populates the vendor picker on the product form. Gated by vendor:read.

Example:

Terminal window
omniglass vendor list

Rename a vendor

omniglass vendor rename <id> [flags]

Moves a custom vendor’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official vendor keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by vendor:rename.

FlagTypeDefaultDescription
--namestring(none)The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid)

Example:

Terminal window
omniglass vendor rename <id> --name name

Update a vendor

omniglass vendor update <id> [flags]

Patches a custom vendor’s label, kind, icon, support_phone, or website. Official vendors are read-only (422). Gated by vendor:update.

FlagTypeDefaultDescription
--iconstring(none)A new glyph key
--kindstring(none)A new organization role
--labelstring(none)A new operator-facing label
--support-phonestring(none)A new support line
--websitestring(none)A new website (http or https)

Example:

Terminal window
omniglass vendor update boreal

Commands for the view resource

Commands for the fleet resource

Read the whole in-scope fleet in one call

omniglass view fleet list

Returns every in-scope location (flat, with parent and health), every in-scope system (with location and health), and one dot per component in each system. A dot carries the component id, its health, and the primary/shared flags, not a full component row. The open_alarms count is the alarms open on the components the caller may read. Each tier is scoped on its own read permission: a caller who can read locations but not components gets locations with empty systems, and a caller with no scope gets an empty result, not an error. Gated by location:read.

Example:

Terminal window
omniglass view fleet list

Commands for the platform resource

Read Omniglass’s own health in one call

omniglass view platform list

Returns the read behind the Platform health page: the server clock (read_at), whether this is a lab, the platform system and its health, each server’s running build, start time and panels (Requests, Ingest, Queues and Retention: each key’s catalog facts and its latest sample per instance, a ranked key cut to the ten highest of its newest window in the database, and the open alarms on the server component with the key each one’s rule samples), the outpost table’s column groups with each key’s catalog facts, and one row per outpost with its last heartbeat, its platform component’s current figure per key (a gauge’s latest sample, a window count only while its window is the newest) and its loss over its own hops, and the pipeline: each hop an item crosses, in order, with its in, out and loss per kind and per component, newest window and last hour, and the end to end. The rows need a fleet-wide outpost:read, so a location-scoped holder is refused rather than shown an empty table. The platform components are unplaced, so the figures, health and servers (with their panels) need a fleet-wide component:read and the system a fleet-wide system:read; short of that each (the pipeline and the outpost loss with them) is left out, never zeroed. Gated by outpost:read.

Example:

Terminal window
omniglass view platform list

Commands for the simulation resource

Read what each simulator saw against what the platform collected

omniglass view platform simulation list

Returns the read behind the Platform health page’s simulation section: one row per outpost with a connected simulator, read over a sliding window the server brackets each minute by default (bracket_seconds). Each gap is a loss ratio (count over what went into the hop, 0 healthy, null when nothing did), its masking term and how to read it: impaired under an applied impairment, restarted while the window holds a restart or a change to the fleet the simulator serves, otherwise loss. Beside them, the receipts counted for the window, each protocol’s received and answered counts, service-time quantiles and in-flight high water, and each simulated component’s requests. An outpost reads warming up until the server holds a full window. The devices are unplaced simulator state, so the read needs a fleet-wide component:read; short of that it answers not found. Gated by simulation:read.

Example:

Terminal window
omniglass view platform simulation list

Read the history of one or more view bindings

omniglass view run [flags]

Reads each binding’s history from one snapshot and answers the tail cursor it was taken at (ADR-1830). A binding names a primitive (metric, property, event or log), an entity selector (literal refs, or a kind and a filter), the keys, and a range (from and to, or window_seconds back from now). A metric or property binding answers one series per resolved entity, key and instance: its raw points, or with step_seconds every bucket of an epoch-aligned grid (metric buckets carry count, min, max, avg and last; property buckets count, last and held), the older hours from the hourly trends when an hour-multiple step reaches past the raw retention. An event or log binding answers a page of rows, newest first, and a next_page. /views:watch from the cursor carries exactly the rows the history does not. Gated by view:read; each binding also needs :read (component:read or system:read) and resolves only inside that read’s scope: a filter selector resolves to the visible entities, and a literal ref out of scope is the same 404 as one that does not exist. A selector past 200 entities, a raw read past 20000 points or a grid past 5000 buckets is a 422, never a truncated answer.

FlagTypeDefaultDescription
--bindingsstring(none)The bindings read, all from one snapshot

Example:

Terminal window
omniglass view run --bindings <json>

Follow view bindings live over one SSE stream

omniglass view watch [flags]

Streams the rows that land for every binding, and a changed notice for every topic a write moved, as Server-Sent Events, one connection for all of them (ADR-1830, ADR-2731). Each binding resumes after its own cursor (the /views:run result’s), so history and live rows meet with no gap and no duplicate. A rows event carries each binding’s matching rows and has the cursor after them as its id; a mark event advances that position when nothing matched; a reconnecting EventSource sends it back as Last-Event-ID and every binding resumes from it or its own cursor, whichever is later. A reset event names bindings whose cursor the tail no longer holds (too old, or from before a server restart), and the stream ends: the client re-runs their history and reconnects. The tail is the ingest landing point of this server, not a poll; rows a calc or rule derives are not on it. Gated by view:read, with each binding’s :read and scope as /views:run: the selector resolves once at connect, and the stream carries only rows of the entities it resolved to. A stream is bounded so that scope never goes stale: it ends at its lifetime (15 minutes, or duration_seconds) with its position, and on each 15 second heartbeat it rechecks its caller, ending once the session no longer resolves or the caller’s grants changed; the client reconnects from its cursor, and the reconnect authenticates and resolves again. A topic (kind:ref, a component or a system) needs :read and resolves in scope at connect as a literal ref does, an out-of-scope one the same 404; a changed event names it when a write moved its state (its health recomputed, a slot or member changed), at most once each 250 milliseconds, and carries no data: the client refetches the route it reads. The topics resume after topics_cursor (else Last-Event-ID, else now); a position the tail no longer holds is a reset with topics set, and the client refetches what they show. An event bears the stream’s position only once every changed notice before it has gone out, so a reconnect from any id misses no change. One user holds at most 16 watches open; past it the open is a 429. On server shutdown each stream ends with a final mark.

FlagTypeDefaultDescription
--bindingsstring(none)The bindings followed, as a JSON array: each the body of a /views:run binding plus its cursor (the result’s cursor it resumes after; unset follows from now). Give bindings, topics, or both
--duration-secondsint0Ends the stream after this many seconds, for a script or the CLI reading a bounded tail. Unset, or past it, the stream ends at its 900 second lifetime, and the client reconnects from its position
--topicsstring(none)The entities whose changes the stream names, comma separated, each kind:ref (component or system, by name, uuid or dotted address; at most 32). A changed event says one moved: refetch its route. Give bindings, topics, or both
--topics-cursorstring(none)The position the topics resume after: the last event id the client received. Unset, Last-Event-ID; unset too, the topics follow from now

Example:

Terminal window
omniglass view watch

Commands for the webhook resource

Receive a webhook post for an endpoint

omniglass webhook receive <token>

The webhook transport’s listener (#1024): a component or a cloud service posts here, to the URL its webhook endpoint was given. The token names one endpoint; the scheme its driver declares authenticates the post (an hmac signature over a signed timestamp, a token, basic, or none, which reads unsigned); a signed timestamp outside five minutes is refused, and a declared delivery id lands once. The driver’s listeners map the body (json, xml, form or text) onto any lane, and the post also lands as a log line unless its listener says otherwise. Public by necessity: the sender is not a user, and the endpoint’s scheme is the authentication. Answers 202 once the post is published, 401 for a refused scheme (saying nothing of which part failed), 404 for an unknown or rotated token (identical either way), 413 past 1 MiB, 429 with Retry-After past a rate limit.

Example:

Terminal window
omniglass webhook receive <token>

Answer a webhook sender’s verification of its URL

omniglass webhook verify <token>

A sender checking its URL before it posts (#1024): an unknown or rotated token is the receiver’s identical 404; a known one answers 200, echoing the query parameter its driver declares as the challenge (text, bounded), and 204 when it declares none. Public by necessity, as the receiver is.

Example:

Terminal window
omniglass webhook verify <token>