12-27-2011 01:24 AM
Dear All,
I want to use EEM for automatic backup of all my routers and switches on a TFTP server.
Please any 1 can help me ?
Regards,
Kaven
Solved! Go to Solution.
02-16-2015 10:14 AM
You can add _$_event_pub_sec to get a timestamp added to the filename.
The Address pattern allows the EEM applet to respond to the interactive prompts produced by the copy command.
02-17-2015 01:20 AM
Perfect. Thanks Joseph.
07-09-2018 05:44 AM
Dear Sir,
I have enabled EEM to collect dhcp logs by copy command to receiver .but when it forwarding logs to receiver server the file name got replaced the old file. So I want to keep all files in receiver server as per the date.
So kindly help me how could i do that. configuration file have attached.
02-23-2023 05:07 AM - edited 02-23-2023 05:08 AM
That worked great, but I did have to add "event manager session cli username user" because the command authorization was failing since I have AAA configured.
07-18-2023 11:50 AM
My EEM script is:
event manager applet BACKUP_CONFIG authorization bypass
event syslog pattern "%SYS-5-CONFIG_I"
action 0010 info type routername
action 0020 cli command "enable"
action 0030 cli command "term len 0"
action 0040 cli command "copy run bootflash:$_info_routername-config.txt"
action 0050 syslog priority informational msg "Configuration backed up!"
but it is not firing off when I save the config. What did I miss?
Thanks,
~Sal
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