OpenWrt IPK
Use this guide to retrieve the signed OpenWrt IPK from the ThousandEyes feed, store it in your own artifact repository, and add it through your normal firmware build.
Confirm that your device meets the System Requirements, then choose the Agent Updater or agent-only model in Plan, Deploy, and Update the Agent. Use the matching tab throughout this guide.
1. Confirm the Package Architecture
Run this command on the target device to identify the feed family:
opkg print-architectureUse the device-specific architecture with the highest priority number and map it to a
<family>value in the table below.
Ignore generic entries such as all and noarch. If a representative target is unavailable, use the package architecture reported by the firmware build.
Device-specific OpenWrt architecture
Use as <family>
aarch64_*
arm64
arm_cortex-a*
armv7a
mips_*
mips
mipsel_*
mipsel
i386_*, i486_*, i586_*, i686_*
x86
x86_64
x86_64
Do not use uname -m to identify the package ABI. It reports the machine architecture, not the OpenWrt package ABI.
2. Retrieve the IPK
Run the remaining package-preparation commands on a separate computer or build host with Bash and curl. You do not need to copy or install the IPK on the target during this stage.
The commands below retrieve the latest agent-only package for an arm64 target.
For the Agent Updater, replace te-cdev-agent with te-cdev-agent-updater. For another architecture, replace arm64 with the matching feed family above.
On your preparation computer, create and enter a new empty directory for the package files.
If this directory already exists, choose another name so files from different releases are not mixed:
Download the package index:
Read and confirm the exact filename and checksum from the index:
Download the IPK named by the index:
Verify the signed ThousandEyes feed if your package retrieval or firmware build process doesn’t already do so.
If the process already validates OpenWrt feed signatures and package checksums, continue to the next step. Otherwise, verify the download before using the IPK. Run the following commands in an OpenWrt SDK, ImageBuilder, or lab-device environment with
usignandsha256sum. The commands verify the files without installing the IPK.Download the index signature and the immutable signing key for the package version:
Verify the signed index and downloaded IPK:
The latest feed path does not contain a /latest segment. Its signed indexes can be replaced or rolled back, while the IPKs they reference remain immutable.
3. Prepare the Agent Configuration
On the preparation computer, create
skagent.cfgin your preferred text or code editor, using the OpenWrt configuration below.Save it in the working directory alongside the downloaded IPK. Do not unpack or modify the IPK to replace its placeholder configuration, because doing so changes the published package.
OpenWrt has no standard data model for every required identity value. Confirm the source used for the model, client, WAN MAC, firmware version and serial number on the target firmware.
To find the configured WAN interface, inspect the OpenWrt network configuration:
Find the section labeled config interface 'wan'. Its option device or option ifname identifies the default WAN port, such as eth0 or wan.
Confirm that the active default route uses the same interface:
Start from this configuration and replace every placeholder. Your ThousandEyes contact supplies the Org Client ID or agreed production label and the authentication secret. The uci path used for the serial number is an example and must be verified on the target.
Add the Updater working directory:
The Agent-only configuration does not require an [updater.cdev_package] table.
Run each configured file or command input directly on the target before relying on it. For mapped production routing, replace the literal identity.client value with a stable file or program input that identifies the ISP. Use Identity and ISP Routing for the routing patterns.
When you test a production image in the lab, set client to your Org Client ID so the agent appears in your organization.
For the final production image:
ISP-led integrations must use their organization's production
client.OEM-led integrations (multi-ISP firmware) should use dynamic lookup or an OEM-selected label, as described in Identity and ISP Routing.
OEM-led integrations (single-ISP firmware) should request and use the ISP organization's production
client. They can also use the same dynamic lookup or label used for multi-ISP firmware distributions. This approach requires an additional backend mapping coordinated with Cisco.
At first boot, use the platform's ACS or secret provider to inject the production authentication secret.
Do not compile the secret into downloadable firmware.
If the device uses OpenSync for its configuration data, use the OpenSync template instead of reproducing it here.
Use the Configuration Reference to look up individual fields. For devices with more than one WAN counter, see its cross-traffic detection guidance.
At the end of this step, the preparation directory contains the unchanged IPK and your separate completed skagent.cfg.
4. Add the IPK and Configuration to the Firmware Build
Upload the unchanged IPK to your artifact repository or add it directly to the package input used by your normal OpenWrt firmware build.
Keep its filename, package metadata, installation paths, and architecture checks intact.
Copy the separate
skagent.cfginto the firmware root-filesystem overlay at its final device path.The overlay adds your configuration to the generated firmware image alongside the unchanged IPK; it does not add the file to the IPK itself.
The examples use
filesas the root-filesystem overlay directory. If your firmware build uses another directory or configuration layer, use its equivalent and preserve the final path shown above.Apply the configuration layer after the package contents.
The generated image then contains your completed configuration instead of the packaged placeholder, while the signed IPK remains unchanged.
If this replaces another agent package, remove that package and disable its startup integration so the resulting image cannot run two agent instances.
5. Add Startup and Persistence
Start the selected component only after the target has a usable WAN route, DNS resolution, outbound HTTPS access, and the correct time.
Run the packaged startup helper to validate the device family and CPU baseline before it starts the Updater:
Configure the target's process manager to restart the Updater after a failure and keep one instance running. The Updater supervises the agent.
Use the packaged compatibility helper:
Configure the target's process manager to restart the agent after an unexpected exit and stop it cleanly before replacing the package.
Keep one agent instance running.
Test startup after a complete power cycle.
Confirm that the service waits for a usable WAN route and that the selected package and configuration remain present.
6. Validate the Integration
Check the identity and metadata reported by the agent.
After the Updater installs the agent, run the device-info command:
Run the device-info command:
Confirm the model, client, WAN MAC, serial number, firmware, and WAN interface before and after a cold boot.
Run the agent in self-test mode by following the instructions for your selected agent model:
Stop the Updater before you run self-test mode. If it runs in the current terminal, press Ctrl+C. If you started it directly with -D, stop it by running:
If the integration starts the Updater as a managed service, stop that service first.
Agent Updater v7.16 or later
Run self-test mode through the Updater:
Agent Updater v7.14 or v7.15
Run self-test mode through the installed agent:
Versions earlier than v7.14 do not support self-test mode.
For agent version v7.14 or later, stop the agent service, then run the agent in self-test mode:
Versions earlier than v7.14 do not support self-test mode.
Restart the normal service after self-test.
Confirm that the Unit ID remains stable after another cold boot or
sysupgradethat preserves configuration.Use Validate with Self-Test Mode to interpret the result.
7. Manage Subsequent Package Updates
When the firmware image controls the IPK version, repeat the signed-index verification and retrieval steps, add the new immutable IPK to the build, and validate and deploy a new firmware image. This keeps the package version aligned with the firmware manifest and rollback path.
You can use a targeted opkg upgrade <package-name> when the product is designed to manage this package independently in writable storage. In that case, validate available storage, package compatibility, persistence across firmware upgrades, and rollback behavior. Do not run a bare opkg upgrade.
Last updated