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.
Hi , I am trying arista (DCS-7050S-64-F) switch to switch (DCS-7050S-64-F) firmware copy with command below
" copy scp://admin:LADarepafirstname.lastname@example.org/flash/EOS-4.14.7M.swi flash:/EOS-4.14.7M.swi "
after the command executed it turns into password
then the final result is comes below
(The 'scp' command is only available in privileged mode.)
Note: using privileged mode and AAA local is enabled already ..
Can any one help this case ?
Because the command is accepted, we can conclude you are in the privileged mode. Most likely the username (admin) that you are using to connect via scp doesn't have privileged mode access on 192.168.103.5.
You can use the below command to transfer the file from one switch to another switch:
1- Login to the switch where you have the EOS file.
2- Run the command "dir" to confirm that you have the file "EOS-4.14.7M.swi" in the /mnt/flash of the switch.
3- run the below command to transfer the EOS file to the /mnt/flash of the destination switch "192.168.103.5"
#bash sudo scp /mnt/flash/EOS-4.14.7M.swi email@example.com:/mnt/flash/
(The 'scp' command is only available in privileged mode.),
This means the login username(admin) does not have permission to access bash shell from remotely(scp session),
You need to add "aaa authorization exec default local" command on scp destination switch(x.x.x.x) to allow remote scp session to access shell.
Arista(config)#aaa authorization ?
commands Configure authorization for shell commands
config-commands Enable authorization for configuration commands
exec Configure authorization for starting a shell
policy Set authorization policy
serial-console Enable console authorization
Using my PC as my ftp server, I would like to backup the EOS image and other configuration files in my Arista 7050S.
Any help with the procedure will be appreciated.
Hello @Prabhu Dayalan,
If it is of no trouble to you, please respond to my question above.
It is about the procedure for backing up EOS using my PC as FTP server.
Post your Answer
You must be logged in to post an answer.