Hi All,
I am trying to get the Disk read and latencies on certain VMs
I am quite a beginner on PowerCLi apart from writing some utility one liners
I checked this thread
http://communities.vmware.com/thread/304827
But these counters are not working for Me
Can anyone please help ?
[vSphere PowerCLI] D:\Program Files\VMware\Infrastructure\vSphere PowerCLI> $stats += Get-Stat -Entity "USB-SSAPP" -Stat virtualDisk.totalWriteLatency.average
Start $today1am.AddDays($intStartDay) -Finish $today4am.AddDays($intEndDay)
[vSphere PowerCLI] D:\Program Files\VMware\Infrastructure\vSphere PowerCLI> $stats
Returns nothing,
I have created all the variables which I am supplying into the command.
Regards,
P
You could start with checking at which statistical level the period you specified is defined in vCenter.
The "latency" metrics need at least level 2.
I assume that "USB-SSAPP" is the name of an ESX(i) host ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You could start with checking at which statistical level the period you specified is defined in vCenter.
The "latency" metrics need at least level 2.
I assume that "USB-SSAPP" is the name of an ESX(i) host ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi,
Yes, the statistics level I need to check, and it is not set.
I will check it accordingly.
Anyway, we got Veeam which is doing the same thing.
I will try this script out in my LAB.
Regards,
P