05-08-2025 06:01 AM
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
05-08-2025 08:24 AM
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!
05-08-2025 09:01 AM
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.
05-09-2025 05:40 AM
Thanks. But I was just looking to avoid having unnecessary lines while browsing the config. Doesn't seem to be an option unfortunately
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide