VMware Cloud Community
Poirot
Contributor
Contributor
Jump to solution

Using PowerCLI to get the Virtual Disk Latencies

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
Poirot
Contributor
Contributor
Jump to solution

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

0 Kudos