cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
145
Views
2
Helpful
3
Replies

Is possible to hide configuration in CLI? ASR 9900

Hej
We have a ASR9900 and was wondering if it is possible to hide some of the configuration on CLI to keep the Cli clean?

For example if I have a Prefix-list with 1000 entries I would just like to see the name of the prefix list and not all the Prefixes in the Prefix-list.

In Juniper it could be done by using "apply-flags omit" and it would keep the config clean. I hope there is an equivelant in XR as well

3 Replies 3

Jens Albrecht
Level 1
Level 1

Never heard of such option.

The Cisco way of limiting the output of various commands is the use of grep with regular expressions.

A simple example for just matching a string is "show run | include prefix-list" that displays which prefix lists exist and where they are used. For more complex matches you can use regular expressions instead of just a string making this output filtering a powerful tool.

HTH!

M02@rt37
VIP
VIP

Hello @oscardenizjensen 

there is no native equivalent to Juniper's feature that allows hiding specific config elements.

Try to use | include or | section or | begin to focus on specific part of a large configuration.

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Thanks. But I was just looking to avoid having unnecessary lines while browsing the config. Doesn't seem to be an option unfortunately