ade_orimalade
Contributor
Contributor

get-vm | get-stat -cpu

Jump to solution

Hi i am playing with the follwouing command

Get-VM | Get-Stat -cpu

but get blank output

However

Get-VM works ok

what am I doing wrong ??

Cheers

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Good, note that it can take some time before you see data for all the intervals.

Also note that it depends on the "Statistics Level" you have defined which metrics are available for each interval.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership

First thing to check, are you collecting performance data ?

In the VI Client go to .

Are there any intervals checked ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

ade_orimalade
Contributor
Contributor

yes got this sorted now

cheers

0 Kudos
LucD
Leadership
Leadership

Good, note that it can take some time before you see data for all the intervals.

Also note that it depends on the "Statistics Level" you have defined which metrics are available for each interval.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
yboychev
Hot Shot
Hot Shot

Hi,

It also can be useful for you if you use the -RealTime parmeter switch with the Get-Stat cmdlet. That will give you the real ttme statistics on 20sec intervals.

Example: Get-Vm | Get-Stat -cpu -realtime

\Yavor