cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15313
Views
5
Helpful
6
Replies

Copy files from SFTP to Nexus switch

mramirez-t
Level 1
Level 1

So I'm running into this issue trying to copy a firmware image via SFTP to my Nexus 3048 switch.  I was able to use the 'source-interface' command on a different 3048, but the other 3048 was using a different firmware version.  Version on this particular switch is 6.0(2)U3(7)

 

copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: source-interface mgmt 0

 

So, the source-interface isn't working.  Then trying ? to match the right command, this is the output I get.  The NXOS is leading me toward the right command using ? but then kills me at the end when specifying the source interface.

 

DMZ-R2-4# copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: ?
<CR>
interface Select source interface
vrf Display per-VRF information

DMZ-R2-4# copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: interface ?
ethernet Ethernet IEEE 802.3z
loopback Loopback interface
mgmt Management interface

DMZ-R2-4# copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: interface mgmt ?
<0-0> Management interface number

DMZ-R2-4# copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: interface mgmt 0
Source interface not supported for this copy operation

 

So how do I get the copy to work from SFTP to this 3048 if I can't specify the source interface.

6 Replies 6

Reza Sharifi
Hall of Fame
Hall of Fame

Does it work without specifying the source interface command?

copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash:

 

HTH

DMZ-R2-4# copy sftp://sftp@10.5.138.63/n3000-uk9.6.0.2.U6.8.bin bootflash:
Enter vrf (If no input, current vrf 'default' is considered):

ssh: connect to host 10.5.138.63 port 22: No route to host
Couldn't read packet: Connection reset by peer

 

it can't find the SFTP site because it needs a way to route to the SFTP server.  The only way I've been able to get to any device outside this switch is by specifying the source.

Got it to work.  Kept trying to put in the name of our vrf, which is mgmt0.  However, all I had to put in was management:

 

copy sftp://sftp@10.5.128.63/nxos.7.0.3.I4.8a.bin bootflash: vrf management

 

Works.

Good to know you got it working! So, the source interface is not necessarily needed.

HTH

Hi,

 

I am also having same issue. however, i have no other way to copy file from Ftp other than source-interface.

 

Can we have any thought here please.

 

below is the output which we are getting

 

BH_B179GOP2_N3K_001# copy ftp://anonomus@10.206.18.92/my_10mb_file bootflash:my_10mb_file interface loopback 100
Source interface not supported for this copy operation

Hi,

The switch has told you the reason: Source interface not supported for this copy operation

Assuming others used their OOB management interface for the transfer. Have you tried this as an option? As it doesn't appear to like the virtual interface. 

 

HTH

Review Cisco Networking for a $25 gift card