Sure, everyone knows that it is copy running-config startup-config in order to save your hard-earned configuration to the Non-volatile RAM (NVRAM) inside the device. But what about saving a copy of the configuration on your local PC? Well, this is easy thanks to a couple of tips and tricks, and the wonder of Notepad!

Here is how you save the configuration locally using Windows HyperTerminal. But realize that whatever terminal program you use, there is going to be a similar option.

Step 1: Login to the device with the configuration you want to save and ensure you are in Privileged mode (the # prompt).

Step 2: Type the command terminal length 0. This command will eliminate the MORE key press feature and will eliminate the need to clean up your captured configuration later.

Step 3: Click the Transfer menu option and choose Capture Text. Choose a location and name for the text file you are about to create and click Start.

Step 4: Back at the router or switch prompt type show run and press Enter. You will see the configuration file display on screen and return you to the prompt. That configuration was also just written to your text file! Cool!

Step 5: Go back to the Transfer menu and choose Capture Text then Stop. Notice that you could also Pause the capture as you navigate to another device and capture another configuration in the file.

Step 6: You can now go into your file and trim out the initial text about the show run and Building Configuration. Replace that text with enable, then configure terminal, and now your configuration is ready to paste into the User mode of a device!

Have fun with your studies and enjoy building a library of configurations in various stages!

You can leave a response, or trackback from your own site.

12 Responses to “CCENT: Saving your Router or Switch Configurations to your PC”

  1. Peter says:

    Another option is to use a TFTP server (I use tftpd32) and use the “copy run tftp” command.

  2. hamid says:

    when you set the terminal length to 0 ,how do u revert it back to the default.

  3. Salman says:

    Thanks for the tip, its very usefull.


  4. Burhan says:

    i have one stupid but still valid to write this key in router (?) Yesterday i was doing some BGP stuff and i need to write this regexp but i was unable to do that because when ever i write this key word (?) it will start showing me other options.

  5. Malick Ndiaye says:


    good post as usual. Even though I am preparing for my CCIE this info comes in very handy. My question what’s the default terminal length on Cisco devices?

    Best regards

  6. Hello all – terminal length 24 is the default on routers and switches.

  7. Burhan – in the future, please consider posting such a question on our forum –

    Anyways, the answer is to precede the question mark with Ctrl-V sequence to prevent it from being interpreted as a help command.

  8. Andrew says:

    i use a program called terraterm instead of hyperterminal. just need to set the line sitory to 1000 or so and do a show run, and you can copy and paste easily from the display without the –more– lines messing things up.

    i find terraterm is much better than hyperterminal. its free, google for terra term pro.

  9. Tomasz says:

    hamid says:
    December 19th, 2008 at 11:14 pm

    when you set the terminal length to 0 ,how do u revert it back to the default.

    #term no len

  10. You can set it back to default with the command terminal length 24

  11. ercan says:

    thanks,its very usefull

  12. sar lulu says:



Leave a Reply


CCIE Bloggers