Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

HostSystem CPU and Memory returns 0

$
0
0

Hi All,

 

I wrote below script to get Current CPU & Memory Usage on HostSystem in VCO 5.5, but below code always returns 0. Can someone help to resolve ? Is there any other way to get the Current Usage/Utilization ?

 

var myClusterOverallCpuUsage=0;

var  myClusterOverallMemoryUsage=0;

 

var myVcHostSystem = VcPlugin.allHostSystems

 

myClusterOverallCpuUsage = myVcHostSystem[0].summary.quickStats.overallCpuUsage;

myClusterOverallMemoryUsage = myVcHostSystem[0].summary.quickStats.overallMemoryUsage;

System.log( "name:" +myVcHostSystem[0].name);

System.log( "CPU usage"+myClusterOverallCpuUsage);

 

 

Thanks


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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