Debian (Linux) devices are showing as duplicates or share a UUID
Symptoms
When Automox generates a UUID for a device, if more than 40% of the device variables match another known device, Automox will assign both devices the same UUID, which can (and often does) cause problems.
Automox generally uses these variables when generating a UUID for a device:
const HARDWARE_ID_UUID = 'uuid'; // windows
const HARDWARE_ID_MACHINE_ID = 'machine-id'; // non-windows
const PROCESSOR_HASH = 'processor-hash';
const MEMORY_HASH = 'memory-hash';
const BIOS_HASH = 'bios-hash';
const SYSTEM_HASH = 'system-hash';
const HOSTNAME_INFO = "hostname-info";
const IP_ADDRESS_ID = 'ipaddress-info';
const MAC_ADDR_INFO = 'macaddr-info';
const DISK_INFO = 'disk-info';
const MINIMUM_MATCH_PERCENT = 40;
For the variables listed, each device must be under a 40% match with any other known device.
Steps to resolution
On Debian devices, the UUID is generated in a different way. Run these commands to reset the machine-id:
- Stop the Automox Agent Service (
systemctl stop amagent
) sudo rm /etc/machine-id
dbus-uuidgen --ensure=/etc/machine-id
- Start the Automox Agent Service (
systemctl start amagent
)