Create Date: Jul 19 2012 9:20AM
Hi guys,
how can i get the current date from CLI ou upm profile?
i saw on concepts guide this script, but dont work for me:
set var CLI.OUT " "
show switch
set var date $TCL(lrange ${CLI.OUT} 27 29)
set var year $TCL(lrange ${CLI.OUT} 31 31)
set var date $TCL(linsert $date 3 $year)
set var time $TCL(lrange ${CLI.OUT} 30 30)
show var date
show var time
"set var date $TCL(lrange ${CLI.OUT} 27 29)
^
%% Invalid input detected at '^' marker."
Explain:
I wanna make an auto backup, connecting to a remote machine throw tftp, i can do it, but i want my .cfg file named with the current date.
by the way i have sntp client configured.
Tks,
Luiz Maia
(from Luiz Claudio_Maia)