04-12-2016 01:14 PM
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"
Solved! Go to Solution.
04-13-2016 07:33 AM
Probably the easiest thing to do is:
action 0.5 cli command "delete /force stby-flash:dhcp.db"
04-13-2016 07:53 AM
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"
04-13-2016 07:33 AM
Probably the easiest thing to do is:
action 0.5 cli command "delete /force stby-flash:dhcp.db"
04-13-2016 07:44 AM
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
04-13-2016 07:53 AM
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"
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