Automation

 View Only
  • 1.  get-vm | get-stat -cpu

    Posted Nov 18, 2008 11:37 AM

    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



  • 2.  RE: get-vm | get-stat -cpu

    Posted Nov 18, 2008 12:30 PM

    First thing to check, are you collecting performance data ?

    In the VI Client go to .

    Are there any intervals checked ?



  • 3.  RE: get-vm | get-stat -cpu

    Posted Nov 18, 2008 12:42 PM

    yes got this sorted now

    cheers



  • 4.  RE: get-vm | get-stat -cpu
    Best Answer

    Posted Nov 18, 2008 01:00 PM

    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.



  • 5.  RE: get-vm | get-stat -cpu

    Posted Nov 19, 2008 09:29 AM

    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