How to: Download Cisco IOS running config to SCP server

Top  Previous  Next

Use the Device.CLI.Send commands activity to enter the following commands at the enable prompt.

 

Activity Option settings:

 

[X] List of commands to be entered on device:

 

 copy running-config scp://Destination username:Destination password@Destination HostIP/Destination filename

 %ctCR

 %ctCR

 %ctCR

 

 

[X] Enter commands in enable mode

 

[X] Save device output to file [Specify the log file name here]

 

[X] Overwrite existing capture file

 

[X] Answer yes to any confirmation prompts

 

[X] Stop on error

 

 

Example:

 

 copy running-config scp://Admin:Password@10.190.1.10/%ctDeviceName-Config.txt

 %ctCR

 %ctCR

 %ctCR

 

 

The device will normally respond with the prompts:

 

Address or name of remote host [10.190.1.10]?

 

Destination username [Admin]?

 

Destination filename [Device-Config.txt ]?

 

which by using the %crCR Meta Variable will tell CatTools to send a CR (Carriage Return) to answer each prompt

 

 

Note also the use of the meta variable:

 %ctDeviceName = Device Name

 

 

 

Also refer to Backing up device via SFTP/SCP