cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
504
Views
0
Helpful
5
Replies

command output

htaljaard
Level 1
Level 1

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

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

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

Hi Jon

Great stuff!

Works like a charm :)

Thanks for the help.

Henk

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

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

I agree with Jon, this will not work using the "&" expression.

-amit singh

Review Cisco Networking products for a $25 gift card