PowerCLI Reference

Get-VMHostNetworkStack

Synopsis

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

Syntax

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

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

Related Commands

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specifies the hosts whose network stacks you want to retrieve.falseTrue (ByValue)
NameString[]Specifies the names of the host network stacks you want to retrieve.falseFalse
IdString[]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.
trueFalse
ServerVIServer[]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.
falseFalse

Return Type

Zero or more HostNetworkStack objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.