Parameter | Description | Value |
---|---|---|
remote-filenames | Specifies multiple files to download to the local device. File names are separated using spaces, and the wildcard (*) is supported. | The value is a string of 1 to 255 characters. |
Usage Scenario
You can run the mget command to download multiple files at the same time.
Precautions
The command cannot download all files in a directory or subdirectory.
If the name of the downloaded file is the same as that of an existing local file, the system prompts you whether to overwrite the existing file.
The file system has a restriction on the number of files in the root directory. Therefore, if more than 50 files exist in the root directory, creating new files in this directory may fail.
# Download files 1.txt, 2.txt, and vrp221.cfg from the remote FTP server.
<HUAWEI> ftp 10.10.10.1
Trying 10.10.10.1 ... Press CTRL+K to abort Connected to 10.10.10.1. 220 FTP service ready. User(10.10.10.1:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[ftp]mget 1.txt 2.txt vrp221.cfg 200 Port command okay. 150 Opening ASCII mode data connection for 1.txt. 226 Transfer complete. FTP: 3885 byte(s) received in 0.174 second(s) 22.32Kbyte(s)/sec. 200 Port command okay. 150 Opening ASCII mode data connection for 2.txt. 226 Transfer complete. FTP: 8721 byte(s) received in 0.179 second(s) 48.72Kbyte(s)/sec. 200 Port command okay. 150 Opening ASCII mode data connection for vrp221.cfg. 226 Transfer complete. FTP: 6700 byte(s) received in 0.151 second(s) 44.37Kbyte(s)/sec. [ftp]