07-08-2019 01:43 AM
Hi,
We are using kron with TFTP to send running config to the server, now we want to use SCP to send same to SCP server, need configuration guidance
Regards
07-08-2019 02:03 AM
Hi there,
Replace the cli line in your kron script with the TFTP command with the following:
cli copy run scp:<username>:<password>@<server_ip>/<device_name>_running.cfg
...update the <variable> values as required.
cheers,
Seb.
07-08-2019 02:29 AM
Hello,
I am not sure if kron works with interactive commands, if not, use the script below, or the EEM script at the bottom. The EEM script would run every day at midnight in the example, the kron policy obviously every Sunday at 15:00...
kron policy-list SaveRunningConfig
cli show running-config | redirect scp://username@ipaddress/folder/device_name.cfg
kron occurrence SaveRunSched at 15:00 Sun recurring
policy-list SaveRunningConfig
event manager applet SaveRunConfig
event timer cron con-entry "0 0 * * *" maxrun 9999999
action 1.0 cli command "enable"
action 2.0 cli command "copy running-config scp://username@ipaddress/folder/device_name.cfg"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide