The Delete a Robot procedure has matured in the later 8.x versions.
The discovery_server's probe utility makes this a better method.
https://wiki.ca.com/display/UIM82/Remove+Master+Devices
Hop onto the UIM SQL box and open SQL Studio and run a new query on the NimsoftSLM db
The query you can use will be:
//This query will search for all the robots under an entire hub:
SELECT origin,name,ip,dns_name,nimbus_type,cs_id,cs_key,dedicated,mac,os_name
FROM cm_computer_system
WHERE origin LIKE ('%HUB_NAME%')
ORDER BY name
Or
//This query will search for a specific robot:
SELECT origin,name,ip,dns_name,nimbus_type,cs_id,cs_key,dedicated,mac,os_name
FROM cm_computer_system
WHERE name LIKE ('%robot_name%')
ORDER BY name
If deleting all robots under a hub: Select the entire cs_key column and r-click then a “Copy without Headers” on the query results and paste this into Notepad++.
If you are removing individual machines you would then copy out the target machines’ CS_KEY value.
If you need to remove many machines we can copy out the entire column of cs_key values and then paste them into Notepad++.
Within Notepad++, go to the end of the 1st line, and do the following key commands:
- Hold Shift then right arrow.
- Ctrl+H
- In the Replace dialog in the Replace with: put a coma: ,
- Hit replace all.
All the CS_KEYs will now be on one line separated by a coma. Copy this entire line.
Then follow the procedure in the article above, opening the discovery_server's probe utility and paste the full line of cs_keys into the VALUE text box.
- Now open the UIM Admin Console: http://<Primary-Hub_IP>:8080/adminconsole/ and login.
- Drill down to your Primary Hub.
- On the right side, find the discovery_server probe and in the drop down menu select “Probe Utility”:
- In the Probe Utility GUI, in the drop down list, select the “remove_master_devices_by_cskeys” menu entry.
- Then double click on the Value Cell next to the csKeys row and paste the entire line from within Notepad++ into this cell:
- Then press on the PLAY, green arrow button to execute the delete.
- Depending on the list, wait a bit then you’ll see the message that ## devices have been added to the queue for deletion:
- Now you have to just wait for the job to finish deleting these robots from the database.
- You can check the probeDiscovery queue from within the Status tab of the hub probe on the Primary UIM Hub. The discovery_server probe will processes the messages within this queue on a timed basis.
- After a period of time (up to 30 minutes) you can then check the CS_COMPUTER_SYSTEM table by re-running the query above. The list will be shorter or it will be empty if doing all.
That would be it. Then also would have to manually delete all the SLM data related to those robots from w/in the SLM portlet w/in UMP.