VMware Cloud Community
piaroa
Expert
Expert

CPU Ready + Out-GridView in percentage?

Hi guys,

I'm using this to get a view of CPU Ready values and it's working fine:

Get-VM | Select Name, @{ N="Summation"; E={($_ | Get-Stat -stat cpu.ready.summation -maxsamples 1 -intervalsecs 30 | select -first1).Value} } | Sort -property Summation -Descending | Out-GridView

sourced from here: Carter’s PowerCLI webinar brings us the Ready Time Monitor - Eric Sloof - NTPRO.NL

Is there a way to get the same info, with the Out-GridView but getting a "percentage" column instead of a summation one, or both ?

Thanks in advance,

If this post has been helpful/solved your issue, please mark the thread and award points as you see fit. Thanks!
0 Kudos
1 Reply
julienvarela
Commander
Commander

Hi,

Maybe here you can find some helps.http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=200218...

(CPU summation value / (<chart default update interval in seconds> * 1000)) * 100 = CPU ready %

Regards,

Julien.

Regards, J.Varela http://vthink.fr
0 Kudos