too many comment characters

May 16, 2005 5 Replies

When I run sh running-config, the output shows too many comment chars, like



! ! ip domain name yourdomain.com ip ssh authentication-retries 4 ip ips po max-events 100 no ftp-server write-enable ! ! ! ! ! !



How can I get rid some of them ? Like there is only one or two lines of ! in between sections ?



Thanks,



DT



I don't think there's any way to control them. My guess is that it puts a comment line between each group of configuration items. But many of the groups have all the items set to the default, so there's nothing to display for that group. Unfortunately, IOS isn't smart enough to merge all the adjacent comment lines.

Not sure why it bothers you, but this gets rid of all of them:

sh run | exclude !

Regards,

-dan

Dan, This command (sh run | exclude ! ) is not there in my Router (series

1700). How can I check it out.

Thanks, Stuart

[...]

I have to scroll up and down too much my terminal emulator to read it.

Thanks. That's what I looked for.

DT

I tried on mines and it works on 1700 ( 12.3), 2610 ( 12.2 ) and 281 (

12.3 ).

You are not under config t or line , aren't you ?

DT

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required