Is there an option to disable the discovery of the VM’s when using the vmware probe if I wish to monitor only the vCenter, ESX hosts, and Datastores and not the VM's?
When the above setting is in place, the VMs will no longer being added to the inventory, however, the VMs that were discovered before, will still be present.
If you still see the VM in OC, you may need to delete the VM by using the discovery_server probe utility.
First, you need to query the cm_computer_system table to get the cs_key value of the VM(s).
select cs_key from cm_computer_system where name = <vm_name>;
Then, on your primary hub perform the following steps.
Select the discovery_server probe and press Ctrl-P from your keyboard
In the probe utility, select 'remove_master_devices_by_cskeys'
On the bottom of the probe utility (PU) GUI you will see the csKeys input box. On this input box place each affected robot's 'cskey' separated by comma's, for example-> 26a1,25b6,257c
Press the green (arrow) play button on the PU and it will execute the command.
Then restart the wasp and the discovery_server and log back into OC and the VMs should be removed from the OC view.
If you have hundreds or thousands of VMs to remove, The quickest and clean way is the following:
SELECT STRING_AGG(CAST(ccs.cs_id AS VARCHAR(MAX)), ',') AS cs_id_list
FROM cm_computer_system ccs
WHERE ccs.dedicated = 'VirtualMachine'
AND NOT EXISTS (SELECT 1 FROM cm_nimbus_robot cnr WHERE ccs.name LIKE '%' + cnr.robot + '%' OR cnr.robot LIKE '%' + ccs.name + '%');
2. Using the discovery_server 'remove_master_devices_by_cs_ids' callback, copy the comma separated list (up to 2k+ devices) and use the
discovery_server to delete them all.