2376
C
158: FTP C
HAPTER
Examples
delete
Syntax
View
Parameter
C
C
LIENT
ONFIGURATION
OMMANDS
# 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
---> PORT
The parsed reply is
---> RETR
FTPC: File transfer started with the signal light
turned on.
FTPC: File transfer completed with the signal
light turned off.
delete remotefile
FTP client view
remotefile: File name.
Description
Give an FTP order, with data port numbers
being...
The received reply code, which is defined in
RFC 959.
Download the file
File transfer starts, and the signal light is
turned on.
File transfer is completed, and the signal light
is turned off.