cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
623
Views
0
Helpful
2
Replies

Config Filename

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

2 Replies 2

Diana Karolina Rojas
Cisco Employee
Cisco Employee

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,

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

Review Cisco Networking for a $25 gift card