cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

egrep alternative for "section" on ASR 9000

Mahomed Hussein
Level 1
Level 1

Hi

One of the commands that was very handy on the Catalyst was the "section" command. But this isn't available on the ASR9K. Apparently there is a way of doing this with egrep that someone showed me on a course, but I've forgotten and I can't get hold of the person anymore. It might help if I explain what I am trying to achieve.

We have route-policy being used in a neighbor-group. If I want to search which neighbor-group is using the policy, I'd would use something like:

show run | sec myroutepolicy

I'll post if I think of other examples.

At the very least, being able to find a few lines before or after the searched string would be great.

Thanks in advance

Who Me Too'd this topic