Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

command output

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
Hall of Fame Super Blue

Re: command output

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

Community Member

Re: command output

Hi Jon

Great stuff!

Works like a charm :)

Thanks for the help.

Henk

Community Member

Re: command output

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

Hall of Fame Super Blue

Re: command output

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

Cisco Employee

Re: command output

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

-amit singh

140
Views
0
Helpful
5
Replies
CreatePlease to create content