« The Internet Today...and to come... | Main | Save the Pain: Hung Telnet/SSH Sessions »

October 16, 2008

Handy Tip from the Cisco Wiki

Direct from the Cisco Wiki, a handy tip which allows you to show the complete configuration of Cisco devices without the breaks or pauses:

1. Type term len 0 in privileged mode to set your terminal to display without any breaks.
2. Type show run or show start to show the applicable config. The config will display without any breaks or pauses.

To display the config without lengthy certificate data, use show run brief.

This is useful for capturing the complete config for documentation purposes, especially if you do not have access via TFTP or the like.

Posted by JC at October 16, 2008 4:24 PM

Comments

Awesome. This is great if you are a full screen terminal guy like myself.

Posted by: Javon Rector at October 16, 2008 6:38 PM

thx.. i was wondering how WinAgents RouterTweak Do this :)

Posted by: aespe at October 16, 2008 8:50 PM

Great tip, keep the tips coming oh Cisco Guru . Your tips are blessings to your humble followers .

:})

Posted by: Suresh at October 17, 2008 3:57 AM

This is especially useful for *nix users:

telnet/ssh router | tee config.txt

once logged into the router, issue the term len 0 and show config, then logout and voila! You have the config captured to a text file with the "tee" command.

Posted by: Dave West at October 17, 2008 7:41 AM

If I want to capture full config I use
sh run | redirect tftp://host/config.txt
or
sh run | redirect ftp://user:passwd@host/config.txt

I don't really see any sense of making my terminal length unlimited. What have sense for me is adjusting it to my screen size like that:

Router#terminal length 40
Router#terminal width 120

This is good for one session only. If you want those settings to be permanent you need to do this:
Router(config)#line con 0
Router(config-line)#length 40
Router(config-line)#width 120
Router(config)#line vty 0 4
Router(config-line)#length 40
Router(config-line)#width 120

Posted by: wojtek at October 21, 2008 11:11 AM

Post a comment




Remember Me?

(you may use HTML tags for style)