Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246801

Re: vmnic link status

$
0
0

Try something like this

 

&{foreach($esxinGet-VMHost){  foreach($swinGet-VirtualSwitch-VMHost$esx){    foreach($nicin$_.Nic){      Get-VMHostNetworkAdapter-VMHost$esx-Name$nic|      where {$_.Name-like"vmnic*"} |%{        $_|Select@{N="VMHost";E={$esx.Name}},
          @{N="Switch";E={$sw.Name}},
         
Name,BitRatePerSec,@{N="Status";E={            if($_.BitRatePerSec-eq0){"Down"}else{"up"}          }}      }    }  } }} |ft-AutoSize

Viewing all articles
Browse latest Browse all 246801


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>