Configuring the ftp server, Configuring ftp server operating parameters – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 230

Advertising
background image

215

Trying 10.1.1.1
Connected to 10.1.1.1
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(10.1.1.1:(none)):abc
331 Give me your password, please
Password:
230 Logged in successfully

# Set the file transfer mode to binary to transmit boot file.

[ftp] binary
200 Type set to I.

# Download the boot file newest.bin from PC to Device.

[ftp] get newest.bin

# Upload the configuration file config.cfg of Device to the server for backup.

[ftp] ascii
[ftp] put config.cfg back-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 boot file to be used at the next startup.

<SecBlade> boot-loader file newest.bin main

# Reboot the device, and the boot file is updated at the system reboot.

<SecBlade> reboot

CAUTION:

The boot file used at the next startup must be saved under the root directory of the storage medium (For a
device that has been partitioned, the boot file must be saved on the first partition). You can copy or move

a file to the root directory of the storage medium. For more information about the boot-loader command,
see

the chapter “Software upgrade commands.”

Configuring the FTP server

Configuring FTP server operating parameters

The FTP server uses one of the two 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, power failure for example, 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, power failure for example, 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:

Advertising