08-02-2010 01:13 PM - edited 03-06-2019 12:16 PM
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?
Solved! Go to Solution.
08-03-2010 05:06 AM
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
08-02-2010 05:48 PM
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
08-03-2010 05:06 AM
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
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