Export to File - Filename Variable
Posted: Tue Nov 26, 2013 11:51 pm
I'm trying to create a script to create a n export of the config and save it with a filename with the date and time in it. I can't get it to work if the filename has the variable $filename in it. If I make it say file=test235 it creates the file with the name test235 just fine. Any suggestions? I've tried the variable in "" and in [] as well.
Code: Select all
:local hostname "walker";
:local time [/system clock get time];
:local date [/system clock get date];
:local filename "$hostname-$time-$date";
export compact file=$filename
:log info "Current Time:$time"