Upload and download files

You can download and upload files by using the WebUI or from the command line by using the scp Secure Copy command, or by using a utility such as SSH File Transfer Protocol (SFTP) or an SFTP application like FileZilla.

Upload and download files by using the WebUI

Upload files

  1. Log into the 6310-DX WebUI as a user with Admin access.
  2. On the menu, click System. Under Administration, click File System.

    The File System page appears.

  3. Highlight the directory to which the file will be uploaded and click to open the directory.
  4. Click (upload).
  5. Browse to the location of the file on your local machine. Select the file and click Open to upload the file.

Download files

  1. Log into the 6310-DX WebUI as a user with Admin access.
  2. On the menu, click System. Under Administration, click File System.

    The File System page appears.

  3. Highlight the directory to which the file will be uploaded and click to open the directory.
  4. Highlight the appropriate file and click (download).

Upload and download files by using the Secure Copy command

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
    >

Upload and download files using SFTP

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

This example uploads firmware from a remote host to the 6310-DX device with an IP address of 192.168.2.1, using the username ahmed:

$ sftp ahmed@192.168.2.1
Password:
Connected to 192.168.2.1
sftp> put 6310-DX-22.2.9.85
Uploading 6310-DX-22.2.9.85 to 6310-DX-22.2.9.85
6310-DX-22.2.9.85                                                                      100%  24M  830.4KB/s   00:00
sftp> exit
$

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

This example downloads a file named test.py from the 6310-DX device at the IP address of 192.168.2.1 with a username of ahmed to the local directory on the remote host:

$ sftp ahmed@192.168.2.1
Password:
Connected to 192.168.2.1
sftp> get test.py
Fetching test.py to test.py
test.py                                                                             100%  254    0.3KB/s   00:00
sftp> exit
$