Get-VMHostNetworkAdapter
This cmdlet retrieves the host network adapters on a vCenter Server system.
Syntax
[-Console]
[-Id <String[]>]
[-Physical]
[-PortGroup <VirtualPortGroupBase[]>]
[-Server <VIServer[]>]
[-VMHost <VMHost[]>]
[-VMKernel]
[-VirtualSwitch <VirtualSwitchBase[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
String[] | 1 |
|
Specifies the names of the host network adapters you want to retrieve. The position of this parameter is deprecated and will be changed in a future release. To avoid errors when you run existing scripts on future PowerCLI versions, specify the parameter by name. | optional |
|
SwitchParameter | named |
|
Indicates that you want to retrieve only service console virtual network adapters. | optional |
|
String[] | named |
|
Specifies the IDs of the host network adapters you want to retrieve. Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. | optional |
|
SwitchParameter | named |
|
Indicates that you want to retrieve only physical network adapters. | optional |
|
VirtualPortGroupBase[] | named |
|
Specifies the port groups to which network adapters that you want to retrieve are connected. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
VMHost[] | named |
|
Specifies the hosts whose network adapters you want to retrieve. The position of this parameter is deprecated and might change in a following release. | optional |
|
SwitchParameter | named |
|
Indicates that you want to retrieve only VMKernel virtual network adapters. | optional |
|
VirtualSwitchBase[] | named |
|
Specifies the virtual switches to which network adapters that you want to retrieve are connected. The position of this parameter is deprecated and will be changed in a future release. To avoid errors when you run existing scripts on future PowerCLI versions, specify the parameter by name. |
Output
VMware.VimAutomation.ViCore.Types.V1.Host.Networking.Nic.HostVirtualNic
Examples
Example 1
Retrieves information about about all VMKernel network adapters on servers that you are connected to.
Example 2
Retrieves all physical network adapters on the specified host.
Example 3
Retrieves all VMKernel network adapters connected to the specified virtual switch.
Example 4
Retrieves VMHost network adapters by a specified distributed port group.
Example 5
Retrieves physical VMHost network adapters by a specified standard virtual switch.
Related Commands
VMHost
VMHostAccount
VMHostAdvancedConfiguration
VMHostAuthentication
VMHostAvailableTimeZone
VMHostDiagnosticPartition
VMHostDisk
VMHostDiskPartition
VMHostFirewallDefaultPolicy
VMHostFirewallException
VMHostFirmware
VMHostHardware
VMHostHba
VMHostModule
VMHostNetwork
VMHostNetworkAdapter
VMHostNetworkStack
VMHostNtpServer
VMHostPatch
VMHostPciDevice
VMHostProfile
VMHostProfileCompliance
VMHostProfileImageCacheConfiguration
VMHostProfileRequiredInput
VMHostProfileStorageDeviceConfiguration
VMHostProfileUserConfiguration
VMHostProfileVmPortGroupConfiguration
VMHostRoute
VMHostService
VMHostSnmp
VMHostStartPolicy
VMHostStorage