cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2650
Views
0
Helpful
1
Replies

ASA Backup Using EEM and SCP

TW80CJ5
Level 3
Level 3

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?

 

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

You need to backup locally with tar.gz file, then scp to remote site

 

below document help you to create one tar.gz file

 

https://www.cisco.com/c/en/us/td/docs/security/asa/asa93/configuration/general/asa-general-cli/admin-swconfig.html

 

command "$_info_routername-config_$_event_pub_sec"  <<- this is for your time stamp and file name 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

You need to backup locally with tar.gz file, then scp to remote site

 

below document help you to create one tar.gz file

 

https://www.cisco.com/c/en/us/td/docs/security/asa/asa93/configuration/general/asa-general-cli/admin-swconfig.html

 

command "$_info_routername-config_$_event_pub_sec"  <<- this is for your time stamp and file name 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card