How to download Cisco IOS running config to SCP server
This topic applies to KCT 3.12.7 and earlier. If you are on KCT NG 2026.2 or later, see NG 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 Kiwi CatTools.
- 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]?
By using the %crCR Meta Variable, the device tells CatTools to send a CR (Carriage Return) response to each prompt. Note the use of the device name meta variable: %ctDeviceName
For more information, refer to Backing up device via SFTP/SCP.