09-21-2009 06:51 AM
I have been using the EEM to backup a Cisco IOS CA routers critical files to an ftp server. However, I would like to also backup the .cnm files as well but as the numbers of the change constantly due to certificate renewal I can't name them all. Is it possible to use a wildcard (*.cnm) and loop the routine until it is done?
Solved! Go to Solution.
09-24-2009 10:17 AM
OK, I'm not sure where I am adding the "maxrun 600" to the script.
The first line is:
if [catch {cli_open} result] {
error $result $errorInfo
} else {
array set cli1 $result
}
09-24-2009 10:20 AM
No, the first line is:
::cisco::eem::event_register_timer cron cron_entry "0 3 * * 0-6"
You add maxrun 600 to the end of that line.
09-24-2009 10:23 AM
Whoops missed that up top. OK, I will do that. Thank you again.
09-25-2009 05:46 AM
Just wanted to let you know that the backup still failed to finish completely however it progressed further down the list of files. So increasing the maxrun timer had a positive effect. Is this timer measured in milliseconds? Would it be OK to increase it further without impacting the router adversely?
09-25-2009 07:41 AM
The timer is in seconds. Yes, you should continue to increase it until it can copy all of the files.
09-30-2009 06:26 AM
Just to let you know the issue was with the FTP server. Once we had that squared away the copy went with no problems. The only wierd thing is it appears to run twice. It does the FTP copies and then
just reruns itself one more time. I can live with that but it is odd.
09-30-2009 06:53 AM
That is a known bug, CSCsz12460. It is not yet fixed, and there is no workaround other than converting the cron timer to a watchdog timer.
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