cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2049
Views
15
Helpful
3
Replies

ASA 5545x Backup using EEM

TW80CJ5
Participant
Participant

Hello Everyone,

 

I am trying to configure EEM on an ASA 5545 to run the backup command daily to an SCP Server

 

event manager applet SCPTEST
last file none
event watchdog 90 secs, left 10 secs, hits 3, last 2019/09/24 15:39:11
action 0 cli command "backup /noconfirm location scp://ciscoscp:password@1.1.1.2"

 

I have removed "location"

I have used "path"

I have tried using neither "location" or "path"

 

I have verified local firewall on scp server isnt the problem. I feel like its in my extremely simple command...

 

Any ideas would be appreciated.

1 Accepted Solution

Accepted Solutions

Can you provide the error and also check that are you able to run the command directly without EEM.

backup /noconfirm location scp://ciscoscp:password@1.1.1.2/backup

First check that the SCP copy is working fine with the server.

copy run scp://username:password@1.2.3.1/run.txt

Than move forward with the /noconfirm and granually add the command to the EEM. If you are saving file to particular location use double slash. Below is the output.

copy run scp://user:password@192.168.1.1//root/Desktop/run.txt

Source filename [running-config]?

Address or name of remote host [192.168.1.1]?

Destination username [root]?

Destination filename [/root/Desktop/run.txt]?
Cryptochecksum: 4ab503e3 46c762b9 fa14368e 8cc275ca
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
122375 bytes copied in 1.410 secs (122375 bytes/sec)
ciscoasa#


HTH
### RATE ALL HELPFUL RESPONSES ###

View solution in original post

3 Replies 3

bhargavdesai
Beginner
Beginner
You can follow the link, It is for local backup but you can modify it for remote backup.

https://community.cisco.com/t5/firewalls/asa-backup-using-cli/m-p/3927658

HTH
### RATE ALL HELPFUL RESPONSES ###

Yes, I posted that original question. Of course changes to the requirements have been made.

 

I have tried to manipulate those commands to run the "Backup" command daily to an SCP server...I cant get it to work. I feel like its something simple.

Can you provide the error and also check that are you able to run the command directly without EEM.

backup /noconfirm location scp://ciscoscp:password@1.1.1.2/backup

First check that the SCP copy is working fine with the server.

copy run scp://username:password@1.2.3.1/run.txt

Than move forward with the /noconfirm and granually add the command to the EEM. If you are saving file to particular location use double slash. Below is the output.

copy run scp://user:password@192.168.1.1//root/Desktop/run.txt

Source filename [running-config]?

Address or name of remote host [192.168.1.1]?

Destination username [root]?

Destination filename [/root/Desktop/run.txt]?
Cryptochecksum: 4ab503e3 46c762b9 fa14368e 8cc275ca
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
122375 bytes copied in 1.410 secs (122375 bytes/sec)
ciscoasa#


HTH
### RATE ALL HELPFUL RESPONSES ###
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:

Recognize Your Peers