How To – Capture Cisco config with PuTTY

I was trying to backup the configuration from some Cisco devices without going to the hassle of actually connecting up the network interfaces. With just Putty and a serial connection here’s how I went about it.

Issue the “terminal length” command so that the output from commands isn’t paged. Without this we’d have to prune out the “–more–” from the terminal output.

router# terminal length 0

Next, configure Putty to log session output:

  1. Right-click the window title and choose “Change Settings…”;
  2. In the tree menu on the left, select “Logging” beneath “Session”;
  3. Select the “All session output” radio button and choose a suitable destination file;
  4. Finally, click “Apply” to dismiss the “PuTTY Reconfiguration” window.

Now issue a “show running-config” command and the configuration will be sent to your log file.

router# sh run

Published by

Dave Hope

Dave is a Principal Software Analyst for a UK based retirement developer, in his spare time he enjoys digital photography and rock climbing.

Leave a Reply

Your email address will not be published. Required fields are marked *