Use the scp command

The scp command uses Secure Copy Protocol (SCP) to transfer files between the 6310-DX device and a remote host.

Required configuration items

Copy a file from a remote host to the 6310-DX device

To copy a file from a remote host to the 6310-DX device, use the scp command as follows:

> scp host hostname-or-ip user username remote remote-path local local-path to local

where:

For example:

To copy firmware from a remote host with an IP address of 192.168.4.1 to the /etc/config directory on the 6310-DX device, issue the following command:

> scp host 192.168.4.1 user admin remote /home/admin/bin/6310-DX-22.2.9.85.bin local /etc/config/scripts to local
admin@192.168.4.1's password: adminpwd 
6310-DX-22.2.9.85.bin			100%	36MB	11.1MB/s	00:03
>

Transfer a file from the 6310-DX device to a remote host

To copy a file from the 6310-DX device to a remote host, use the scp command as follows:

> scp host hostname-or-ip user username remote remote-path local local-path to remote

where:

For example:

To copy a support report from the 6310-DX device to a remote host at the IP address of 192.168.4.1:

  1. Use the system support-report command to generate the report:
    > system support-report /var/log/
    Saving support report to /var/log/support-report-0040D0133536-22-03-03-10:16:23.bin
    Support report saved.
    >
  2. Use the scp command to transfer the report to a remote host:
    > scp host 192.168.4.1 user admin remote /home/admin/temp/ local /var/log/support-report-00:40:D0:13:35:36-22-03-03-10:16:23.bin to remote
    admin@192.168.4.1's password: adminpwd 
    support-report-0040D0133536-22-03-03-10:16:23.bin
    >