Hello,
I am trying to use EEM to store running-config into flash of router
every time someone changes config
The CATCH is, I want the filename of back up to be dynamic.. based on
"TimestampHostname.Running.cfg"
The backup of running config gets stored but filename is WRONG...!
event manager applet SAVE_CONFIG
event syslog pattern "%SYS-5-CONFIG.*"
action 1.0 cli command "enable"
ACTION 1.1 cli command "show clock"
action 2.0 cli command "show run | redirect flash://$_cli_result.txt"
action 3.0 syslog msg "configuration has been changed"
I could only get the foll file stored at flash of router:-
*Mar 29 19:19:14.393: %PARSER-5-CFGLOG_LOGGEDCMD: User:unknown user
logged command:!exec: enable
*Mar 29 19:19:15.585: %HA_EM-6-LOG: SAVE: configuration has been changed
Router#
Router#dir flash:
Directory of flash:/
11 -rw- 1292 Mar 29 2012 19:19:14 +00:00 _*redirect.out
*_
64012288 bytes total (4603904 bytes free)
Regards
Vijaya
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit
www.ipexpert.com
Are you a CCNP or CCIE and looking for a job? Check out
www.PlatinumPlacement.com
http://onlinestudylist.com/mailman/listinfo/ccie_rs