RDK-B
Use this guide to integrate the agent into an RDK-B device.
Confirm that your device meets the System Requirements. Choose the Agent Updater or agent-only model in Plan, Deploy, and Update the Agent, then use the matching tab throughout this guide.
The instructions below use the native TAR archive.
If your platform requires an IPK package, see Build an IPK from the TAR Archive. After building the package, continue with Preparing the Agent Configuration and add the package and configuration to the firmware build in Step 3.
1. Preparing the Package
Verify the Cisco CMS signature before using the TAR archive as an image-build input.
Keep the downloaded package compressed until you verify its signature. Verification checks the exact bytes of the .tar.gz file.
On the computer where you downloaded the package, create a folder containing only the agent package and its signature.
Open a terminal and change to that folder. You can type
cd, drag the folder into Terminal, and press Return.For example:
cd /Users/<your-username>/Downloads/myagentpackageReplace
MY_AGENT_PACKAGE.tar.gzin the commands below with the complete filename of your downloaded package. Confirm that the package is still gzip-compressed:file MY_AGENT_PACKAGE.tar.gzThe output must include:
gzip compressed dataDownload the Cisco Root CA certificate:
curl -fLO https://www.cisco.com/security/pki/certs/csirca4096.pemVerify the package. Replace both example filenames with the complete filenames you downloaded:
openssl cms -verify -binary \ -CAfile csirca4096.pem \ -in MY_AGENT_PACKAGE.tar.gz.signature \ -inform DER \ -content MY_AGENT_PACKAGE.tar.gz \ -out /dev/nullContinue only when the command reports:
Verification successfulExtract the verified outer package:
tar -xzf MY_AGENT_PACKAGE.tar.gzExtract the Agent Updater archive from the verified outer package:
tar -xzf cdev_agent_updater-*.tar.gzUse the supplied
skagent.rdkb.cfgfile and copy it to the runtime filename:cd opt/thousandeyes/cdev/router_agent_updater/etc cp skagent.rdkb.cfg skagent.cfgComplete the copied
skagent.cfgin Step 2. Keep the extracted tree on the preparation computer until the configuration is complete.
Select the archive for the target platform and CPU architecture. Use the signature file with the same
<version>and<platform>values:Verify the detached Cisco CMS signature before using the archive as an image-build input.
Keep the downloaded package compressed until you verify its signature. Verification checks the exact bytes of the .tar.gz file.
On the computer where you downloaded the package, create a folder containing only the agent package and its signature.
Open a terminal and change to that folder. You can type
cd, drag the folder into Terminal, and press Return.For example:
Replace
MY_AGENT_PACKAGE.tar.gzin the commands below with the complete filename of your downloaded package. Confirm that the package is still gzip-compressed:The output must include:
Download the Cisco Root CA certificate:
Verify the package. Replace both example filenames with the complete filenames you downloaded:
Continue only when the command reports:
Extract the verified outer package:
Extract the archive.
It contains a
release_dirfolder with the agent filesystem tree, alongside its documentation and service examples.Use the supplied
skagent.rdkb.cfgfile and copy it to the runtime filename:Complete the copied
skagent.cfgin Step 2. Keep the extracted tree on the preparation computer until the configuration is complete.
The archive also contains example systemd, SysV, and procd service definitions under init_examples.
2. Preparing the Agent Configuration
Run these
dmclicommands on the target to verify that the supplied RDK-B configuration returns the expected device identity and metadata before you finalize the production image:Confirm that the firmware version file returns the expected value:
Confirm the WAN interface separately:
The interface name after
devin the output must match the configured cross-traffic interface.erouter0is common on RDK-B, but do not assume that the device uses it.On the preparation computer, open the
skagent.cfgprepared in Step 1:Replace every
CHANGE MEvalue, including the authentication secret.
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.
For the RDK-B production image, keep the supplied dmcli_get lookup and confirm that Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.PartnerId returns the ISP or customer label agreed with ThousandEyes. If your RDK-B data model uses a different parameter, update client_name_parameter.
Do not compile a production authentication secret into downloadable firmware. Inject it at first boot using the platform’s ACS or secret provider.
If the device uses OpenSync for its configuration data, use the OpenSync template instead of reproducing it here.
See Identity and ISP Routing for the routing model and Configuration Reference for individual fields.
3. Adding the Package and Configuration to the Firmware Build
Overlay the extracted
optdirectory onto the image root.This adds the Updater and its completed configuration at:
The supplied
skagent.rdkb.cfgfile uses/tmp/cdevas its working directory, so the Updater downloads the agent to/tmp/cdev/installation.
Overlay the contents of
release_dironto the image root.This adds the agent and its completed configuration at:
Confirm that the completed
skagent.cfgis present in the final image at the path shown above.
4. Adding Startup and Persistence
Start the selected component only after RDK-B WAN provisioning provides a usable route, DNS resolution, outbound HTTPS access, and the correct time. If you rely only on network-online.target, the service might start before platform WAN provisioning is complete.
Use the supplied
systemdexample to configure the platform service.Start the Updater with:
Configure the process manager to restart the Updater after a failure and keep one instance running. The Updater supervises the agent.
Configure the service using the applicable example in
init_examples. Set/opt/samknows/router_agentas the working directory, then start the agent:Configure the process manager to restart the agent after an unexpected exit and stop it cleanly before replacing the package.
Keep one agent instance running.
After a complete power cycle, verify that the service starts only after WAN provisioning and that the configured cross-traffic interface still carries the default route.
5. Validating 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, vendor, 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.
After self-test, restart the normal service.
Confirm that the Unit ID remains stable after another cold boot.
Use Validate with Self-Test Mode to interpret the result.
Last updated