How to save running-config to a text file

Unanswered Question
Jan 29th, 2009

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

I have this problem too.
1 vote
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (5 ratings)
Giuseppe Larosa Thu, 01/29/2009 - 11:41

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

petersonsl Tue, 04/08/2014 - 15:36

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

 

-Scott

JosephDoherty Thu, 01/29/2009 - 12:21

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.

ahmed.khalid@hp.com Sun, 02/01/2009 - 14:23

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

 

Mohamad Qayoom Fri, 02/13/2009 - 12:43

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.

Actions

Login or Register to take actions

This Discussion

Posted January 29, 2009 at 10:28 AM
Stats:
Replies:8 Avg. Rating:5
Views:34306 Votes:1
Shares:0
Tags: No tags.

Discussions Leaderboard