Using CLI for Troubleshooting

You can use CLI to provide diagnostic information.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Disable scrolling of the output display:

    terminal more disable

  3. View configuration file information:

    more WORD<1–99>

  4. Capture the output for the following command after you observe a problem with the device:

    show running-config [verbose] [module {app-telemetry | boot | cfm | cli | diag | dvr | eap | endpoint-tracking | energy-saver | fa | fhs | filter | ike | ip | ipfix | ipsec | ipv6 | iqagent | isis | i-sid | lacp | license | lldp | lst | macsec | mlt | naap | nls | ntp | ovsdb | port | qos | radius | restconf | rmon | sflow | security | slamon | slpp | smtp | spbm | stg | sys | tacacs | virtualservice | vlan | web | vxlan}]

  5. Capture the output for the following command after you observe a problem with the device:

    show tech

  6. Capture the output for the following commands after you observe a problem with the device:
    Note

    Note

    The show interfaces gigabitEthernet statistics rmon command displays information only if you previously configured rmon stats or rmon history.

    show interfaces gigabitEthernet statistics <dhcp-relay [vrf WORD<0–16>][vrfids WORD<0–512>] [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

    show interfaces gigabitEthernet statistics lacp [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

    show interfaces gigabitEthernet statistics rate—limiting [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

    show interfaces gigabitEthernet statistics policer [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

    show interfaces gigabitEthernet statistics rmon [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

    show interfaces gigabitEthernet statistics vlacp [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

    show interfaces gigabitEthernet statistics verbose [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

  7. Capture the output for the following command after you observe a problem with the device:
    Note

    Note

    Product Notice: If you run this command on an XA1400 Series switch, most of the values report as zero (0). To see port-level error counters for XA1400 Series, use the show io nic-counters command instead.

    show interfaces gigabitEthernet error [collision|verbose] [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

Examples

Due to the length of command output, the following examples are truncated.

Capture the output for the following command after you observe a problem with the device:

Switch:1#show running-config module cli
Preparing to Display Configuration...
#
# Thu Dec 19 18:38:02 2016 UTC
# box type             : Switch
# software version     : 4.5.0.1_B008 (PRIVATE)
# cli mode             : ECLI
#

config terminal

#
# CLI CONFIGURATION
#

cli timeout 65535
prompt "Switch-1"

Capture the output for the following command after you observe a problem with the device:

Switch:1>show tech

Sys Info:
---------------


General Info :

        SysDescr     : Switch (4.5.0.1_B008) (PRIVATE)
        SysName      : Switch-1
        SysUpTime    : 7 day(s), 18:23:36
        SysContact   : support@extremenetworks.com
        SysLocation  : 

Chassis Info:

        Chassis            : Switch
        Serial#            : SDNIV84Q0010
        H/W Revision       : 1
        H/W Config         :
        NumSlots           : 2
        NumPorts           : 97
        BaseMacAddr        : b0:ad:aa:40:04:00
        MacAddrCapacity    : 1024

        MgmtMacAddr        : b0:ad:aa:40:04:81
        System MTU         : 1950
--More-- (q = quit)

Capture the output for the following command after you observe a problem with the device:

Switch:1#show interfaces gigabitethernet statistics

================================================================================
                             Port Stats Interface
================================================================================
PORT     IN                  OUT                  IN                   OUT
NUM    OCTETS               OCTETS               PACKET               PACKET
--------------------------------------------------------------------------------
1/1    1215232              1852156              18988                25083
1/2    11866260             3650340              128847               51849
1/3    0                    0                    0                    0
1/4    0                    0                    0                    0
1/5    0                    0                    0                    0
1/6    2606433776           2605569408           40718802             40712022
1/7    2383797478           2368788480           37189478             37012320
1/8    2639779622           2624836140           41201664             40945760
1/9    0                    0                    0                    0
1/10   0                    0                    0                    0
1/11   0                    0                    0                    0
1/12   0                    6776546              0                    62572
1/13   1215232              997632               18988                15588
1/14   7459408              1396224              69625                18702
--More-- (q = quit)

Capture the output for the following command after you observe a problem with the device:

Switch:1#show interfaces gigabitEthernet error

================================================================================
                              Port Ethernet Error
================================================================================
PORT  ERROR   ERROR   FRAMES  TOO     LINK    CARRIER CARRIER SQETEST IN
NUM   ALIGN   FCS     LONG    SHORT   FAILURE SENSE   ERRORS  ERRORS  DISCARD
--------------------------------------------------------------------------------
1/1   0       0       0       0       0       0       0       0       0
1/2   0       0       0       0       0       0       0       0       0
1/3   0       0       0       0       0       0       0       0       0
1/4   0       0       0       0       0       0       0       0       0
1/5   0       0       0       0       0       0       0       0       0
1/6   0       0       0       0       0       0       0       0       0
1/7   0       0       0       0       0       0       0       0       0
1/8   0       0       0       0       0       0       0       0       0
1/9   0       0       0       0       0       0       0       0       0
1/10  0       0       0       0       0       0       0       0       0
1/11  0       0       0       0       0       0       0       0       0
1/12  0       0       0       0       0       0       0       0       0
1/13  0       0       0       0       0       0       0       0       0
1/14  0       0       0       0       0       0       0       0       0

--More-- (q = quit)
Switch:1#show io nic-counters

======== PORT 1 NIC STATS ========

bash-4.4# ethtool -S eth1 | grep -v queue
NIC statistics:
     rx_packets: 49378
     tx_packets: 1801
     rx_bytes: 3614051
     tx_bytes: 153217
     rx_broadcast: 11142
     tx_broadcast: 61
     rx_multicast: 37666
     tx_multicast: 1283
     multicast: 37666
     collisions: 0
     rx_crc_errors: 0
     rx_no_buffer_count: 0
     rx_missed_errors: 0
     tx_aborted_errors: 0
     tx_carrier_errors: 0
     tx_window_errors: 0
     tx_abort_late_coll: 0
     tx_deferred_ok: 0
     tx_single_coll_ok: 0
     tx_multi_coll_ok: 0
     tx_timeout_count: 0
     rx_long_length_errors: 0
     rx_short_length_errors: 0
     rx_align_errors: 0
     tx_tcp_seg_good: 0
     tx_tcp_seg_failed: 0
     rx_flow_control_xon: 0
     rx_flow_control_xoff: 0
     tx_flow_control_xon: 0
     tx_flow_control_xoff: 0
     rx_long_byte_count: 3614051
     tx_dma_out_of_sync: 0
     tx_smbus: 0
     rx_smbus: 0
     dropped_smbus: 0
     os2bmc_rx_by_bmc: 0
     os2bmc_tx_by_bmc: 0
     os2bmc_tx_by_host: 0
     os2bmc_rx_by_host:
     tx_hwtstamp_timeouts: 0
     tx_hwtstamp_skipped: 0
     rx_hwtstamp_cleared: 0
     rx_errors: 0
     tx_errors: 0
     tx_dropped: 0
     rx_length_errors: 0
     rx_over_errors: 0
     rx_frame_errors: 0
     rx_fifo_errors: 0
     tx_fifo_errors: 0
     tx_heartbeat_errors: 0
bash-4.4#
bash-4.4# exit
exit
--More-- (q = quit)

Variable Definitions

The following table defines parameters for the more command.

Variable

Value

WORD<1–99>

Specifies the file name to view. Provide the filename in one of the following formats: a.b.c.d:<file>, /intflash/<file>.

The following table defines parameters for the show running-config command.

Variable

Value

module {app-telemetry | boot | cfm | cli | diag | dvr | eap | endpoint-tracking | energy-saver | fa | fhs | filter | ike | ip | ipfix | ipsec | ipv6 | iqagent | isis | i-sid | lacp | license | lldp | lst | macsec | mlt | naap | nls | ntp | ovsdb | port | qos | radius | restconf | rmon | sflow | security | slamon | slpp | smtp | spbm | stg | sys | tacacs | virtualservice | vlan | web | vxlan}

Specifies the command group for which you request configuration settings.

Note:

All configuration modules are not supported on all hardware platforms. For information about feature support, see VOSS Feature Support Matrix.

verbose

Specifies a complete list of all configuration information about the switch.

The following table defines parameters for the show interfaces gigabitEthernet statistics command.

Variable

Value

dhcp-relay [vrf WORD<1–16> ][vrfids WORD<0–512> {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

Displays port Dynamic Host Configuration Protocol (DHCP) statistics.

lacp {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Displays Link Aggregation Control Protocol (LACP) statistics.

rate-limiting {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Displays port ingress rate-limiting statistics.

rmon {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]} [history]

Displays Remote Network Monitoring (RMON) statistics.

verbose

Displays a complete list of all statistics.

vlacp [history] {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Displays port Virtual Link Aggregation Control Protocol (VLACP) statistics.

  • history—Displays the VLACP port counter profile.

  • {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

    Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

The following table defines parameters for the show interfaces gigabitEthernet error command.

Variable

Value

collision

Displays port collision error information.

ospf

Displays ports Open Shortest Path First (OSPF) error information.

verbose

Displays all port error information.

{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.