89
Parameters
remotefile
: Specifies the name of the file to be downloaded.
localfile
: Specifies a name for the downloaded file.
Usage guidelines
You can perform this operation only after you log in to the FTP server.
To save the downloaded file to the working directory accessed by the
ftp
command, the
localfile
argument must specify a file name such as a.cfg. If you do not provide the
localfile
argument, the
downloaded file uses its original name.
To save the downloaded file to some other directory, the
localfile
argument must specify the target
directory plus the file name such as flash:/subdirectory/a.cfg. Otherwise, the command fails to take
effect.
Examples
# Download file
a.txt
and save it as
b.txt
in the working directory accessed by the
ftp
command.
ftp> get a.txt b.txt
227 Entering Passive Mode (10,153,116,114,11,126)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\a.txt" file ready to send
(1 bytes) in IMAGE / Binary mode
226 Transfer finished successfully.
1 bytes received in 0.00325 seconds (308 byte/s)
# Download file
a.txt
to the folder
test
from the working directory accessed by the
ftp
command.
ftp> get a.txt flash:/test/b.txt
227 Entering Passive Mode (10,153,116,114,11,151)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\a.txt" file ready to send
(6324 bytes) in IMAGE / Binary mode
226 Transfer finished successfully.
6324 bytes received in 0.0237 seconds (260.6 kbyte/s)
# In IRF mode, download file
a.txt
to the Flash root directory of the MPU that resides in slot 17 of member
device 1. Save the file as
c.txt
.
ftp> get a.txt chassis1#slot17#flash:/c.txt
227 Entering Passive Mode (10,153,116,114,11,151)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\a.txt" file ready to send
(6324 bytes) in IMAGE / Binary mode
226 Transfer finished successfully.
6324 bytes received in 0.0237 seconds (260.6 kbyte/s)
Related commands
put
help
Use
help
to display all commands supported by an FTP client.
Use
help
command-name
to display the help information of a specific command.
Syntax
help
[
command-name
]