cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1356
Views
0
Helpful
3
Replies

EEM applet with timer

EugeneL
Level 1
Level 1

I would like to have eem applet to run say hourly  and copy file ( something like below ),

I believe i may have an issue after action 1.0  as it results in the next line

as it would confirm destination file name and i would assume expect the enter possibly twice to verify the name and then overwrite the file

event manager applet TEST
 event timer cron cron-entry "@hourly"
 action 0.0 cli command "enable"
 action 1.0 cli command "copy flash:dhcp.db stby-flash:dhcp.db"

2 Accepted Solutions

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

Probably the easiest thing to do is:

action 0.5 cli command "delete /force stby-flash:dhcp.db"

View solution in original post

If you pre-delete the destination file, you will not have this problem.  However, this will work to interact with the prompts:

action 1.0 cli command "copy flash:dhcp.db stby-flash:dhcp.db" pattern "dhcp.db"

action 2.0 cli command "dhcp.db"

View solution in original post

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

Probably the easiest thing to do is:

action 0.5 cli command "delete /force stby-flash:dhcp.db"

Thanks Joe,

How do i get by the confirmation prompt for copy

copy flash:dhcp.db stby-flash:dhcp.db
Destination filename [dhcp.db]?
Copy in progress...C
7181 bytes copied in 0.120 secs (59842 bytes/sec)

I don't believe

 action 1.0 cli command "copy flash:dhcp.db stby-flash:dhcp.db" pattern "dhcp.db" will work

If you pre-delete the destination file, you will not have this problem.  However, this will work to interact with the prompts:

action 1.0 cli command "copy flash:dhcp.db stby-flash:dhcp.db" pattern "dhcp.db"

action 2.0 cli command "dhcp.db"

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: