< Home

get (FTP client view)

Function

The get command downloads a file from the FTP server and saves the file to the local device.

Format

get remote-filename [ local-filename ]

Parameters

Parameter Description Value
remote-filename Specifies the name of the file to be downloaded from the FTP server. The value is a string of 1 to 64 case-insensitive characters without spaces.
local-filename Specifies the name of a downloaded file to be saved to the local device. The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the get command to download system software, backup configuration files, and patch files from the FTP server to upgrade devices.

Precautions

  • If the downloaded file name is not specified on the local device, the original file name is used.

  • 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.

Example

# Download the system software devicesoft.cc from the FTP server.

<HUAWEI> ftp 10.137.217.201
Trying 10.137.217.201 ...
Press CTRL+K to abort
Connected to 10.137.217.201.
220 FTP service ready.
User(10.137.217.201:(none)):huawei
331 Password required for huawei.
Enter password:
230 User logged in. 
[ftp] get devicesoft.cc
200 Port command successful.
150 Opening BINARY mode data connection for file transfer.
226 Transfer complete 
FTP: 6482944 byte(s) received in 54.500 second(s) 1117.40Kbyte(s)/sec. 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >