cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
763
Views
0
Helpful
5
Replies

Copying startup-config

Jonn cos
Level 4
Level 4

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 ?

5 Replies 5

Jonn cos
Level 4
Level 4

Actually i changed the hostname for security reason, but forgot to change it afterwards :-). So dont be confused

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

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

[-config] !!!

I want it to choose something different like

[-config] or [-config] or something like that. But i want it to do automatically, so like whenever i copy the startup-config, i dont need to reneter it again

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 ?

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

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

Review Cisco Networking products for a $25 gift card