Unable to transfer pcap file via SCP
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-04-2016 12:42 PM
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.
Thanks!
---
X770-02.29 # scp vr "VR-Default" "/usr/local/tmp/2016-03-03_09-49-39_rx_tx.pcap" admin@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
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@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
Upload /config/2016-03-03_09-49-39_rx_tx.pcap to
admin@192.168.152.1's password:
Connected to 192.168.152.1.
stat /config/2016-03-03_09-49-39_rx_tx.pcap: No such file or directory
X770-02.31 # pwd
/usr/local/tmp
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 16.1.2.14
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.
Thanks!
---
X770-02.29 # scp vr "VR-Default" "/usr/local/tmp/2016-03-03_09-49-39_rx_tx.pcap" admin@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
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@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
Upload /config/2016-03-03_09-49-39_rx_tx.pcap to
admin@192.168.152.1's password:
Connected to 192.168.152.1.
stat /config/2016-03-03_09-49-39_rx_tx.pcap: No such file or directory
X770-02.31 # pwd
/usr/local/tmp
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 16.1.2.14
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-07-2017 04:36 AM
Petar.
With WinSCP. Can you access all directorys or /usr/local/cfg only?
I login via WinSCP with admin user but I can only see ..../cfg.
I have no priviledge to change to an upper directory.
Am I wrong?
thanks
Alex
With WinSCP. Can you access all directorys or /usr/local/cfg only?
I login via WinSCP with admin user but I can only see ..../cfg.
I have no priviledge to change to an upper directory.
Am I wrong?
thanks
Alex
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-04-2016 01:31 PM
Petar,
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@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
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@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-04-2016 01:31 PM
That's it! Thank you!
I was also able to SFTP to the switch with WinSCP and see the file.
I was also able to SFTP to the switch with WinSCP and see the file.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎03-04-2016 01:20 PM
From the cli
cd /usr/local/tmp/
scp2 vr vr-default 2016-03-03_09-49-39_rx_tx.pcap admin@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
That should work
cd /usr/local/tmp/
scp2 vr vr-default 2016-03-03_09-49-39_rx_tx.pcap admin@192.168.152.1:2016-03-03_09-49-39_rx_tx.pcap
That should work
