Remove Master Devices

When you execute the remove_master_device callbacks consider the following:
uim835
RemoveMasterDevices
Discovery Server includes two callbacks that allow you to cleanly remove devices from both the UIM and UDM databases. You can remove all master devices or you can remove individual devices by referencing the device cs_key.
The callbacks listed in this article are only supported on discovery_server v8.11 and later. For discovery_server v8.1, there are no methods to manually delete devices. You will need to upgrade to discovery_server v8.11 or v8.12 to access this functionality. For discovery_server 8.0 and earlier, execute a DELETE FROM CM_COMPUTER_SYSTEM SQL call.
Considerations
When you execute the remove_master_device callbacks consider the following:
  • After you execute the callbacks, if Discovery is performed again, a deleted device will reappear in the inventory. In this case, the device will be assigned a new cs_key and treated as a new device.  
  • Executing these callbacks will result in different behavior between the UIM database and the UDM database.  In the UIM database, the deleted devices are truly deleted. However, in the UDM database, the deleted devices are actually hidden, rather than deleted, to retain device history.
Remove All Master Devices
Use the Probe Utility to cleanly remove all devices from the UIM and UDM databases:
  1. Invoke the Probe Utility for the Discovery Server.
    1. In Admin Console, right click on the discovery_server probe and select 
      Probe Utility
      from the menu.
    2. In Infrastructure Manager, select the discovery_server probe and press
      Ctrl
      +
      p
      .  
  2. Select 
    remove_all_master_devices
    from the 
    Probe commandset
    dropdown menu.
  3. Click the green 
    Execute
    button to send the command request.
The
remove_all_master_devices
callback removes UIM database robot entries for the UIM Server used by UMP. The discovery_server probe will automatically repopulate deleted robots. If the robots do not reappear in your inventory, refresh UMP.
Remove Individual Devices
Remove individual devices by referencing the device CS Key. Device CS Keys are located in the cs_key column of the CM_COMPUTER_SYSTEM table in the UIM database.
Use the Probe Utility to cleanly remove individual devices from the UIM and UDM databases:
  1. Invoke the Probe Utility for the Discovery Server.
    1. In Admin Console, right click on the discovery_server probe and select 
      Probe Utility
      from the menu.
    2. In Infrastructure Manager, select the discovery_server probe and press 
      Ctrl
       + 
      p
      .  
  2. Select 
    remove_master_devices_by_cskeys
    from the 
    Probe commandset
    dropdown menu. 
  3. Enter the value of the CS Key for the device you wish to remove in the 
    csKeys
    field. Enter multiple CS keys in a comma separated list to remove multiple CS Keys. 
  4. Click the green 
    Execute
    button to send the command request.