Hi, I would like to perform and display the output of following counter and it will be 2 minutes interval for last 1 hour ( for : VMs /Guests) :
i) Average CPU load = by using cpu.usagemhz.average < -- How can I convert it to GHz since the output showing is in MHz?
ii) Average Memory Usage (in MHz) <-- any idea on this as well, how can I get in MHz?
i) To convert from MHz to GHz you divide by 1000.
$valueGHz = $valueMHz / 1000
ii) I'm not sure that memory can be measured in Hz.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
i) To convert from MHz to GHz you divide by 1000.
$valueGHz = $valueMHz / 1000
ii) I'm not sure that memory can be measured in Hz.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD, the convertion is working perfectly.
By the way, is that any way I can get memory in Hz format as I mentioned at the above?
He did answer your question.
Do you want memory converted from MB to GB ($value / 1024) or GB to MB ($value * 1024)?
Unless you actually want the memory speed. In which case you can get that info from the BIOS, vendor supplied configuration tool or by going to hardware status in vCenter, then memory, then expanding a DIMM. But I doubt this is what you actually want.