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

Automatic FTP config transfer.

boldobaldo
Level 1
Level 1

Hi all, 
I need to have an automatic sistem config backup. 
I tried to create an user that have ssh access. 
From an external FTP server, i've created a script that logs in the switch and give the command "copy running-config tftp://x.x.x.x". 
But it don't works. 
I see this error comes back:  "Line has invalid autocommand "copy running-config tftp://10.139.251.175".

What i can do? 

Thanks. 
BB. 

 

1 Accepted Solution

Accepted Solutions

you can use below methods.

1.

copy running-config ftp://put_user_name_here:put_password_here@put_machie_name_or_ip_here//home/users/some_location/ut-running-config.txt

 2.

sw(config)#file prompt quiet
sw(config)#end
sw#copy run tftp://192.168.1.1/file.txt

use this commands to customize your script as need

 

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

View solution in original post

2 Replies 2

you can use below methods.

1.

copy running-config ftp://put_user_name_here:put_password_here@put_machie_name_or_ip_here//home/users/some_location/ut-running-config.txt

 2.

sw(config)#file prompt quiet
sw(config)#end
sw#copy run tftp://192.168.1.1/file.txt

use this commands to customize your script as need

 

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

balaji.bandi
Hall of Fame
Hall of Fame

Are you looking to Transfer using FTP or TFTP ?

 

Try Manually is that works before you make Automatc Transfer ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: