VMware Cloud Community
RobMokkink
Expert
Expert
Jump to solution

get-stat problem

I want to collect static for each lun to get the IOPS etc.

But for some reason:

Get-Stat -Entity host1.example.com -Stat disk.numberRead.summation -IntervalMins 5 -MaxSamples $maxSamples

Gives me the error:

The metric counter "disk.numberread.summation" doesn't exist for entity "host1.example.com".

After that i get the output.

How to fix this?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Rob, that's a known problem.

I'm afraid there is no fix for that (yet).

See Yavor's reply in

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

Rob, that's a known problem.

I'm afraid there is no fix for that (yet).

See Yavor's reply in

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
RobMokkink
Expert
Expert
Jump to solution

Hi Luc,

Thanks for the quick reply.

I will have a look at the thread you mentioned

0 Kudos
RobMokkink
Expert
Expert
Jump to solution

I found a great script:

http://wirtualizacja.wordpress.com/2010/02/02/powershell-pobieranie-iops-i-latency-z-lun/

When i use $ErrorActionPreference = "SilentlyContinue"

I get some numbers.

I have to tweak and customize some stuff and do some checks if the values are correct, but so far it looks great.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Indeed a great script.

Btw you can change it to do only 1 Get-Stat call (faster script) by passing all 4 metrics together.

You will need a Group-Object cmdlet or a Switch statement to group/filter the metrics.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
RobMokkink
Expert
Expert
Jump to solution

Yes it is a great script.

However i am a bit concerned that the read latency average write latency average values are wrong.

So i am busy calculating if the values are correct.

0 Kudos