Get-VBRViVirtualSwitch
Short Description
Returns VMware virtual switches.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Return Type
Detailed Description
This cmdlet returns VMware virtual switches that are created on a ESX(i) host or cluster.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Server | Specifies the ESX or ESXi host or cluster. The cmdlet will return the virtual switches created on this host or cluster. | True | Named | True (by Value | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This example shows how to get switches created on the host named "ESXiHost" .
- Run Get-VBRServer to get the host. Save it to the $server variable.
- Run Get-VBRViVirtualSwitch using the $server variable.
PS C:\PS> $server = Get-VBRServer –Type ESXi -Name "ESXiHost" PS C:\PS> Get-VBRViVirtualSwitch -Server $server |
Example 2
This example shows how to get switches created on the VMware cluster named "vSAN" .
- Run Find-VBRViEntity to get the cluster. Save it to the $cluster variable.
- Run Get-VBRViVirtualSwitch using the $cluster variable.