cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
22386
Views
20
Helpful
19
Replies

Automatic Backup Using EEM

Cisco-Spider
Level 1
Level 1

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

19 Replies 19

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.

Perfect. Thanks Joseph.

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.

 

 

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.

sally.robertson
Level 1
Level 1

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