VMware Cloud Community
ade_orimalade
Contributor
Contributor
Jump to solution

get-vm | get-stat -cpu

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

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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
Jump to solution

yes got this sorted now

cheers

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
yboychev
Hot Shot
Hot Shot
Jump to solution

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