02-14-2021 12:47 PM
Experts, my Cisco 2600 Router has too many "!" exclamation points in the config, how do I get rid of them? While logged into the router in "configure terminal" mode, I tried the command "no !" but got the response "% Invalid input detected at '^' marker" with the "^" being directly under the "!". Here's a snippet of my config showing all the unnecessary "!":
ip ips po max-events 100
ip ssh source-interface FastEthernet0/0
no ftp-server write-enable
voice-card 1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
description This is the loopback
ip address 1.1.1.1 255.255.255.255
Solved! Go to Solution.
02-14-2021 02:09 PM - edited 02-14-2021 02:10 PM
Hi,
You can't really remove them but if they bother you when you are using show run then you have 2 options:
1. Use piping to select only parts of the config that interests you
2. If you want whole show run then use command "show run | exclude !" and this will skip all lanes with "!".
02-14-2021 01:05 PM - edited 02-14-2021 01:11 PM
I don't think you can get rid of "!" exclamation points; those are sort of "place holders" or "reservation" for config lines that may come in the future. There are also "hidden" lines which are not shown by default but you could see with show run full or show run all commands. We appropriate Cisco has chosen to hide those defaults by default.
Regards, ML
**Please Rate All Helpful Responses **
02-14-2021 01:50 PM
Not sure if you can erase the config and add just below resolve the issue ?
ip ips po max-events 100 ip ssh source-interface FastEthernet0/0 no ftp-server write-enable voice-card 1 ! interface Loopback0 description This is the loopback ip address 1.1.1.1 255.255.255.255
02-14-2021 02:09 PM - edited 02-14-2021 02:10 PM
Hi,
You can't really remove them but if they bother you when you are using show run then you have 2 options:
1. Use piping to select only parts of the config that interests you
2. If you want whole show run then use command "show run | exclude !" and this will skip all lanes with "!".
02-14-2021 03:37 PM
I've accepted "show run | exclude !" as the solution. Thanks!
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