12-28-2017 06:44 AM - edited 03-08-2019 01:14 PM
Hi guys,
Is there anyway I can check for all the commands related to a certain configuration on a switch/router? For example for "Policy Based Routing" configuration, is there a way for to list all PBR commands if there is a need to remove them from the device completely?
Thanks.
Solved! Go to Solution.
12-31-2017 08:00 AM
Hello,
you can use the | (pipe) command with keywords to filter and display parts of your configuration, e.g.:
R1#sh run | section route-map
route-map BGP_OUT permit 10
match ip address prefix-list BGP_PREFIX
set community no-export
You can also use 'grep' to filter output.
Router#conf t
Router(config)#shell processing full
Router(config)#exit
Router#terminal shell
This enables you to run show commands with grep.
Router#sh run | grep 'route-map'
The | pipe command allows for regular expressions as well...
01-08-2018 07:27 AM
12-31-2017 08:00 AM
Hello,
you can use the | (pipe) command with keywords to filter and display parts of your configuration, e.g.:
R1#sh run | section route-map
route-map BGP_OUT permit 10
match ip address prefix-list BGP_PREFIX
set community no-export
You can also use 'grep' to filter output.
Router#conf t
Router(config)#shell processing full
Router(config)#exit
Router#terminal shell
This enables you to run show commands with grep.
Router#sh run | grep 'route-map'
The | pipe command allows for regular expressions as well...
01-01-2018 10:07 PM
01-08-2018 07:27 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: