VMware {code} Community
workvmware
Contributor
Contributor

getting resource allocation data for clusters

Hello, I am trying to get the data listed under Resource Allocation tab under clusters in VI client. I am especially interested in Total Capacity, Reserved Capacity counters for CPU and Memory. I am aware that they are not performance data. How can I get those data listed under that tab through the Java API? What managed entities should I use?

Thank you

Sushant Dhakal

0 Kudos
3 Replies
workvmware
Contributor
Contributor

Actually, I figured it out myself.

Thanks

Sushant Dhakal

0 Kudos
lamw
Community Manager
Community Manager

You'll be able to obtain this information by getting a reference to the root Resource Pool within your cluster - http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ComputeResource.html#...

Take a look at Resource Pool Summary - http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ResourcePool.Summary....

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
workvmware
Contributor
Contributor

Thanks for the reply. I did the exact way you have referenced here.

Sushant Dhakal

0 Kudos