cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1507
Views
10
Helpful
4
Replies

Cisco 2600 Router has too many "!" exclamation points in the config, how do I get rid of them?

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

1 Accepted Solution

Accepted Solutions

kubn2
Level 1
Level 1

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 "!".

View solution in original post

4 Replies 4

Martin L
VIP
VIP

 

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 **

 

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

kubn2
Level 1
Level 1

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 "!".

I've accepted "show run | exclude !" as the solution.  Thanks!

Review Cisco Networking products for a $25 gift card