vRealize Business for Cloud 7.3 allows you to ignore a partial inventory at the cluster level to avoid use of license and perform cost analysis for unwanted virtual machines.
About this task
Partial inventory is support at cluster level and not at data center level or virtual machine level.
Ensure that you add the cluster that you want to blacklist or ignore in the configuration service.
- Log in to SSH with the root credentials.
- Run the GET command to verify if there are any black-listed clusters.
python /usr/ITFM-Cloud/va-tools/bin/partialVC.py GET vcenter-url
- Add a cluster that you want to blacklist or ignore.
python /usr/ITFM-Cloud/va-tools/bin/partialVC.py SET vcenter-url cluster-name1 cluster-name2
- Run the
monit restart vrbc-xenon-servicescommand to update the changes.
- Perform one of the following to delete the virtual machines under the blacklisted clusters:
Go to the Administration tab on the vRealize Business for Cloud user interface, delete the vCenter Server and again add the vCenter Server.
monit restart itbm-data-collectorcommand and trigger the cost calculation manually on the vRealize Business for Cloud user interface.Note:
Even if you restart the data collector, you see the deleted virtual machines listed in the Virtual Machine report that are marked as deleted. However, when the cost calculation happens in the next month, these virtual machines will not appear in the report.
- To remove the blacklisted cluster or white-list a cluster for cost calculation, perform the following steps:
- Run the GET command to see the list of blacklisted clusters.
- Run the Set command by removing the cluster that you want to white-list.
For example, if you have two blacklisted clusters and you want to white-list one of those, run the following command:
python /usr/ITFM-Cloud/va-tools/bin/partialVC.py SET vcenter-url cluster-name1Note:
If you run the SET command without specifying the cluster name, all the blacklisted clusters in the vCenter Server will be white-listed.