10-03-2013 06:17 AM
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
Solved! Go to Solution.