Syntax
Get-VMHostNetworkStack -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Detailed Description
This cmdlet retrieves the host network stacks on a vCenter Server system.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VMHost | VMHost[] | Specifies the hosts whose network stacks you want to retrieve. | false | True (ByValue) | |
Name | String[] | Specifies the names of the host network stacks you want to retrieve. | false | False | |
Id | String[] | Specifies the IDs of the host network stacks 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. | true | False | |
Server | VIServer[] | Specifies the vCenter Server systems 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 the Connect-VIServer cmdlet. | false | False |
Return Type
Zero or more HostNetworkStack objectsNotes
Examples
-------------------------- Example 1 --------------------------
Get-VMHostNetworkAdapter
Retrieves all network stacks on servers that you are connected to.
-------------------------- Example 2 --------------------------
$myVMHost = Get-VMHost -Name MyVMHost Get-VMHostNetworkAdapter -VMHost $myVMHost
Retrieves all network stacks on the specified host.