Command Reference FTP Client Commands
FTP Client Commands
copy ftp
This section introduces how to use the copy ftp command to transfer files at the CLI in the main
program. To use the FTP client to download files to the device, execute the copy ftp:url flash:url
command in the privileged mode. Use the copy flash:url ftp:url command to upload files of the local
client to the server.
copy ftp://username:password@dest-address [/remote-directory]/remote-file
flash:[local-directory/]local-file [vrf vrfname]
copy flash:[local-directory/]local-file ftp://username:password@dest-address [/remote-directory]/
remote-file [vrf vrfname]
Parameter
Description
Parameter Description
username
Username for logging in to the FTP server, with a length no more than
40 bytes. The username does not contain dot (.), at sign (@), slash (/),
and space. This parameter is mandatory.
password
Password for logging in to the FTP server, with a length no more than
32 bytes. The password does not contain dot (.), at sign (@), slash (/),
and space. This parameter is mandatory.
dest-address
IP address of the FTP server
remote-directory
Name of the optional directory on the FTP server for uploading files,
with a length no more than 255 bytes. The directory name does not
contain space and Chinese characters. If this parameter is empty, the
current directory of the FTP server is used.
remote-file
Name of the file on the remote server, with a length no more than 255
bytes. The name does not contain space and Chinese characters.
local-directory
Optional directory of the folder on the local device. Create the folder on
the local device before specifying the directory of the folder because
this command cannot automatically create a folder. If this parameter is
empty, the current directory is used, with a length no more than 255
bytes, and does not contain space and Chinese characters.
local-file
Name of the file on the local server, with a length no more than 255
bytes. The name does not contain space and Chinese characters.
vrfname
Name of the specified VRF
Defaults
N/A
Command
Modes
Privileged EXEC mode