From 74ec4ef1fb3477b6f4be4425093bedef3b8dcf28 Mon Sep 17 00:00:00 2001 From: Jake Mutschler <3011366+jmutschler@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:02:56 -0800 Subject: [PATCH 1/2] document host ID --- docs/deploy-and-configure/configuration.md | 1 + docs/setup-sensor/interface-binding.md | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/docs/deploy-and-configure/configuration.md b/docs/deploy-and-configure/configuration.md index dd0030e..418dfb0 100644 --- a/docs/deploy-and-configure/configuration.md +++ b/docs/deploy-and-configure/configuration.md @@ -23,6 +23,7 @@ The following environment variables can be set: | `ORB_DEPLOYMENT_TOKEN` | Sets the [Deployment Token](/docs/deploy-and-configure/deployment-tokens#using-environment-variable) | `ORB_DEPLOYMENT_TOKEN=orb-dt1-yourdeploymenttoken678` | 1.2 | | `ORB_EPHEMERAL_MODE` | Sets Orb measurement data storage to in-memory only. Protects flash memory from frequent writes. All measurement data stored on the Orb is lost when Orb is stopped or restarted. | `ORB_EPHEMERAL_MODE=1` | 1.4.0 | | `ORB_DEVICE_NAME_OVERRIDE` | Sets this Orb's name which appears in Orb apps and Orb Cloud | `ORB_DEVICE_NAME_OVERRIDE=MyDeviceName` | 1.4.1 | +| `ORB_HOST_ID` | Sets the [host ID](/docs/setup-sensor/interface-binding#host-id) shared by every Orb on this machine. Up to 64 characters: letters, digits, and `- . _ ~`. Not instance-scoped | `ORB_HOST_ID=rack3-probe1` | — | | `ORB_MEASURE_SERVER_ENABLED` | Enables the Orb to act as a server for speed and responsiveness testing | `ORB_MEASURE_SERVER_ENABLED=1` | 1.4.10 | | `ORB_MEASURE_SERVER_PORT` | Set the port for the Orb measurement server | `ORB_MEASURE_SERVER_PORT=8080` | 1.4.10 | | `ORB_SERVER_POP` | Sets a point of presence description for the Orb measurement server, reported to Orbs running Orb-to-Orb measurements against it. By convention, the nearest 3-character airport code, but any short string works | `ORB_SERVER_POP=sea` | 1.6.0 | diff --git a/docs/setup-sensor/interface-binding.md b/docs/setup-sensor/interface-binding.md index 286863e..d1a66e4 100644 --- a/docs/setup-sensor/interface-binding.md +++ b/docs/setup-sensor/interface-binding.md @@ -63,6 +63,26 @@ sets `ORB_FIRSTHOP_DISABLED` for the `wired` instance only. --- +# Host ID + +Each instance is a separate Orb in Orb Cloud. To show which Orbs run on the same machine, every instance reports a shared **host ID**. + +The first instance to start generates a random 12-character ID and saves it to `host_id` in the Orb configuration directory (by default `~/.config/orb/host_id`). That directory sits above the per-instance directories, so every instance on the machine reads the same ID. + +To set the host ID yourself, for example to match an asset tag, use `ORB_HOST_ID`: + +```sh +ORB_HOST_ID=rack3-probe1 orb --instance wired sensor --interface eth0 +``` + +`ORB_HOST_ID` takes precedence over the file. Use the same value for every Orb on the machine. The value must be at most 64 characters: letters, digits, and `- . _ ~`. An invalid value is logged and no host ID is reported. + +`ORB_HOST_ID` can't be scoped to one instance: `ORB__HOST_ID` is ignored, since the ID is shared by every instance. + +In Orb Cloud, the host ID appears as `host_id` on devices in the [Orb Cloud API](/docs/integrations/api). Dataset queries can select, filter, group by, or count distinct `host_id`, so instances on the same machine can be combined or counted once. Dataset records themselves don't contain it. + +--- + # Link each instance ```sh From e127dac0d21046f420237ccb5ba0b6e955f11946 Mon Sep 17 00:00:00 2001 From: Jake Mutschler <3011366+jmutschler@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:10:26 -0800 Subject: [PATCH 2/2] Trim and move the Host ID section, and fix the allowed characters --- docs/setup-sensor/interface-binding.md | 27 +++++++++++--------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/docs/setup-sensor/interface-binding.md b/docs/setup-sensor/interface-binding.md index d1a66e4..f0ad367 100644 --- a/docs/setup-sensor/interface-binding.md +++ b/docs/setup-sensor/interface-binding.md @@ -63,30 +63,25 @@ sets `ORB_FIRSTHOP_DISABLED` for the `wired` instance only. --- -# Host ID - -Each instance is a separate Orb in Orb Cloud. To show which Orbs run on the same machine, every instance reports a shared **host ID**. - -The first instance to start generates a random 12-character ID and saves it to `host_id` in the Orb configuration directory (by default `~/.config/orb/host_id`). That directory sits above the per-instance directories, so every instance on the machine reads the same ID. - -To set the host ID yourself, for example to match an asset tag, use `ORB_HOST_ID`: +# Link each instance ```sh -ORB_HOST_ID=rack3-probe1 orb --instance wired sensor --interface eth0 +orb --instance wired link +orb --instance wifi link ``` -`ORB_HOST_ID` takes precedence over the file. Use the same value for every Orb on the machine. The value must be at most 64 characters: letters, digits, and `- . _ ~`. An invalid value is logged and no host ID is reported. - -`ORB_HOST_ID` can't be scoped to one instance: `ORB__HOST_ID` is ignored, since the ID is shared by every instance. +--- -In Orb Cloud, the host ID appears as `host_id` on devices in the [Orb Cloud API](/docs/integrations/api). Dataset queries can select, filter, group by, or count distinct `host_id`, so instances on the same machine can be combined or counted once. Dataset records themselves don't contain it. +# Host ID ---- +Instances on the same host share a **host ID**, so Orb Cloud can tell which Orbs run on the same machine. The first instance generates it and saves it to `host_id` in the Orb configuration directory (by default `~/.config/orb/host_id`). -# Link each instance +To set your own, for example an asset tag, use `ORB_HOST_ID` with the same value for every instance: ```sh -orb --instance wired link -orb --instance wifi link +ORB_HOST_ID=rack3-probe1 orb --instance wired sensor --interface eth0 ``` +The value can be up to 64 letters, digits, and `- . _ ~`. `ORB_HOST_ID` can't be scoped to a single instance. + +The host ID appears as `host_id` on devices in the [Orb Cloud API](/docs/integrations/api), and dataset queries can filter, group by, or count distinct `host_id`.