Moving Devices From One Zone to Another

Sometimes it is desirable to move a device from one zone to another in the Automox console. This can be accomplished in two steps that can be performed on the target device.

Note: A "zone" is the new term for what was formerly named "organization". Refer to Global Zone Management.

Note: This operation should not be attempted as a Worklet.

Manual

Manually moving a device to a new zone requires running just two commands directly on the target device.

Update Agent Key

To move a device from one zone to another, you first must update the access key the Automox agent is using to the target zone. This can be done with the help of the --setkey option.

macOS

sudo /usr/local/bin/amagent --setkey <NEW_ZONE_ACCESS_KEY>

Windows

C:\Program Files (x86)\Automox\amagent.exe --setkey <NEW_ZONE_ACCESS_KEY>

Linux

sudo /opt/amagent/amagent --setkey <NEW_ZONE_ACCESS_KEY>

Deregister the Agent

Next, you must deregister the Automox agent from the zone it is currently associated with by using the --deregister option.

macOS

sudo /usr/local/bin/amagent --deregister

Windows

C:\Program Files (x86)\Automox\amagent.exe --deregister

Linux

sudo /opt/amagent/amagent --deregister