If you are on a linux/mac machine the easiest way would be to use secure copy
scp <filename> username@<IP or hostname>://mnt/flash/
scp EOS-4.18.2F.swi email@example.com://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:firstname.lastname@example.org/EOS-4.18.2F.swi flash:/EOS-4.18.2F.swi
copy via SCP
#copy scp://user:email@example.com/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.
Post your Answer
You must be logged in to post an answer.