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.
: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"
I want to create file name if a format with some letter and some numbers,like ABC001,ABC002,…
I need scripts that can change file name everyone runs to avoid replace and delete previous one.
thanks