05-31-2011 07:59 AM
I want to use "cli var" command to setup a variable for the sh clock command, "cli var name time sh clock".
So I can run a script and use the variable to add the output of sh clock to "copy run tftp://10.*.*.*/Switch1A-$ time" so the sh clock would get added to the end of the file. I'm not a scripting person, so I might be talking rubbish.
Thanks
Solved! Go to Solution.
05-31-2011 11:58 AM
how about you use built-in timestamp variable, like this:
copy startup-config tftp://192.168.1.7/switchA1.$(TIMESTAMP)
05-31-2011 11:58 AM
how about you use built-in timestamp variable, like this:
copy startup-config tftp://192.168.1.7/switchA1.$(TIMESTAMP)
06-01-2011 12:38 AM
That did the trick.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide