How to upload Cisco IOS config from TFTP to device
This example demonstrates how to upload an IOS to a device using the Device.CLI.Send commands activity.
- 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 "Upload Cisco IOS config".
- Select Type
- Click the Options tab.
- Select List of commands to be entered on device and enter the following code:
copy tftp running
192.168.1.200
%ctGroupName\%ctDeviceName-Config.txt (Filename to store config to on server)
%ctCR (Required to start device TFTP)%ctGroupName\%ctDeviceName-Config.txt
: the filename to store config to on server.Note the use of a backward slash in the filename to specify a subfolder within the TFTP Upload folder.
%ctGroupName
: device group name%ctDeviceName
: device name
%ctCR
: carriage return. Required to start the device TFTP. The%ctCR
variable to send a<CR>
to the device to activate the TFTP session.
- 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
.
The Device.TFTP.Upload Config activity could also be used to upload an IOS to a device.