Every NetBeez agent is uniquely identified by a v4 UUID across the NextGen dashboard and JSON:API. When migrating or replacing a Linux software, virtual, or cloud Network Agent—for example, moving an agent to upgraded VM infrastructure—preserving the original agent's UUID allows the replacement host to seamlessly assume the existing agent card, assignments (Agent Groups, Targets, Scheduled Tests, and Wi-Fi Profiles), and historical telemetry.
In this article:
Prerequisites and Warnings
NetBeez Hardware Appliances: Do not manually modify the UUID on wired or Wi-Fi hardware appliances procured from NetBeez without contacting support@netbeez.net first.
Shell Privileges: You need SSH or local terminal access with
sudo/root privileges on the replacement agent host.Decommission the Old Host First: Stop the NetBeez service (or power off the host) on the original machine before starting the replacement agent with the copied UUID. Running two active agents simultaneously with the same UUID causes conflicting telemetry and interface state updates.
Valid v4 UUID & JSON Syntax: Always back up the configuration file before editing, ensure the JSON remains valid, and copy the exact 36-character hyphenated v4 UUID.
Step 1: Retrieve the Existing Agent UUID
In the NetBeez dashboard, navigate to Agents → Network Agents (or Agents → Remote Workers) and click the original agent to open Agent Details.
Click the chevron on the right side of the Agent Details summary card to expand full metadata.
Locate the UUID field and click the copy icon next to the UUID value. (Alternatively, click Code [
<> Code] in the top-right header to view the JSON:APIidattribute, or copy the UUID directly from the browser URL/agents/network_agents/<uuid>.)
Step 2: Back Up and Edit the Agent Configuration File
Install the NetBeez agent package on the replacement host if not already installed (see Install NetBeez Agents), then stop the service on the old host so it is offline.
On the replacement host, locate the agent configuration file—typically
/etc/netbeez/netbeez-agent.conf(older installations may use/usr/local/netbeez/nbagent_info_prod.txt)—and save a backup copy:sudo cp /etc/netbeez/netbeez-agent.conf /etc/netbeez/netbeez-agent.conf.bak
Open the configuration file in a text editor:
sudo nano /etc/netbeez/netbeez-agent.conf
Add or update the
"agent_uuid"key in the root JSON object so it matches the UUID copied from the dashboard:{"host":"<your-netbeez-server>","secure_port":"20018","agent_uuid":"d08f5d09-3b19-4c5a-a04c-1c06aa161901"}Ensure all quotation marks, colons, commas, and braces form valid JSON before saving the file.
Step 3: Restart the Agent and Verify
Restart the NetBeez agent service on the replacement host to apply the updated UUID:
sudo systemctl restart netbeez-agent
(On legacy service unit installations, run
sudo systemctl restart nbagent_prod, or reboot the host.)In Agents → Network Agents, open the original agent in either Table or Thumbnail view and verify that:
The agent transitions to online (Uptime / Reachable Since updates on the Agent Details card).
Hardware/OS metadata (OS Version, Kernel Version, and Interfaces) reflects the replacement host.
Continuous target tests on the Monitoring tab and assigned Scheduled Tests resume reporting under the preserved agent record.
If the replacement host accidentally registered a duplicate temporary agent card before you edited
netbeez-agent.conf, open that temporary unreachable card and remove it via More (...) → Delete Agent (see Deactivating & Deleting Agents).

