Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 197835

Reading configured memory of resourcepool

$
0
0

I have to read the amount of configured memory because I need it for the automation of creating virtual machines.

But I'm stuck when reading it. I'm reading the property summary.configuredMB from the resourcepool object.

Any resourcepool I tried with it gave me an incorrect result, the result I need can be seen from the vShere client.

 

In total the configured memory is nog 58GB and this property return 2.5GB for this resourcePool and 5.5GB for the Main resourcePool("Resources").

 

This is the code I tried to run:

 

for (var i in allClusterComputeResources)
{
     System.log(allClusterComputeResources[i].resourcePool.summary.configuredMemoryMB /1024 + "GB");
}

 

This should give me the configured memory of the main resourcepool, or did I make a stupid mistake?

Other properties I need are correct, only this one gives that incorrect result.


Viewing all articles
Browse latest Browse all 197835

Trending Articles