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

Latest commit

 

History

History
55 lines (41 loc) · 2.48 KB

Get-ICXInterface.README.md

File metadata and controls

55 lines (41 loc) · 2.48 KB

Get-ICXInterface

Get interface(s) from a Brocade ICX Switch.

Description

Get interface(s) from a Brocade ICX Switch with status [up|down], speed [1G|100M|10M] etc.

Screenshot

Syntax

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

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

Example 1

PS> Get-ICXInterface -ComputerName megatron | Select-Object -First 5 | Format-Table

Port  Link State   Duplex Speed Trunk Tag Pvid Priority MAC            Name
----  ---- -----   ------ ----- ----- --- ---- -------- ---            ----
0/1/1 Up   Forward Full   1G    None  Yes N/A  0        0000.0000.0000 UPLINK
0/1/2 Up   Forward Full   1G    None  No  1001 0        0000.0000.0001
0/1/3 Up   Forward Full   100M  None  No  1001 0        0000.0000.0002
0/1/4 Down None    None   None  None  No  1    0        0000.0000.0003
0/1/5 Up   Forward Full   1G    None  No  1001 0        0000.0000.0004

Example 2

PS> $Sessions = New-ICXSession -ComputerName MEGATRON, megatron
PS> Get-ICXInterface -Session $Sessions | Format-Table

SessionID ComputerName Port  Link State   Duplex Speed Trunk Tag Pvid Priority MAC            Name
--------- ------------ ----  ---- -----   ------ ----- ----- --- ---- -------- ---            ----
        0 megatron     0/1/1 Up   Forward Full   1G    None  Yes N/A  0        0000.0000.0000 UPLINK
        0 megatron     0/1/2 Up   Forward Full   1G    None  No  1001 0        0000.0000.0001
        0 megatron     0/1/3 Up   Forward Full   100M  None  No  1001 0        0000.0000.0002
        0 megatron     0/1/4 Down None    None   None  None  No  1    0        0000.0000.0003
        0 megatron     0/1/5 Up   Forward Full   1G    None  No  1001 0        0000.0000.0004
        ...
        1 MEGATRON     0/1/1 Up   Forward Full   1G    None  Yes N/A  0        0000.0000.0000 UPLINK
        1 MEGATRON     0/1/2 Up   Forward Full   1G    None  No  1001 0        0000.0000.0001
        1 MEGATRON     0/1/3 Up   Forward Full   100M  None  No  1001 0        0000.0000.0002
        1 MEGATRON     0/1/4 Down None    None   None  None  No  1    0        0000.0000.0003
        1 MEGATRON     0/1/5 Up   Forward Full   1G    None  No  1001 0        0000.0000.0004
        ...