Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

using scp to copy flash from a switch to a computer.

Mar 11, 2016 11:26AM PST

I'm using scp to backup flash from a switch to a computer. as tftp doesn't transfer xorrectly. the file is larger and crc32 fails so i opted for scp instead.
I'm trying to copy from a fastiron switch to a raspberry pi 2
Here's what i'm trying

>scp frank@192.168.1.3:flash:primary FGS07202a.bin
frank@192.168.1.3's password:
scp image copy from device's flash accepts only following syntax: scp <username>@<ipaddress>:flash:<primary/secondary> <destination filename>
lost connection

Having checked the log it gives me this.

00 days 00h:35m:25s infomational Security: SSH logout by public key from src IP 192.168.1.67, src MAC b827.eb13.853c
00 days 00h:35m:25s infomational Security: SSH login by public key from src IP 192.168.1.67, src MAC b827.eb13.853c to USER EXEC mode
00 days 00h:32m:55s infomational Security: SSH login by public key from src IP 192.168.1.67, src MAC b827.eb13.853c to PRIVILEGE EXEC mode
00 days 00h:32m:44s infomational Security: SSH login by public key from src IP 192.168.1.67, src MAC b827.eb13.853c to USER EXEC mode

As you can see, it's not an authntication problem. I know the scp isn't standard format but it seems to demand that unusual format.

Has anyone else exnountered this and found a way around it.

Discussion is locked

- Collapse -
Answer
This is missing so many details.
Mar 11, 2016 11:56AM PST

While long ago I did such a thing on Cisco gear, I found it was my error about tftp. I ended up using a Linux boot and got the job done. I'm not an expert on Linux by any means. Yes I do use it, have developed on Linux for years but one of the nice things is flexibility. It gives me another tool or exit.

In parting many of these switches or routers have support systems. I'd be guessing here but as gear aged and went out on Ebay I see a lot more odd questions like this that would normally be handled by the equipment maker. Not that' is a bad thing but it's something you see today. That is, folk want to use gear that used to mandate support without the support.

- Collapse -
working but need to back it ip
Mar 11, 2016 3:53PM PST

Oh the switch works fine. i'm just trying to back up the flash in case anything goes wrong. As you saym the support is nonexistant. i did set up a tft on my linux laptop then log into the switch and do the transfer from there as the switch doesn't have a tft server, only a client and it claimed to transfer the file ok but there was a mismatch in size and crc check failed. I tried rebooting from it and it failed. fortunately it had the internal flash images but i imagine there is some tftp incompatibility here. o doubt i will fair any better on my raspberry pi tftp server. I gogled it an other people have had the same issue, although on cisco one resorted to use scp which the switch does support (allegidly) it appears there are similarities beterrin cisco and foundary. however that error message although not an error has baffled me. I'm amazed no one stuck the flashes on a web page.

- Collapse -
Then plan as if support is gone and this is toast.
Mar 12, 2016 10:07AM PST

It's best to plan for the disaster than not.

- Collapse -
It works. Just asking how to back it up
Mar 12, 2016 4:36PM PST

Surely someone somewhere has backed up the flash successfully using eitherr scp or tftp/ It's not like i'm asking fr an elephants ear in a bun.
The error doesn't explain itself. someone on the entire planet must have done it at some time.

- Collapse -
I read your post again
Mar 12, 2016 4:48PM PST

And can't tell if you are trying this on other PCs and of course Linux. Sometimes you run into an IT staffer that has no other options.

- Collapse -
solved
Mar 12, 2016 6:03PM PST

Hello. I solved it. the answer was in the manuaL the primary/ secondary source was missing a file extenstion
So
scp frank@192.168.1.3:flash:primary.bin FGS07202a.bin
worked
it read back in ok too
Thanks for your feedback. Happy

- Collapse -
Thanks for the update.
Mar 13, 2016 8:11AM PDT

Nothing like reading fine manuals over and over. Painful but sometimes it pays off.