show counters interface ethernet

Displays the counters of Ethernet interface.

Syntax

show counters interface ethernet [ IFNAME | port-channel number| brief ]

Parameters

IFNAME
Specifies the interface name in slot/port format. Examples: 1/1, 1/1-3, 5, 2/7-9
port-channel number
Specifies interface statistics for specified port channel number.
brief
Specifies brief interface stats

Modes

Exec mode

Usage Guidelines

This command is available only to users with admin role.

Examples

The following example shows counters of Ethernet interface.

device# Interface Statistics: ethernet 1/1
Carrier Transitions: 0
           LastClear: 1h51m53.558433595s
Input:
              Total pkts: 20000000
          Broadcast pkts: 0
            Discard pkts: 0
             Errors pkts: 0
              FCS Errors: 0
              MCast pkts: 0
                  Octets: 7760000000
              UCast pkts: 20000000
               Runt pkts: 0
              CRC Errors: 0
Input Distribution:
            64 byte pkts: 0
        65-127 byte pkts: 0
       128-255 byte pkts: 0
       256-511 byte pkts: 10000000
      512-1023 byte pkts: 10000000
     1024-1518 byte pkts: 0
              Jumbo pkts: 0
Out:
              Total pkts: 0
          Broadcast pkts: 0
            Discard pkts: 0
             Errors pkts: 0
              MCast pkts: 0
                  Octets: 0
              UCast pkts: 0
Rate Info:
                   Input: 0.000000 Mbits/sec, 0 pkts/sec 0.00% of line-rate
                  Output: 0.000000 Mbits/sec, 0 pkts/sec 0.00% of line-rate

The following example shows statistics for port channel 3.

device# show counters interface port-channel 3
Interface Statistics: port-channel 3
Carrier Transitions: 3
           LastClear: 1m58.104973563s
Input:
              Total pkts: 0
          Broadcast pkts: 0
            Discard pkts: 0
             Errors pkts: 0
              FCS Errors: 0
              MCast pkts: 0
                  Octets: 0
              UCast pkts: 0
Out:
              Total pkts: 0
          Broadcast pkts: 0
            Discard pkts: 0
             Errors pkts: 0
              MCast pkts: 0
                  Octets: 130000000000
              UCast pkts: 250000000

The following example shows brief stats output for the ethernet interface.

device# show counters interface ethernet brief 
           Packets   Error     Discards   CRC 
Interface  rx  tx    rx  tx    rx  tx     rx     

=======   ========  ========   =======   ======   

Eth 1/1    0   0      0   0     0   0     0     

Eth 1/2    0   0      0   0     0   0     0     

Eth 1/3    0   0      0   0     0   0     0     

Eth 1/4    0   0      0   0     0   0     0     

Eth 1/5    0   144    0   0     0   0     0