The mget command enables the system to transfer multiple files from the remote server to local device.
| Parameter | Description | Value |
|---|---|---|
remote-filenames |
Specifies the remote file names. It contains more than one file name separated by spaces. The file name can be in wild card characters. |
Local file name is a string data type. The string length is a text of 1 to 255 characters. |
System prompts a confirmation message to the user before file transfer. If you disable the prompt message using undo prompt command, then files get transferred automatically.
If the file exists in the local device, then the system prompts the message to get the confirmation whether to overwrite the local file or not.
# Transfer 1.txt, 2.txt and vrp221.cfg from the remote server to local device.
<sysname> 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]