cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
461
Views
0
Helpful
2
Replies

Filtering for ?

vancamt76
Level 1
Level 1

I am trying to filter the command "show ip bgp" to include only routes learned through redistribution so I have tried to filter based on routes that contain a path of ?. My question is: how do you filter for the question mark without it displaying a help command? Is there a wildcard that will ignore the ? as a help indicator and interpret it as text?

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

vancamt76 wrote:

I am trying to filter the command "show ip bgp" to include only routes learned through redistribution so I have tried to filter based on routes that contain a path of ?. My question is: how do you filter for the question mark without it displaying a help command? Is there a wildcard that will ignore the ? as a help indicator and interpret it as text?

It's a number of keystrokes ie. "sh ip bgp | include" followed by

1) a backslash (to make the ? literal text)

2) ctrl-v ie. the control key + the v key pressed at the same time

3) then the question mark

Jon

View solution in original post

2 Replies 2

vragotha
Level 3
Level 3

Hello,

       It may be possible with the regexp or quote-regexp options available with 'show ip bgp'

http://www.cisco.com/en/US/docs/ios/12_3/iproute/command/reference/ip2_s2g.html#wp1091981

VR

Jon Marshall
Hall of Fame
Hall of Fame

vancamt76 wrote:

I am trying to filter the command "show ip bgp" to include only routes learned through redistribution so I have tried to filter based on routes that contain a path of ?. My question is: how do you filter for the question mark without it displaying a help command? Is there a wildcard that will ignore the ? as a help indicator and interpret it as text?

It's a number of keystrokes ie. "sh ip bgp | include" followed by

1) a backslash (to make the ? literal text)

2) ctrl-v ie. the control key + the v key pressed at the same time

3) then the question mark

Jon

Review Cisco Networking products for a $25 gift card