Here is a rather advanced expression for you that prints the interface names and then the counters for interfaces with drops. All other lines with no drops (last column is a single 0) will be hidden. The heading with "Dropped packets" is also shown for clarity.
Thsi works in EX4100-F at least. Older versions have slightly different headings so it is difficult to create an exact match expression that will comer all versions.
show interfaces "[xg]e*" extensive | match "Physical|Dropped packets| 0 +[0-9]+ +[0-9]+ +[1-9]"
To see that the expression actually does what it's supposed to, change the last [1-9] to [0-9], so even those lines that end with a single 0 are shown:
show interfaces "[xg]e*" extensive | match "Physical|Dropped packets| 0 +[0-9]+ +[0-9]+ +[0-9]"
Remove the heading to compress things:
show interfaces "[xg]e*" extensive | match "Physical| 0 +[0-9]+ +[0-9]+ +[1-9]"
Look at all the queues, bit just best effort (0):
show interfaces "[xg]e*" extensive | match "Physical| [0-9] +[0-9]+ +[0-9]+ +[1-9]"
If the above looks weird, read up on regex ,regular expressions and you'll understand (some day).
You can also look in this section of the output from show interfaces extensive:
Queue counters: Queued packets Transmitted packets Dropped packets
0 703760236 703760236 0
1 0 0 0
2 0 0 0
3 10682623 10682623 0
8 57193202 48991457 8201745
9 0 0 0
10 0 0 0
11 0 0 0
Here, queue 8 (multicast) has taken a beating due to a simulated loop. For normal tail drops, you will see drops in best effort, queue 0, which is what I focus on in the expressions above.
Original Message:
Sent: 02-06-2025 09:36
From: JIM VADEN
Subject: Packet Drops - output error
I'm still relatively new to Juniper and am always looking to learn more. In trying to find packet drops, is this a good command to do so?
show interfaces extensive | match drops
Output of this command looks like this:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Carrier transitions: 3, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Carrier transitions: 3, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0
Carrier transitions: 3, Errors: 0, Drops: 3574, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
From what I'm seeing, the sixth line with the 3574 drops would be an issue, correct? My problem, is great I found something, but a) is it really anything and b) now that I have that discovered how in the world do I narrow it down to WHICH interface that is? Is it the "third" configured interface when I view show interfaces terse?
Thanks everyone!
------------------------------
JIM VADEN
Original Message:
Sent: 07-03-2023 07:29
From: T_J
Subject: Packet Drops - output error
Hi all,
After receiving user complaints, I took it upon myself to investigate the issue. Upon inspection of my entire network, including EX2300 (two or three units in a cluster) and EX3400 (two units in a cluster), I discovered packet drops occurring on the egress of the users' 1Gb ports. I promptly opened a ticket with Juniper for assistance, but unfortunately, they were unable to provide a solution. They did acknowledge the presence of microbursts, but beyond that, their support was limited.
In an attempt to mitigate the issue, I configured the following:
set chassis fpc 0 pic 0 q-pic-large-bufferset chassis fpc 1 pic 0 q-pic-large-buffer
Regrettably, this configuration adjustment did not yield the desired results.
If anyone has any further insights or suggestions on how to address this problem of packet drops on the egress ports, I would greatly appreciate your assistance.
Thanks
------------------------------
TOMAS
------------------------------