TechKnowSurge
Cisco CCNA 4.8 Cisco CCST Networking 5.4 Cisco CCST Networking 5.5 Cisco CCNA 2.8
VideoNetworkFree

DEMO: Capturing Configs

Capturing and storing a copy of a router's running configuration provides a backup for recovery, auditing, or replication to another device. This process uses PuTTY's session logging feature to export the configuration output to a local file.

Complete this video to capture a CTF flag worth 1 point.

About this video

Maintaining a copy of a router's running configuration is an essential network administration practice, providing a reliable reference for recovery scenarios, configuration audits, and device replication. While saving a configuration ensures a device restores its settings after a reboot, exporting a copy to an external file serves a different purpose — it creates a portable, dated record that exists independently of the device itself. Organizing these files with a consistent naming convention, including a year-first date format, makes version management straightforward and keeps configuration archives easy to sort and reference over time. PuTTY's session logging functionality offers a direct method for capturing this output through an active console connection. By enabling printable output logging under the Change Settings menu and directing the log file to a designated local folder before issuing the show run command, everything displayed in the terminal is written to disk automatically. Once the output is captured, logging can be disabled and the resulting file opened for review. Because the terminal paginates long output, the raw file may contain pagination markers that should be removed using a find-and-replace operation, producing a clean, accurate representation of the device's running configuration that can be stored, shared, or used as a restore reference.

What you'll learn

What's covered

Capturing Config Copies

Aligned to

Cisco CCNA
4.8 Configure network devices for remote access using SSH
2.8 Describe network device management access
Cisco CCST Networking
5.4 Differentiate between different ways to access and collect data about network devices
5.5 Run basic show commands on a Cisco network device

Key terms

Secure Shell
SSH
A cryptographic network protocol that provides secure remote login and command execution over an unsecured network.
Running Configuration
The active configuration file stored in RAM that reflects all current settings on a Cisco device; changes are lost on restart if not saved.
Session Logging
A PuTTY feature that records terminal session output to a local file, used to capture data such as device configurations.
Configuration Management
The process of tracking and controlling changes to hardware, software, and documentation throughout a system's lifecycle.

Topics

Cisco Ios Network Configuration Putty Session Logging Configuration Backup Networking

Transcript

Why capture a copy of the configuration

We've in the past already learned how to save the configs so that way, when the device is restarted, it will come up with the running config once again. However, in this case right here, what we're saying is, let's say we want to store a copy of the configuration just in case something goes wrong, or perhaps we want to copy the configuration to another device. There's multiple reasons why we would want the actual configuration file.

Setting up logging in PuTTY

One of the easiest ways to do that is right through your console cable, or your console port. What we're going to do inside PuTTY is click on the icon in the upper left hand corner and say change settings. Then we're going to click on logging, and we're going to click printable output. What this will do then is, whenever we type something in, we will actually get a log of this.

I'm going to put it onto the desktop, so I'll browse to the desktop here. In fact, I'm going to make a folder, and we're going to just call this folder "configs", and we're going to put all of our configs in there. I'm going to open that up, and we'll call this — we'll call it "router config". Usually what I like to do with these also is to put a date, so I have a general date of when it is. I always put the year first, and then the month, then the day, so that way it's easily sortable. Then I will click on save right there, then I click apply, and now anything that I output will go into that file. That can be really handy when you're keeping track of what it is that you've done, what it is that you're accomplishing, so that's a good way to track that.

Capturing the running config

In this case right here, I just want to save the config, so I'm going to do "show run" right here, hit enter, and then go through here, and it's capturing all that data.

Once I'm done, I can go back into change settings and turn that back off, so I'm going to do "none", hit apply. And then if I go into the configs, there it is right there.

Cleaning up the file

So then I can open this up, and I'm going to choose Notepad to open this up, and there it is — this is a copy of the configuration. Now, you will notice that it has these "more" statements in here, and I don't want those "more" statements. That is from when you have to hit the space bar to continue on. So I'm going to copy this and I'm going to do a replace, and I want to replace that with nothing. So, find next — yep, these are what I want — I'll just replace all, and there we have it. Now this is a fairly clean version of the show running config, so you can go through here and see all the configurations.

And now I have saved this document — in fact, actually, I've made a couple of changes, I guess — so now I have saved it and closed it out, and now I have a copy.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →