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?
Rob, that's a known problem.
I'm afraid there is no fix for that (yet).
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Rob, that's a known problem.
I'm afraid there is no fix for that (yet).
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Thanks for the quick reply.
I will have a look at the thread you mentioned
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.
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
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.