Backup Summit/BD switches using FTP/SCP

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
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
Photo of Mofinyinfoluwa Oyegunle

Posted 2 years ago

  • 0
  • 1
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,714 Points 10k badge 2x thumb
Hello Mofinyinfoluwa,

The format used for SCP is "scp2 <user>@<scp_server>:<remote_file> <local_file>"

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@ primary.cfg
%% Incomplete command

CH.2 # scp2 vr "VR-Default" admin@ primary.cfg?                            
  <user@host:file>  User @ remote host or IP address with remote file name
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 13,772 Points 10k badge 2x thumb
You are missing a colon between the IP address and the file path.
scp2 vr "VR-Default" admin@ primary.cfg
Hi Erik,

Thanks, it works using the format below for uploads,

"scp2  <local_file> <user>@<scp_server>:<remote_file> "

C4 # scp2 vr "VR-Default" primary.cfg admin@

Upload /config/primary.cfg to 
Connecting to
airtelmpbn@'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?
Photo of Tripathy, Priya Ranjan

Tripathy, Priya Ranjan, ESE

  • 2,306 Points 2k badge 2x thumb
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: