cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
788
Views
4
Helpful
2
Replies

Regular Expressions Show Command Help

bret
Level 3
Level 3

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)

2 Replies 2

InayathUlla Sharieff
Cisco Employee
Cisco Employee

just try the following command:-

show interfaces | in line|drops

HTH

Regards

Inayath

(**Please do not forget to rate if this is helpfull**)

InayathUlla this does work, but shows all interfaces. For a switch stack with several members I want to list only those interfaces with drops.  

Review Cisco Networking products for a $25 gift card