Parameter | Description | Value |
---|---|---|
local-filenames | Specifies files to be uploaded. 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 mput command to upload multiple files to the remote FTP server at the same time, especially in the upgrade scenario.
Precautions
If the name of the uploaded file is the same as that of an existing file on the FTP server, the system overwrites 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.
# Upload two local files 111.text and vrp222.cfg to 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] mput 111.txt vrp222.cfg 200 Port command successful. 150 Opening ASCII mode data connection for file transfer. 226 Transfer complete. FTP: 6556 byte(s) sent in 0.231 second(s) 28.38Kbyte(s)/sec. 200 Port command successful. 150 Opening ASCII mode data connection for file transfer. 226 Transfer complete. FTP: 4198 byte(s) sent in 0.171 second(s) 24.54Kbyte(s)/sec. [ftp]