08-31-2018 12:12 PM
I try to configure the Embedded Event Manager (EEM) in my ASA5508 to perform an automatic task for me. The task is to automatically output the "show running-config" into a new file. I want to use this as auto config backup for my device.
The problem is the task does not run on its own. And when I run it manually, it gives me the error message of Applet not configured with 'event none'.
This is the configuration of the task in EEM.
Could someone please tell me what the problem is?
Many thanks.
08-31-2018 01:08 PM
try
action 0 cli command "copy /noconfirm running-config Destination "
output none
09-10-2018 12:45 PM
@balaji.bandi, could you give em an example of backup the running config onto an FTP storage location?
09-10-2018 01:02 PM - edited 09-10-2018 01:03 PM
event manager applet syslog_redirect event timer cron cron-entry "0 * * * *" maxrun 86400 action 0.00 cli command "term len 0" action 0.01 set i "0" action 0.02 while $i lt 24 action 0.03 cli command "show run | redirect ftp://balajibandi.com/$i:00_hours.cfg" action 0.04 increment i 1 action 0.05 wait 3600 action 0.06 end
try and let me know.
09-10-2018 01:15 PM - edited 09-10-2018 02:06 PM
I figured out how to integrate the username and password into the FTP.
This is my EEM config and it's running fine.
event manager applet ConfigUpload description This task will backup the running configuration event timer watchdog time 180 action 1 cli command "copy /noconfirm running-config ftp://USERNAME:PASSWORD@MYFTP.COM/array1/ASA5508/ASA/" output none
How can I append a date and time onto file name?
09-11-2018 12:18 AM
You can add _$_event_pub_sec to get a timestamp added to the filename.
09-14-2018 07:56 AM
Adding the _$_event_pub_sec does not seem to work.
The output file show the exact same name as I input.
Here is the action i have.
copy /noconfirm running-config ftp://USERNAME:PASSWORD@SERVER/array1/ASA5508/ASA/running_$_event_pub_sec
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: