11-04-2010 10:21 PM - edited 03-06-2019 01:54 PM
Hi all experts.
When i am copying startup-config, can i specify the format in which the name is selected ?
R1#cop star tf
Address or name of remote host []? 10.1.9.1
Destination filename [site-core-i-confg]?
Like in above case, can i specify something different, like IP of any specific interface to be included by default ?
I know the option of TCL/EEM, just wanted to know if there is any other approach ?
11-04-2010 10:23 PM
Actually i changed the hostname for security reason, but forgot to change it afterwards :-). So dont be confused
11-05-2010 12:36 AM
Hi Jonn,
Do you mean you want to change filename when it is copied to tftp server ? If so yes you can do that just specify
the name after ? mark.
Destination filename [startup-config]? New-config
If i have misunderstood your question please rephrase the query
Regards
Mahesh
11-05-2010 12:45 AM
Dear Mahesh,
sorry for the confusion. Basically, what i want is, when ever i issue the command copy start tftp, the name that it automatically choses is
[
I want it to choose something different like
[
Pls let me know, i think my question is still not clear. See i want this to happen whenever i issue
R1# copy startup tftp
...
Address or name of remote host []? 10.12.13.4
Destination filename [R1-10.1.18.1-confg]?
Is it possible ?
11-05-2010 01:20 AM
Hi Jonn
Can you try below
blab501#copy startup-config tftp:1.1.1.1
Address or name of remote host []? 10.237.87.196
Destination filename [1.1.1.1]?
where 1.1.1.1 is file name and 10.237.87.196 is tftp. I haven't tried it
Regards
Mahesh
11-05-2010 10:10 AM
Your question is probably resolved best by using the 'alias' command.
This allows you to enter something like "backitup" at cli and have the system performing a predefined write command to some tftp server.
It is in fact a way to learn your routers new commands.
Configure this as follows:
#conf t
alias exec backitup copy run tftp://1.1.1.1/R1.cfg
The details about the copy command:
http://www.cisco.com/en/US/partner/docs/ios/fundamentals/command/reference/cf_c1.html#wp1064741
regards,
Leo
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