04-07-2017 04:55 AM - edited 03-05-2019 08:19 AM
Hello
How can i store the config with the name of the hostname? I would store with cron the config with the hostname which shuld be inserted by command
so
show run | redirect tftp://192.168.X.XX/ "Hostname" .txt
Thanks
04-07-2017 11:48 AM
Your question is confusing to me, what do you want to do?
The format of that command is correct, the general format is: tftp:[[//location]/directory]/filename
and example of configuration is:
kron policy-list Backup
cli show run | redirect tftp://X.X.X.X/hostname.cfg or .txt
exit
kron occurrence Backup in 3
policy-list Backup
You have to write the hostname in the filename of every device.
Regards,
04-10-2017 12:10 AM
Hello
This is what i alredy have.
So i will make a backup of the router by including the hostname in the filname.
I create a kron and the command will automatic insert the hostname in the filname.
maybe the command would be
show run | redirect tftp://192.168.1.X/$(hostname).txt
So you know what i will do? the $(hostname) will be the hostname from the router and will e stored in the filname.
I hope this is clear. ;)
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