75
Default command level
3: Manage level
Parameters
remotefile
: Name of the file to be downloaded.
localfile
: Name for the downloaded file. If this argument is not specified, the original name is used.
Examples
# Download file
testcfg.cfg
to the root directory of the storage medium on the master, and save it as
newest.cfg
.
[ftp] get testcfg.cfg newest.cfg
227 Entering Passive Mode (192,168,1,46,4,47).
125 ASCII mode data connection already open, transfer starting for /testcfg.cfg.
..226 Transfer complete.
FTP: 3608 byte(s) received in 2.050 second(s), 1.00K byte(s)/sec.
# Download file
testcfg.cfg
to the Flash root directory of the subordinate device with the member ID 2,
and save it as
newest.cfg
.
[ftp] get testcfg.cfg slot2#flash:/newest.cfg
227 Entering Passive Mode (192,168,1,46,4,48).
125 ASCII mode data connection already open, transfer starting for /testcfg.cfg.
226 Transfer complete.
FTP: 3608 byte(s) received in 2.322 second(s), 1.00K byte(s)/sec.
lcd
Use
lcd
to display the local working directory of the FTP client.
Syntax
lcd
Views
FTP client view
Default command level
3: Manage level
Examples
# Display the local working directory.
[ftp] lcd
FTP: Local directory now flash:/clienttemp.
The output shows that the working directory of the FTP client before execution of the
ftp
command is
flash:/clienttemp
.
ls
Use
ls
to list files and subdirectories in the current directory of the FTP server.