Posted on June 12, 2017 1:53 pm
 |  Asked by Sabeer Ahamed
 |  9933 views
0
0
Print Friendly, PDF & Email
0
Posted by Tamas Plugor
Answered on June 12, 2017 2:33 pm

Hi Sabeer,

If you are on a linux/mac machine the easiest way would be to use secure copy

e.g.

scp  <filename> username@<IP or hostname>://mnt/flash/

scp  EOS-4.18.2F.swi admin@192.168.160.102://mnt/flash/EOS-4.18.2F.swi

 

If you are on a windows machine, you could use WinSCP, which is a nice free tool you can find online that lets you transfer files from between your devices using scp, sftp,ftp or webdav. The easiest way would be to use SCP, however in order for it to work you have to make sure that the username you are using has privileged access to the switch and enters in ‘enable’ mode by default and when setting up the session, in the advanced option in Environment-SCP/Shell you have to make sure the Shell is bash. By default you’ll see the ‘Default’ keyword or ‘/bin/bash’ and you can just type ‘bash’ and click ok and Login. After this you can choose the file you need to upload to the switch from the left side of the commander window and you can simply use the drag and drop feature and drop it to the switch on the right side.

Alternatively, you could do the copy from the switch’s CLI or bash shell from your machine to the switch e.g.

From the CLI

copy via FTP:

#copy ftp:/user:password@192.168.10.15/EOS-4.18.2F.swi flash:/EOS-4.18.2F.swi

copy via SCP

#copy scp://user:password@192.168.10.15/temp/EOS-4.18.2F.swi flash:/EOS-4.18.2F.swi

copy via HTTP

#copy http://192.168.10.15/EOS-4.18.2F.swi flash:/EOS-4.18.2F.swi

 

From bash mode it would be similar to my first example.

 

 

Hope this helps.

Thanks,

Tamas.

Post your Answer

You must be logged in to post an answer.