We have an unwanted device showing in inventory and want to delete it from USM.
In these versions you need to obtain the cs_key for each device you wish to remove and then use a discover_server callback to remove them
To get the cs_key value you first need to query the CM_COMPUTER_SYSTEM table.
To query by name, use the following query
SELECT name,ip,origin,cs_key FROM CM_COMPUTER_SYSTEM WHERE name = '<hostname>' OR dns_name = '<hostname>';
To query by IP address, use the following query
SELECT name,ip,origin,cs_key FROM CM_COMPUTER_SYSTEM WHERE ip = '<ip>';
If you are removing a duplicate device, make sure you properly identify the duplicate you want to eliminate. For example, if you identify the expected host and/or IP, and it has the expected/correct hostname or device name and system info associated with it, then you can be sure that you have isolated the duplicate.
From Infrastructure Manager on your primary hub server perform the following steps to remove the device.
Note that this places a deletion message at the end of the probeDiscovery queue, so the devices will only be deleted after all messages in the queue before it have been processed.
If this device still has an active profile, or was once configured into a probe then it is possible the device will reappear in USM inventory. If there was a probe that once had a profile, there may be a stale niscache that needs to be cleaned.
See Below KB's for cleaning niscache on a robot:
How to clear niscache on an individual robot (Knowledge Base Articles - 44669)
How to clear the niscache (Knowledge Base Articles - 46393)
If this device is being deleted as part of an effort to eliminate duplicates then unless the condition which caused the duplicate is resolved, the duplicate device may reappear. See this article for locating the source of duplicate devices: