Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.2 KB

Get-ICXVLAN.README.md

File metadata and controls

41 lines (27 loc) · 1.2 KB

Get-ICXVLAN

Get VLAN(s) from a Brocade ICX Switch.

Description

Get VLAN(s) from a Brocade ICX Switch as PSCustomObject, which can be further processed.

Screenshot

Syntax

Get-ICXVLAN [-ComputerName] <String[]> [[-AcceptKey]] [[-Credential] <PSCredential>] [<CommonParameters>]

Get-ICXVLAN [-Session] <PSObject[]> [<CommonParameters>]

Example 1

PS> Get-ICXVLAN -ComputerName megatron | ? {$_.Name -eq "Test1"} | ft

ID   Name  By   TaggedPort UntaggedPort
--   ----  --   ---------- ------------
1001 Test1 port {0/1/4}    {0/1/37, 0/1/39, 0/1/45, 0/1/46}

Example 2

PS> New-ICXSession -ComputerName MEGATRON, megatron
PS> Get-ICXVLAN -Session (Get-ICXSession) | ? {$_.Name -eq "Test1"} | ft

SessionID ComputerName ID   Name  By   TaggedPort UntaggedPort
--------- ------------ --   ----  --   ---------- ------------
        0 MEGATRON     1001 Test1 port {0/1/4}    {0/1/37, 0/1/39, 0/1/45, 0/1/46}
        1 megatron     1001 Test1 port {0/1/4}    {0/1/37, 0/1/39, 0/1/45, 0/1/46}