check statistics for nics in a whole cluster

### playing with NIC stats
$hosts = Get-Cluster nlam0c0-clusc |Get-VMHost
foreach($vihost in $hosts)
>> {
>> $esxcli=Get-EsxCli -VMHost (get-vmhost $vihost) -V2
>> $arguments=$esxcli.network.nic.stats.get.CreateArgs()
>> $arguments.nicname = "vmnic0"
>> $esxcli.network.nic.stats.get.invoke($arguments)
>> }

Last updated

Was this helpful?