This article explains how to add a new device to Junos Space when there is a duplicate entry in the Network Management Platform.
While adding a new device in Junos Space from the Network Management Platform, device discovery fails with the error as “Device already managed”.
The following errors are seen in server.log :
server.log
[root@space-0050569ef40e ~]# less /var/log/jboss/servers/server1/server.log | grep -i duplication 2019-11-04 06:57:46,024 ERROR [net.juniper.jmp.cmp.deviceIOMgr.DmiDeviceSubjugator] (Thread-1760 (HornetQ-client-global-threads-2038299044)) Discovery failed for device with IP :10.90.32.10 Serial number [CY4317AF0956] duplication. Device already managed 2019-11-04 06:57:46,049 ERROR [net.juniper.jmp.cmp.deviceIOMgr.DeviceInboundCmd] (Thread-1760 (HornetQ-client-global-threads-2038299044)) Send failure message for add reachable device with ip 10.90.32.10 failed --- Device is already managed
The error logs indicate the presence of a duplicate serial number entry.
Note: If the highlighted message is not found in Junos Space CLI logs, it could be that a different issue has occurred. Contact Support for assistance.
This issue occurs due to a duplicate serial number entry for a device that was previously managed and decommissioned from Junos Space.
The issue may also occur because of a duplicate serial number entry for a device that has been cloned from another virtual device.
To troubleshoot, perform the following:
Check the Serial Number of the device that failed to be discovered in Junos Space. Refer to KB17568 - [SRX] How to find the serial number of my SRX device [juniper.net] to find the serial number of the SRX device.
Note: Remember to search for the device serial number across all domains created in Junos Space.
You can also create a filter for the “Serial Number” on the Device Management tab.
If you find any device on the Device Management tab with the duplicate Serial Number, check/confirm with the customer and proceed to delete that device entry.
Re-discover the device. This time it should get detected and added successfully.