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:
- Right-click the window title and choose “Change Settings…”;
- In the tree menu on the left, select “Logging” beneath “Session”;
- Select the “All session output” radio button and choose a suitable destination file;
- 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