10-24-2019 01:22 PM - edited 02-21-2020 09:37 AM
Hello,
I am trying to configure my ASA to use EEM and the "Backup" function to automatically backup to my SCP Server
I think my syntax is off somewhere because I am getting odd file names. I can successfully backup to the SCP Server but it names the files as 192.168.1.2-ASAFWL-01.10-24-2019 03-15-06 (or some other time stamp variation)
Here is what I have:
event manager applet ASA_SCP_BACKUP, hits 4, last 2019/10/24 14:19:55
last file none
event watchdog 30 secs, left 0 secs, hits 4, last 2019/10/24 14:19:55
action 0 cli command "Backup /noconfirm location scp://cisco:cisco@192.168.1.10//ASA_Backups/192.168.1.2-ASAFWL-01", hits 4, last 2019/10/24 14:19:55
Here is what I would like:
I would like to be able to use the Backup CLI command in EEM and have the .tar.gz file that it creates automatically uploaded to the SCP Server. What am I missing?
Solved! Go to Solution.
10-24-2019 01:50 PM
You need to backup locally with tar.gz file, then scp to remote site
below document help you to create one tar.gz file
command "$_info_routername-config_$_event_pub_sec" <<- this is for your time stamp and file name
10-24-2019 01:50 PM
You need to backup locally with tar.gz file, then scp to remote site
below document help you to create one tar.gz file
command "$_info_routername-config_$_event_pub_sec" <<- this is for your time stamp and file name
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