Friday, 14 October 2016

vSphere: List Network Details For All Hosts

I had a requirement to view detailed network information for all host NICs under a vCenter server. The following command generates the required information (including MTU, IP and MAC addresses) and exports this to a .CSV file;

Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\VMHostNetworkDetails.csv

No comments:

Post a Comment