cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Popup Hotspot Using ISR 1000 with WiFi/LTE for Teleworkers and Micro Branchesr
637
Views
0
Helpful
5
Replies
Highlighted
Beginner

Filtering "show interfaces description"

I've been trying to work on finishing tshoot before the 24th. I have a live lab that I use and I'm working on using regexp's. I would like to filter the "show interfaces description" command to only show interfaces that actually have descriptions. That is, to filter all the interfaces with no descriptions. I can't seem to find any combination that works. Does anyone have a solution they figured out to accomplish this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: Filtering "show interfaces description"

lab-PKI_client#show interfaces description                                                    

Interface                      Status         Protocol Description

Gi1                            up             up       WAN

Gi2                            up             up       DMZ

Gi3                            up             up       

Gi4                            up             up       

lab-PKI_client#show interfaces description | include ^[a-zA-Z0-9\/]+.+(up|down).+\1.+[A-Z]+

Gi1                            up             up       WAN

Gi2                            up             up       DMZ

lab-PKI_client#

Link to guide:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15_sy/fundamentals-15-sy-book/cf-cli-search.html#GUID-A26947FE-801A-4597-8FD2-57FDCDD1AADB

View solution in original post

5 REPLIES 5
Highlighted
Cisco Employee

Re: Filtering "show interfaces description"

lab-PKI_client#show interfaces description                                                    

Interface                      Status         Protocol Description

Gi1                            up             up       WAN

Gi2                            up             up       DMZ

Gi3                            up             up       

Gi4                            up             up       

lab-PKI_client#show interfaces description | include ^[a-zA-Z0-9\/]+.+(up|down).+\1.+[A-Z]+

Gi1                            up             up       WAN

Gi2                            up             up       DMZ

lab-PKI_client#

Link to guide:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15_sy/fundamentals-15-sy-book/cf-cli-search.html#GUID-A26947FE-801A-4597-8FD2-57FDCDD1AADB

View solution in original post

Highlighted
Beginner

Re: Filtering "show interfaces description"

Thank you sir

Highlighted
Rising star

Re: Filtering "show interfaces description"


i do not think u will need to know regexp for ccnp level exams; maybe for voice exams.
but, for sure regexp are helpful at TS but I would say tested more on ccie level
Highlighted
Rising star

Re: Filtering "show interfaces description"


CCNP TSHOOT exam is not based on real IOS; just a simulator with limited commands; and the goal is to find config mistake or problem on a device but not to fix it.

i do not think any command with regexp can be use but i could be wrong
Highlighted
Beginner

Re: Filtering "show interfaces description"

I understand that. I just try to take the position of, "study for the next exam." So I did a lot of watching/reading for CCIE level material for the CCNP just as I did CCNP level study for the CCNA

 

I missed tshoot though. Ran out of time and didn't answer the last ticket, ended up with a 835. It's too bad the tickets take like 20 seconds to load on the exam. I think with the time I spent waiting for the tickets to load, I would have had enough to finish the last one. I had isolated it to either and ACL issue or a port-security issue

CreatePlease to create content
Content for Community-Ad