Unable to transfer pcap file via SCP

  • 0
  • 2
  • Problem
  • Updated 1 year ago
  • Solved
  • (Edited)
Hey there,

I'm trying to transfer a pcap file from an X770 to my PC using SCP2 but I'm unable to do it.
TFTP is not an option since it's unreliable and has failed multiple times during transfer.
Tried also by connecting to the switch via SFTP but can't seem to access anything except the /config folder.

Please advise.



X770-02.29 # scp vr "VR-Default" "/usr/local/tmp/2016-03-03_09-49-39_rx_tx.pcap" admin@
Error: Local file name cannot contain '~' or '/' character.

X770-02.30 # scp vr "VR-Default" 2016-03-03_09-49-39_rx_tx.pcap admin@
Upload /config/2016-03-03_09-49-39_rx_tx.pcap to
admin@'s password:

Connected to
stat /config/2016-03-03_09-49-39_rx_tx.pcap: No such file or directory

X770-02.31 # pwd

X770-02.32 # ls
-rwxr-xr-x    1 root     root     11012687 Mar  3 10:33 2016-03-03_09-49-39_rx_tx.pcap

Image   : ExtremeXOS version
Photo of Petar Mustur

Petar Mustur

  • 102 Points 100 badge 2x thumb
  • confused

Posted 3 years ago

  • 0
  • 2
Photo of Chad Smith

Chad Smith, Alum

  • 5,660 Points 5k badge 2x thumb
Official Response

It seems SCP is only copying from the /usr/local/cfg directory and will not allow you to enter a different directory.  Can you try copying the file (with cp) to /usr/local/cfg and then transferring from there?

cd /usr/local/cfg
cp /usr/local/tmp/2016-03-03_09-49-39_rx_tx.pcap /usr/local/cfg/2016-03-03_09-49-39_rx_tx.pcap
scp vr "VR-Default" 2016-03-03_09-49-39_rx_tx.pcap admin@