02-20-2023 06:37 AM
Hi
I have a problem with sending configuration to ftp.
The problem is on Nexus 3064.
The FTP server works, I log in through an external program and send files to the server.
When I want to send the configuration to the ftp server from cisco, I have this:
SW01-Core# copy running-config ftp://10.0.0.12/sw1-run-config.bak vrf management
Enter username: cisco
Password:
Could not create file.
***** Transfer of file aborted, Login failed*****
***** Transfer of file aborted *****
SW01-Core#
I don't know what could be causing this error. Login and password are correct, permissions too.
Where to look for a solution?
02-20-2023 07:11 AM
**** Transfer of file aborted, Login failed*****
above shows that login failed, check username /passsword?
02-20-2023 08:21 AM
Login and password are valid. I checked with other FTP clients.
I logged in successfully.
Password is "v9sjc8zhch8dfZ#"
Maybe cisco doesn't accept all characters?
02-20-2023 09:45 AM
all config is OK
copy ................................. source-interface x/x <<- specify the source that will connect to ftp server.
this source must reach the server, you can check via
ping <server> source <interface>
02-20-2023 01:09 PM
May be try creating sime user and password and test it.
02-20-2023 10:37 AM
I checked it. The FTP server is pinging the switch. The switch has a ping to the FTP server.
SW01-Core# ping 10.0.0.12 vrf management
PING 10.0.0.12 (10.0.0.12): 56 data bytes
64 bytes from 10.0.0.12: icmp_seq=0 ttl=62 time=1.095 ms
64 bytes from 10.0.0.12: icmp_seq=1 ttl=62 time=1.06 ms
64 bytes from 10.0.0.12: icmp_seq=2 ttl=62 time=0.97 ms
64 bytes from 10.0.0.12: icmp_seq=3 ttl=62 time=1.056 ms
64 bytes from 10.0.0.12: icmp_seq=4 ttl=62 time=10.246 ms
--- 10.0.0.12 ping statistics ---
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max = 0.97/2.885/10.246 ms
SW01-Core#
[root@ftp ~]# ping 172.16.2.147
PING 172.16.2.147 (172.16.2.147) 56(84) bytes of data.
64 bytes from 172.16.2.147: icmp_seq=1 ttl=254 time=0.591 ms
64 bytes from 172.16.2.147: icmp_seq=2 ttl=254 time=0.577 ms
64 bytes from 172.16.2.147: icmp_seq=3 ttl=254 time=0.510 ms
64 bytes from 172.16.2.147: icmp_seq=4 ttl=254 time=0.614 ms
64 bytes from 172.16.2.147: icmp_seq=5 ttl=254 time=0.451 ms
^C
--- 172.16.2.147 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 121ms
rtt min/avg/max/mdev = 0.451/0.548/0.614/0.065 ms
[root@ftp ~]#
It seems that the switch cannot create a file on plain ftp.
I did the test.
I changed the ftp server. It's the same error.
02-20-2023 10:59 AM - edited 02-20-2023 11:18 AM
copy ............................................ vrf <vrf name> <<- use the VRF management in end of copy command
ip {ftp | http | tftp} source-interface {ethernet slot/port | loopback number} <<- add this command
02-20-2023 11:08 AM
You mean
copy running-config ftp://10.0.0.12/sw1-run-config.bak vrf management ?
Management is the name of the interface
02-20-2023 11:18 AM
please check I editing my previous post
02-20-2023 11:22 AM
Thank you for your answer.
I changed my approach. I made a copy via scp.
copy running-config scp://cisco@10.0.0.12 vrf management
It worked
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