show interface counters
Use this command to display the ingress and egress traffic counters on the interface.
Counters are meant for debugging purpose and the accuracy of the transmit discard counter is not guaranteed in all scenarios.
Command Syntax
show interface (IFNAME|) counters (active|)
show interface cpu counters
Parameters
IFNAME
Interface name.
active
Statistics for link-up interfaces.
cpu
CPU interface.
Command Mode
Execution mode and Privileged execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show interface xe1/1 counters
Interface xe1/1
Scope: both
Rx Packets: 1000
Rx Bytes: 1000000
Rx Unicast Packets: 1000
Rx Packets from 512 to 1023 bytes: 1000
Tx Packets: 3897
Tx Bytes: 249408
Tx Multicast Packets: 3897
Tx Packets with 64 bytes: 3897
Tx Packet rate: 1 pps
Tx Bit rate: 255 bps
#show interface cpu counters
CPU Interface
Tx Packets: 104508
Tx Bytes: 7106272
Tx Discard Packets: 89613672
Tx Discard Bytes: 5735237844
Rx Discard Packets: 11938
Here is the explanation of the show command output fields.
Field |
Description |
Receive Counters |
Rx Packets Rx Bytes Rx Unicast Packets Rx Multicast Packets Rx Broadcast Packets Rx Packets with 64 bytes Rx Packets from 65 to 127 bytes Rx Packets from 128 to 255 bytes Rx Packets from 256 to 511 bytes Rx Packets from 512 to 1023 bytes Rx Packets from 1024 to 1518 bytes Rx Packets from 1519 to 2047 bytes Rx Packets from 2048 to 4095 bytes Rx Packets from 4096 to 9216 bytes Rx Jumbo Packets Rx Discard Packets Rx Packets with error Rx CRC Error Packets Rx Undersized Packets Rx Oversized Packets Rx Fragment Packets Rx Jabber Packets Rx MAC error Packets Rx Pause Packets Rx Unrecognized MAC Control Packets Rx Drop Events Rx Packet rate Rx Bit rate |
Transmit Counters |
Tx Packets Tx Bytes Tx Unicast Packets Tx Multicast Packets Tx Broadcast Packets Tx Packets with 64 bytes Tx Packets from 65 to 127 bytes Tx Packets from 128 to 255 bytes Tx Packets from 256 to 511 bytes Tx Packets from 512 to 1023 bytes Tx Packets from 1024 to 1518 bytes Tx Packets from 1519 to 2047 bytes Tx Packets from 2048 to 4095 bytes Tx Packets from 4096 to 9216 bytes Tx Jumbo Packets Tx Discard Packets Tx Packets with error Tx Collisions Tx Late Collisions Tx Excessive Collisions Tx Pause Packets Tx Packet rate Tx Bit rate |
CPU Interface Counters |
Tx Packets Tx Bytes Tx Discard Packets Tx Discard Bytes Rx Discard Packets |