Get-VMHostNetworkAdapter

Synopsis

Retrieves the host network adapters on a vSphere server.

Syntax

Get-VMHostNetworkAdapter [[-VMHost] <VMHost[]>] [-Physical] [-VMKernel] [-Console] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

New-VMHostNetworkAdapter
Remove-VMHostNetworkAdapter
Set-VMHostNetworkAdapter

Detailed Description

Retrieves the host network adapters on a vSphere server.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
VMHostSpecify the hosts whose network adapters you want to retrieve.falsetrue (ByValue)
PhysicalIndicate that you want to retrieve only physical network adapters.falsefalse
VMKernelIndicate that you want to retrieve only VMKernel virtual network adapters.falsefalse
ConsoleIndicate that you want to retrieve only service console virtual network adapters.falsefalse
ServerSpecify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Input Type

Return Type

VMware.VimAutomation.Types.Host.NetworkAdapter

Notes

Examples

--------------  Example 1 --------------

C:\PS>Get-VMHostNetworkAdapter -VMKernel | fl


Retrieves information about the VMKernel network adapters on the default server.


VMotionEnabled : False
PortGroupName  : vmk
Id             : key-vim.host.VirtualNic-vmk0
VMHostId       : HostSystem-ha-host
DeviceName     : vmk0
Mac            : 00:50:56:71:72:d7
DhcpEnabled    : True
IP             : 10.23.121.73
SubnetMask     : 255.255.248.0
Name           : vmk0

Copyright © 1998 - 2009 VMware, Inc. All rights reserved.