How to download Cisco IOS running config to SCP server
This topic applies to KCT NG 2026.2 and later. If you are on KCT 3.12.7 or earlier, see legacy topic.
This example demonstrates how to use the Device.CLI.Send commands activity to download the current running configuration of a Cisco IOS device to a SCP server.
- Open KCT NG.
- In the Activities panel, click Add.
- Click the Activity tab.
- Select Type
Device.CLI.Send commands - Enter a name and description, for example "Download Cisco IOS config to SCP".
- Select Type
- Click the Options tab.
- Select List of commands to be entered on device and enter the following code:
copy running-config scp://Destination username:Destination
password@Destination HostIP/Destination filename
%ctCR
%ctCR
%ctCR - Select Enter commands in enable mode.
- Select Save device output to file. Specify the log file name.
- Select Overwrite existing capture file.
- Select Answer yes to any confirmation prompts.
- Select Stop on error.
Example
After the activity runs the example script above against your device
copy running-config scp://Admin:Password@10.190.1.10/%ctDeviceName-Config.txt
%ctCR
%ctCR
%ctCR
the device then responds with the prompts:
Address or name of remote host [10.190.1.10]?
Destination username [Admin]?
Destination filename [Device-Config.txt]?