2376 CHAPTER 158: FTP CLIENT CONFIGURATION COMMANDS

Examples # The device serves as the FTP client. Enable FTP client debugging and use the active mode to download file sample.file from the current directory of the FTP server.

<Sysname> terminal monitor <Sysname> terminal debugging <Sysname> ftp 192.168.1.46 Trying 192.168.1.46 ...

Press CTRL+K to abort

Connected to 192.168.1.46.

220 FTP service ready. User(192.168.1.46:(none)):ftp 331 Password required for ftp. Password:

230 User logged in.

[ftp]undo passive [ftp] debugging

[ftp] get sample.file

---> PORT 192,168,1,44,4,21 200 Port command okay.

The parsed reply is 200

---> RETR sample.file

150 Opening ASCII mode data connection for sample.file.

The parsed reply is 150

FTPC: File transfer started with the signal light turned on.

FTPC: File transfer completed with the signal light turned off.

.226 Transfer complete.

FTP: 3304 byte(s) received in 4.889 second(s), 675.00 byte(s)/sec.

[ftp]

Table 620 Description on the fields of the debugging command

Field

Description

 

 

---> PORT

Give an FTP order, with data port numbers

 

being...

The parsed reply is

The received reply code, which is defined in

 

RFC 959.

---> RETR

FTPC: File transfer started with the signal light turned on.

FTPC: File transfer completed with the signal light turned off.

Download the file

File transfer starts, and the signal light is turned on.

File transfer is completed, and the signal light is turned off.

delete

Syntax delete remotefile

View FTP client view

Parameter remotefile: File name.

Page 2376
Image 2376
3Com MSR 30 manual View FTP client view Parameter remotefile File name, Description on the fields of the debugging command