List VM host network details

List VM host network details and output to the PowerCLI console:

Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec

Output to CSV VM host network details:

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

 

https://www.vmadmin.co.uk/resources/48-vspherepowercli/251-powerclinetworkoutputcsv

Clearing the ARP cache table in ESXi 5.5

For example, to delete the ARP entry for address 10.103.0.10:

  1. Connect to the ESXi 5.5 host using SSH.
  2. View the current ARP table using this command:

    # esxcli network ip neighbor list

    You see output similar to:

    Neighbor      Mac Address        Vmknic    Expiry  State  Type
    ------------  -----------------  ------   -------  -----  -----
    10.103.0.10 xx:xx:xx:xx:xx:xx   vmk0     908 sec        Unknown
    10.131.0.179  xx:xx:xx:xx:xx:xy   vmk0    1062 sec        Unknown

  3. To delete the ARP entry for address 10.131.0.103, run one of these commands:
    • # esxcli network ip neighbor remove -v 4 -a 10.103.0.10
    • # esxcli network ip neighbor remove --version=4 --neighbor-addr=10.103.0.10
  4. View the ARP table again using this command:

    # esxcli network ip neighbor list

    You see output similar to:

    Neighbor      Mac Address        Vmknic    Expiry  State  Type
    ------------  -----------------  ------   -------  -----  -----
    10.131.0.179  xx:xx:xx:xx:xx:xz   vmk0    750 sec        Unknown