230 Logged in successfully
# Set the file transfer mode to binary to transmit system software image file.
[ftp] binary
200 Type set to I.
# Download the system software image file newest.bin from the PC to the device.
[ftp] get newest.bin
# Upload the configuration file config.cfg of the device to the server for backup.
[ftp] ascii
[ftp] put config.cfg
227 Entering Passive Mode (10,1,1,1,4,2).
125 ASCII mode data connection already open, transfer starting for /config.cfg. 226 Transfer complete.
FTP: 3494 byte(s) sent in 5.646 second(s), 618.00 byte(s)/sec. [ftp] bye
# Specify newest.bin as the main system software image file for next startup.
<Sysname>
# Reboot the device, and the system software image file is updated at the system reboot.
<Sysname> reboot
CAUTION:
The system software image file for next startup must be saved in the storage medium’s root directory. You can copy or move a file to the storage medium’s root directory. For more information about the
Configuring the FTP server
Configuring FTP server operating parameters
The FTP server uses one of the following modes to update a file when you upload the file (use the put command) to the FTP server:
•In fast mode, the FTP server starts writing data to the storage medium after a file is transferred to the memory. This prevents the existing file on the FTP server from being corrupted in the event that anomaly, such as a power failure occurs during a file transfer.
•In normal mode, the FTP server writes data to the storage medium while receiving data. This means that any anomaly, such as a power failure during file transfer might result in file corruption on the FTP server. This mode, however, consumes less memory space than the fast mode.
Follow these steps to configure the FTP server:
To do… | Use the command… | Remarks | |
|
|
| |
Enter system view | — | ||
|
|
| |
Enable the FTP server | ftp server enable | Required | |
Disabled by default. | |||
|
| ||
|
|
|
91