I'm trying to run following line
Get-vm TestVM | get-stat -stat mem.swapused.kilobytes
but get error
Get-Stat : 03/11/2009 16:10:49 Get-Stat The metric counter "mem.swapused.kilobytes" doesn't exist for entity "TestVM".
At line:1 char:9
+ Get-stat <<<< -entity (get-vm svr-sccm-cdc01) -stat mem.swapused.kilobytes -IntervalMins 5
+ CategoryInfo : ResourceUnavailable: (:) Get-Stat, VimException
+ FullyQualifiedErrorId : Client20_RuntimeDataServiceImpl_CheckUserMetrics_MetricDoesntExist,VMware.VimAutomation.Commands.GetViStats
the stats level in VC is 2 and I can see this stats through VI client. Also if i run Get-TKEperformanceCounter form the Community Extensions this stat is listed for the VM.
I can see level 1 type stats like
get-vm testvm | get-stat -stat mem.usage.average
I'm running PowerCli 4 162509
thanks.
Get-vm TestVM | get-stat -stat mem.swapused.kilobytes
but get error
Get-Stat : 03/11/2009 16:10:49 Get-Stat The metric counter "mem.swapused.kilobytes" doesn't exist for entity "TestVM".
At line:1 char:9
+ Get-stat <<<< -entity (get-vm svr-sccm-cdc01) -stat mem.swapused.kilobytes -IntervalMins 5
+ CategoryInfo : ResourceUnavailable: (:) Get-Stat, VimException
+ FullyQualifiedErrorId : Client20_RuntimeDataServiceImpl_CheckUserMetrics_MetricDoesntExist,VMware.VimAutomation.Commands.GetViStats
the stats level in VC is 2 and I can see this stats through VI client. Also if i run Get-TKEperformanceCounter form the Community Extensions this stat is listed for the VM.
I can see level 1 type stats like
get-vm testvm | get-stat -stat mem.usage.average
I'm running PowerCli 4 162509
thanks.