Hi All,
For an automated backup of a running config I try to use EEM. But cant figure out how to add the current date and time to the filename.
event manager environment mybackuploc tftp://192.168.200.11/ event manager environment myfilename cr-u1-cfgbkp event manager environment myfilenameext .txt event manager environment dash - event manager applet bkp_when_changed trap event cli pattern "wr" sync no skip no action 1.0 cli command "enable" action 2.0 cli command "config t" action 3.0 cli command "file prompt quiet" action 4.0 cli command "end" action 5.0 cli command "copy running $mybackuploc$myfilename$myfilenameext" action 6.0 cli command "config t" action 7.0 cli command "no file prompt quiet" action 8.0 cli command "end"
Is there a way to read the current time and use it as a env-variable? somethink like: event manager environment currdate $$$date$$$ event manager environment currtime $$$time$$$
so, that the $mybackuploc$myfilename$dash$currdate$dash$currtime$myfilenameext
creates a file like cr-u1-cfgbkp-02-11-2010-21.37.txt on the tftp-srvr?
Any help would be very much appreciated.
stephan