08-14-2009 06:15 AM - edited 03-04-2019 05:44 AM
Sorry for the simple question, but there is a command that will allow you to view the statistics of packets and I cannot remember what it is.
For example, I am looking for how many packets of a certain size.
02-10-2022 11:58 PM - edited 02-11-2022 12:11 AM
To show packet size on interfaces:
- IOS XE (ASR920) use command "show platform hardware pp active interface statistics"
- IOS XR (ASR9000) use command "sh controllers tenGigE 0/0/0/1 stats"
ASR920#show platform hardware pp active interface statistics Interface: GigabitEthernet0/0/0 input_pkts: 0 input_bytes: 0 output_pkts: 0 output_bytes: 0 input_ucast_pkts: 0 input_mcast_pkts: 0 input_bcast_pkts: 0 input_total_drops: 0 input_total_errors: 0 input_crc: 0 input_overrun: 0 input_frame: 0 output_ucast_pkts: 0 output_mcast_pkts: 0 output_bcast_pkts: 0 output_total_drops: 0 output_total_errors: 0 input_pkts_64: 0 input_pkts_65to127: 0 input_pkts_128to255: 0 input_pkts_256to511: 0 input_pkts_512to1023: 0 input_pkts_1024to1518: 0 input_giant_pkts: 0 input_runt_pkts: 0 input_fragments: 0 input_collisions: 0 input_1q_pkts: 0 input_unknown_1q_drops: 0 input_pause_frames: 0 input_aborts: 0 output_pkts_64: 0 output_pkts_65to127: 0 output_pkts_128to255: 0 output_pkts_256to511: 0 output_pkts_512to1023: 0 output_pkts_1024to1518: 0
RP/0/RSP1/CPU0:ASR9K#show controllers tenGigE 0/0/0/1 stats
Fri Feb 11 15:05:33.354 ICT
Statistics for interface TenGigE0/0/0/1 (cached values):
Ingress:
Input total bytes = 466219456
Input good bytes = 466219456
Input total packets = 4249239
Input 802.1Q frames = 0
Input pause frames = 0
Input pkts 64 bytes = 362852
Input pkts 65-127 bytes = 3855668
Input pkts 128-255 bytes = 10480
Input pkts 256-511 bytes = 66
Input pkts 512-1023 bytes = 0
Input pkts 1024-1518 bytes = 0
Input pkts 1519-Max bytes = 20173
Input good pkts = 4249239
Input unicast pkts = 71632
Input multicast pkts = 4177605
Input broadcast pkts = 2
Input drop overrun = 0
Input drop abort = 0
Input drop invalid VLAN = 0
Input drop invalid DMAC = 0
Input drop invalid encap = 0
Input drop other = 0
Input error giant = 0
Input error runt = 0
Input error jabbers = 0
Input error fragments = 0
Input error CRC = 0
Input error collisions = 0
Input error symbol = 0
Input error other = 0
Input MIB giant = 20173
Input MIB jabber = 0
Input MIB CRC = 0
Egress:
Output total bytes = 1129572783
Output good bytes = 1129572783
Output total packets = 14557377
Output 802.1Q frames = 0
Output pause frames = 0
Output pkts 64 bytes = 8447071
Output pkts 65-127 bytes = 6004311
Output pkts 128-255 bytes = 85619
Output pkts 256-511 bytes = 68
Output pkts 512-1023 bytes = 0
Output pkts 1024-1518 bytes = 0
Output pkts 1519-Max bytes = 20308
Output good pkts = 14557377
Output unicast pkts = 152245
Output multicast pkts = 14384822
Output broadcast pkts = 2
Output drop underrun = 0
Output drop abort = 0
Output drop other = 0
Output error other = 0
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide