This morning I replayed the June 2009 PowerCLI Webinar. Carters Shanklin’s WebEx session is awesome, he demoed a well written series of PowerShell scripts. With one of his scripts you’re able to collect the %RDY time statistics for all your Virtual Machines. The most common cause of high ready time is trying to get too much work out of too little hardware. Often this condition is observable when ready time is high and total host CPU utilization is also very high. The only fix for this is to back off the load on the system. VMs should be migrated off or processor resources should be increased. I combined Carter’s script with a new feature in PowerShell 2.0, the Out-GridView which displays the ready time information in a real cool Data Grid.
Get-VM
| Select Name, @{ N="Summation"; E={($_ | Get-Stat -stat cpu.ready.summation -maxsamples 1 -intervalmins 5 | select -first 1).Value} } | Sort -property Summation -Descending | Out-GridView