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

Some issue for get host performace in vCenter Orchestrator

$
0
0

When i run  following code to get the host cpu and memory usage. it can return the value, but not the real value.

as the following picture shows. is anybody know the reason?

 

//code

var hosts=System.getModule("com.vmware.library.vc.host").getAllHostSystems();
for each (var tmp in hosts) {
   Server.log("---->  '"+ tmp.name +"' ");
   Server.log("---->  '"+ tmp.summary.quickStats.overallCpuUsage   +"' ");
   Server.log("---->  '"+ tmp.summary.quickStats.overallMemoryUsage   +"' ");
}

 

1.png

2.png

3.png


Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>