07-04-2007 02:11 AM - edited 03-05-2019 05:07 PM
Good day
I would like to know if it is possible to add more output requirements when doing i.e. a show run command - "show run | incl ip route". for example - show run | incl aaa <and> ip route.
Is this possible?
Thanks
07-04-2007 02:17 AM
Hi
Assuming you are trying to view all entries in the running config showing aaa lines and any ip routes
sh run | include aaa|ip route
HTH
Jon
07-04-2007 02:31 AM
Hi Jon
Great stuff!
Works like a charm :)
Thanks for the help.
Henk
07-04-2007 06:24 AM
HI Jon
Another question. Is it possible to do a search or show to display lines with two options?
i.e. show routes to a specific next hop?
sh run | incl ip route <&> 10.1.1.1 ?
Thanks
Henk
07-04-2007 06:42 AM
Henk
Not as far as i know although someone else may be able to add to this.
The problem is Cisco's regular expression list doesn't have a "&&" expression which is what you are looking for.
Jon
07-04-2007 06:51 AM
I agree with Jon, this will not work using the "&" expression.
-amit singh
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