Get-VMHostNetworkStack

This cmdlet retrieves the host network stacks on a vCenter Server system.

Syntax

-Id  <String[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id
String[] named 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.
optional
Server
VIServer[] named
  • wildcards
  • 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 the Connect-VIServer cmdlet.

    [[-Name]  <String[]>]
    [-Server  <VIServer[]>]
    [-VMHost  <VMHost[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    optional
    Name
    String[] 1
  • wildcards
  • Specifies the names of the host network stacks you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • 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 the Connect-VIServer cmdlet.
    optional
    VMHost
    VMHost[] named
  • wildcards
  • pipeline
  • Specifies the hosts whose network stacks you want to retrieve.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Networking.HostNetworkStack

    Examples


    Example 1

    Get-VMHostNetworkStack

    Retrieves all network stacks on servers that you are connected to.

    Example 2

    $myVMHost = Get-VMHost -Name MyVMHost
    Get-VMHostNetworkStack -VMHost $myVMHost

    Retrieves all network stacks on the specified host.

    Related Commands

    Feedback

    Was this page helpful?