Tuesday, August 30, 2016

How to get NIC speed using PowerCLI

Get NIC speed using PowerCLI script

Connect-VIServer vcenterservername

$VMhosts = Get-VMHost | Get-View
Foreach ($vmhost in $vmhosts){
   Write-Output $vmhost.Name
   $pnic = 0
   Do {    
      $Speed = $VMhost.Config.Network.Pnic[$pnic].LinkSpeed.SpeedMb    
      Write "Pnic$pnic $Speed"   
      $pnic ++
   } Until ($pnic -eq ($VMhost.Config.Network.Pnic.Length))}

1 comment:

  1. Sheet steel functions embody aerospace, protection, automotive, power, industrial, medical, dental, and shopper merchandise. Secondary manufacturing processes, or HOME SECURITY CAMERAS fabrication, work on merchandise from major processes to create a steel part or structure that's appropriate for end-use. In these processes, semi-finished steel merchandise are reshaped and joined. Moreover, the properties of these semi-finished steel merchandise are additional modified to properly with|swimsuit} customer requirements. Some examples of metal fabrication merchandise are metal trusses, storage tanks, automotive chassis, and steel enclosures.

    ReplyDelete