show ports

show ports {port_list | tag tag} {no-refresh | refresh}

Description

Displays port summary statistics.

Syntax Description

port_list

Specifies one or more ports or slots and ports.

tag

Specifies an 802.1Q or 802.1ad tag value.

no-refresh

Specifies a static snapshot of the data.

refresh Specifies a continuous refresh of output.

Default

N/A.

Usage Guidelines

Use this command to display the port number, display string, and some of the port states in tabular form.

The VLAN name is displayed only if that port contains a single VLAN. If the port contains more than one VLAN, then the number of VLANs is displayed.

The tag value may be associated with either a VMAN or a VLAN.

Example

The following command displays on slot 2-3 on port 1 and slot 12 on port 10 on a modular switch:

show ports 1:2-3,10:12

Following is sample output from this command:

show ports 1:2-3,10:12
Port Summary Monitor                      Thu Feb 14 14:19:50 2008
Port  Display         VLAN Name          Port  Link  Speed  Duplex
#     String          (or # VLANs)       State State Actual Actual
==================================================================
1:2   2nd-Floor-Lab   Lab-Backbone       E     A     1000   FULL
1:3                   Building2          E     A D
10:12 AllBackboneLANs (34)               E     R            FULL
==================================================================
Port State: D-Disabled, E-Enabled
Link State: A-Active, R-Ready, NP-Port Not Present, L-Loopback,
D-ELSM enabled but not up
U->page up  D->page down  ESC->exit

Restricted optics will show similarly to unsupported optics (!) in the show ports command by use of a ‘$‘.  Additionally, when a 3rd party license has been installed, previously restricted optics are shown using a ‘%‘, because those optics are un-restricted by means of the license. Here is an example output:

show port 2:*        conf   
Port Configuration Monitor                              Wed Sep  5   20:35:54 2012   
Port    Virtual    Port  Link  Auto   Speed      Duplex   Flow  Load    Media           
        router     State State Neg  Cfg Actual Cfg Actual Cntrl Master  Pri Red   
================================================================================   
2:1     VR-Default  E      R   OFF 40000         FULL                   $Q+SR4            
2:2     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:3     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:4     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:5     VR-Default  E      R   OFF 40000         FULL                    NONE       
2:6     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:7     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:8     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:9     VR-Default  E      R   OFF 40000         FULL                   %Q+LR4      
2:10    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:11    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:12    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:13    VR-Default  E      R   OFF 40000         FULL                    Q+SR4      
2:14    VR-Default  E     NP   OFF 10000         FULL                    NONE      
 ================================================================================    > indicates Port
        Display Name truncated past 8 characters    Link State:
        A-Active, R-Ready, NP-Port Not Present, L-Loopback    Port State:
        D-Disabled, E-Enabled, Media:!-Unsupported,$-Restrict.,%-Unrestrict.    Media Red: * -
        use "show port info detail" for redundant media type    0->Clear
        Counters  U->page up  D->page down ESC->exit    


show port 2:* conf no   
Port Configuration   
Port    Virtual    Port  Link  Auto   Speed      Duplex   Flow  Load    Media           
        router     State State Neg  Cfg Actual Cfg Actual Cntrl Master Pri Red   
================================================================================   
2:1     VR-Default  E      R   OFF 40000         FULL                   $Q+SR4      
2:2     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:3     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:4     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:5     VR-Default  E      R   OFF 40000         FULL                    NONE       
2:6     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:7     VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:8     VR-Default  E     NP   OFF 10000         FULL                    NONE      
2:9     VR-Default  E      R   OFF 40000         FULL                   %Q+LR4      
2:10    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:11    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:12    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:13    VR-Default  E      R   OFF 40000         FULL                    Q+SR4      
2:14    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:15    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:16    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:17    VR-Default  E      R   OFF 40000         FULL                    NONE       
2:18    VR-Default  E     NP   OFF 10000         FULL                    NONE       
2:19    VR-Default  E     NP   OFF 10000         FULL                    NONE       
================================================================================        >
    >  indicates Port Display Name truncated past 8 characters        
    Link State: A-Active, R-Ready, NP-Port not present, L-Loopback 
    Port State: D-Disabled, E-Enabled        
    Media: !-Unsupported Transceiver $-Restricted/%-Unrestricted Transceiver        
    Media Red: * - use "show port info detail" for redundant media type    

History

This command was first available in ExtremeXOS 12.1.

The tag value was added in ExtremeXOS 12.4.4.

Show output for 3rd party restricted optics support was added in ExtremeXOS 15.3.

The refresh keyword was added in ExtremeXOS 16.1.

Platform Availability

This command is available on all platforms.