hi, i having some trouble to get iops and throughput stat for esxi for each vmhba adapter to get average, max, min
I can get some network metrics like net.usage.average, net.received.average and net.transmitted.average because the metrics is consolided for all network adapter.
here is the part of classic script i use
$metrics = "net.received.average", "net.transmitted.average"
Get-Stat -Entity $esx -start $start -Finish $stop -MaxSamples 10000 -Intervalmin 30 -stat $metrics |
Group-Object -Property {$_.Entity.Name} | %{
$esxname = $_.Group[0].Entity.Name
$hard = (Get-VMhost -name $esxname).extensiondata.Summary.Hardware
$netreceived = $_.Group | where {$_.MetricId -eq "net.received.average" -and $_.Instance -eq ""} | Measure-Object -Property value -Average -Maximum -Minimum
$nettransmit = $_.Group | where {$_.MetricId -eq "net.transmitted.average" -and $_.Instance -eq ""} | Measure-Object -Property value -Average -Maximum -Minimum
and so on but on the storage adapter, the consolidated metrics doesn't exist...
Thank you very much!