Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

How to save running-config to a text file

Hello,

I manage lot of router and switch my problem is before I do any changes to configuration file I want to save a copy of it

if I do sh run using putty it just displays one page worth of information and I have to do copy paste one page at a time

is there any easier method to copy paste entire running config to a text file ?

Thanks

12 REPLIES
Hall of Fame Super Silver

Re: How to save running-config to a text file

Hello Manish,

use

enable session> logging in putty using connection properties

then

term len 0

sh run

in this way all the file is placed without need to press for next page

then you stop logging and you have your file.

to have again pages type:

term len 25

putty saves an header with date and time at the beginning after that you have clean text file.

Hope to help

Giuseppe

New Member

How to save running-config to a text file

This worked very well

New Member

Thank you for the information

Thank you for the information, Giuseppe - it was precisely what I needed (5 years after you posted it :).

 

-Scott

New Member

thanks

thanks

New Member

Thank you Giuseppe Larosa !!

Thank you Giuseppe Larosa !! - by far the easiest and fastest solution I've seen so far.  No need to set up TFTP or copying and pasting all over the show.  You have saved me a lot of time today smiley

 

Super Bronze

Re: How to save running-config to a text file

Another option would be to send either the startup or running config to a TFTP, FTP or RCP server. The file will be text, although believe sequence of LFCR confuses Windows' Notepad but Wordpad renders it correctly.

New Member

Re: How to save running-config to a text file

Hi,

If you use secure crt

go to file then click on log session then save the file with .txt extension

thay way your config file will be saved in text format

hope that helps

 

New Member

Re: How to save running-config to a text file

Hello,

You can tray to use this commande :

Router# terminal length 0

New Member

Re: How to save running-config to a text file

Hello,

You can tray to use this commande :

Router# terminal length 0

Re: How to save running-config to a text file

You can also use the following command from command prompt:

telnet -f fileName.txt x.x.x.x(IP)

Now everything that you do during this telnet session will be recorded in fileName.txt.

Cisco Employee

Hello MKCHAURASIA,  If you

Hello MKCHAURASIA

 

If you are wondering how to copy your save running-config to a text file, my best suggestion would be to copy the outcome of the command line (via the CLI) and then open notepad and past the config there. Afterward, you can obviously save it to the desired folder!

 

Hope this helps!
 

Best regards,

Tish

New Member

Hi,I am looking for an

Hi,

I am looking for an equivalent command to "show running | file $fn" in XML on IOS XR routers.

The command or steps I am looking for will help me save a running config in xml format to a file

on the router.

 

thanks

Joseph

120831
Views
48
Helpful
12
Replies