RESOLUTION 1:
The attached script is designed to purge all objects related to Virtualization, Hosts or GPI data based on several parameters inside the script.
In order to get it applied:
- Go to "Administration | Tooling | Script Console"
- Click on "Scripts" tab, then click "Add"
- Give it a name and paste the script, then click "Save" and then "Run".
- The stale object removal output can be seen in the "Log Messages" tab of the output window. Also, the script output would display the message "Done..."
- That will remove all stale objects.
- Go to "VMWare Environment | Administration", look for the vCenter and deactivate and activate the agent.
- Then stop and restart recollection.
- Now look for stale objects in Foglight, the objects should be gone.
RESOLUTION 2:
Starting in FVE version 7.x, the "VMW Stale Data Management" rule has been implemented.
By default it is disabled, but in order to have it remove stale objects, enable it.
This rule will delete objects older than x days, where x is a configurable variable. 30 days is the default.
Enabling this rule will delete only stale VMWare objects (VMs, disks, and all others included in the script) every x days.
This rule will run every morning about 7am.
RESOLUTION 3:
Starting in FVE 8.x, the system will automatically delete the stale objects.