If you need to backup the configuration of a network device, such as a Cisco router, without going through the hassle of actually connecting up the network interfaces, you can relatively easily do so with a serial cable and PuTTY
- 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
- 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;
- Issue the
show running-config
command; - The configuration will now be stored in your text file.