The mput command enables the system to transfer multiple files from the local device to remote server.
| Parameter | Description | Value |
|---|---|---|
local-filenames |
Specifies the 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. |
You can use this command to transfer multiple files from the local device to remote server.
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.
# Transfer two local files to a remote server.
<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] mput 111.txt vrp222.cfg 200 Port command okay. 150 Opening ASCII mode data connection for 111.txt. 226 Transfer complete. FTP: 0 byte(s) sent in 0.221 second(s) 0.00byte(s)/sec. 200 Port command okay. 150 Opening ASCII mode data connection for vrp222.cfg. 226 Transfer complete. FTP: 4198 byte(s) sent in 0.171 second(s) 24.54Kbyte(s)/sec. [ftp]