Backup Summit/BD switches using FTP/SCP


Hello, I am trying to configure a routine backup for the summit and black diamond switches on my network.

i can tftp to other unsecured servers but the server to host the backup configurations is secured.

SCP is giving me the error below;

CHOU-JCE-SW04.1 # scp2 vr "VR-Default" admin@172.24.X.X/backup/ex_switches:config primary.cfg
Download to /config/primary.cfg on switch
Connecting to 172.24.X.X/backup/ex_switches:config...
ssh: 172.24.X.X/backup/ex_switches:config: Name or service not known
Couldn't read packet: Connection reset by peer

while there is no option for FTP

5 replies

Userlevel 6
Hello Mofinyinfoluwa,

The format used for SCP is "scp2 [u]@: "

I see you have a : between switches and config (ex_switches:config). Was this intended or should it be a "/". Changing that might resolve your issue.

Let us know if it works!
Hi Patrick,

When i try to use /, it says the command is incomplete. it appears you can only use scp to retrieve files from a server and not put files.

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg
%% Incomplete command

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg?
[u] User @ remote host or IP address with remote file name
Userlevel 7
Mofinyinfoluwa Oyegunle wrote:

Hi Patrick,

When i try to use /, it says the command is incomplete. it appears you can only use scp to retrieve files from a server and not put files.

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg
%% Incomplete command

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg?
[u] User @ remote host or IP address with remote file name

You are missing a colon between the IP address and the file path.
scp2 vr "VR-Default" admin@172.24.154.235:/mnt/backup2/mpbn_backup primary.cfg[/code]
Mofinyinfoluwa Oyegunle wrote:

Hi Patrick,

When i try to use /, it says the command is incomplete. it appears you can only use scp to retrieve files from a server and not put files.

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg
%% Incomplete command

CH.2 # scp2 vr "VR-Default" admin@172.24.154.235/mnt/backup2/mpbn_backup primary.cfg?
[u] User @ remote host or IP address with remote file name

Hi Erik,

Thanks, it works using the format below for uploads,

"scp2 [u]@: "

C4 # scp2 vr "VR-Default" primary.cfg admin@172.24.154.235:/mnt/backup2/mpbn_backup

Upload /config/primary.cfg to
Connecting to 172.24.154.235...
airtelmpbn@172.24.154.235's password:

Uploading /config/primary.cfg to /mnt/backup2/mpbn_backup/primary.cfg
/config/primary.cfg 100% 289KB 289.0KB/s 00:00

Is there any way to automate this process, I have a bit over 50 switches on my network?
Userlevel 4
I can see after inserting the : in between the ip address and file path it is working now. Anyway in the future for further reference you can always have a look at below article link which says the correct procedure of implementing this:

https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-upgrade-EXOS-using-SCP/

Reply