01-25-2016 03:49 PM - edited 03-05-2019 03:12 AM
I am practicing my show commands using regular expressions and need some help. I have the below expression working, but want to filter it further so it only shows the total out drops with the corresponding interface. Similar to interface G1/0/7. Can anyone help a brother out :-)
sho inter | i line protocol|Total output drops:_[1-9]+
GigabitEthernet0/0 is up, line protocol is up
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1
GigabitEthernet1/0/1 is down, line protocol is down (notconnect)
GigabitEthernet1/0/2 is up, line protocol is up (connected)
GigabitEthernet1/0/3 is up, line protocol is up (connected)
GigabitEthernet1/0/4 is up, line protocol is up (connected)
GigabitEthernet1/0/5 is up, line protocol is up (connected)
GigabitEthernet1/0/6 is up, line protocol is up (connected)
GigabitEthernet1/0/7 is up, line protocol is up (connected)
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 4031350
GigabitEthernet1/0/8 is up, line protocol is up (connected)
01-25-2016 06:08 PM
just try the following command:-
show interfaces | in line|drops
HTH
Regards
Inayath
(**Please do not forget to rate if this is helpfull**)
01-26-2016 04:37 AM
InayathUlla this does work, but shows all interfaces. For a switch stack with several members I want to list only those interfaces with drops.
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