Use %hostname% of the remote host in a script
Hello,
I'm currently working on a script to save the startup configuration on my switch to our local server.
I would like to save my log with this format after the copy:
where
If no, is there a way to create one?
Thanks for your help,
Best regards.
I'm currently working on a script to save the startup configuration on my switch to our local server.
I would like to save my log with this format after the copy:
get startup.cfg "SaveConf_"name of the switch"_%TIMESTAMP#yyyy-mm-dd%"
"name of the switch"
is a variable pickup automatically like %hostname%
for example.
%hostname%
doesn't work here so is there any preconfigured variable that does this job?
If no, is there a way to create one?
Thanks for your help,
Best regards.