vSphere PowerCLI Reference

Get-VMHostNetworkAdapter

Synopsis

Retrieves the host network adapters on a vSphere server.

Syntax

Get-VMHostNetworkAdapter [[-VMHost] <VMHost[]>] [-Physical] [-VMKernel] [-Console] [[-Name] <String[]>] [-Id <String[]>] [-Server <VIServer[]>] [<CommonParameters>]
Get-VMHostNetworkAdapter [[-DistributedSwitch] <DistributedSwitch[]>] [-Physical] [-VMKernel] [-Console] [[-Name] <String[]>] [-Id <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-VMHostNetworkAdapter
Remove-VMHostNetworkAdapter
Set-VMHostNetworkAdapter

Detailed Description

Retrieves the host network adapters on a vSphere server.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
DistributedSwitchDistributedSwitch[]Filter the available network adapters by the virtual switches they are connected to.falsetrue (ByValue)
VMHostVMHost[]Specify the hosts whose network adapters you want to retrieve. The position of this parameter is deprecated and might change in a following release.falsetrue (ByValue)
NameString[]Specify the names of the host network adapters you want to retrieve. The position of this parameter might change in a following release.falsefalse
ConsoleSwitchParameterIndicate that you want to retrieve only service console virtual network adapters.falsefalse
IdString[]Specify the Ids of the host network adapters you want to retrieve.falsefalse
PhysicalSwitchParameterIndicate that you want to retrieve only physical network adapters.falsefalse
ServerVIServer[]Specify 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
VMKernelSwitchParameterIndicate that you want to retrieve only VMKernel virtual network adapters.falsefalse

Return Type

HostNic

Notes

Examples

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

Get-VMHostNetworkAdapter -VMKernel | fl

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


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