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

Re: vmnic link status

$
0
0

Hi

 

Add some tweak on LucD powercli, the script will run on specific cluster and will output to guid view...

 

&{foreach($esx in Get-Cluster -Name "cluster_name" | Get-VMHost){

  foreach($sw in Get-VirtualSwitch -VMHost $esx){

    foreach($nic in $_.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 -eq 0){"Down"}else{"up"}

          }}

      }

    }

  }

}} | Out-GridView


Viewing all articles
Browse latest Browse all 214415

Trending Articles



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