
Chapter 12 – FTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 135
Scenario 19 – Receiving a File from the FTP
Server
This scenario describes the receiving of a file from the FTP server:
• Without Automatic Authentication (default).
• Data connection in ACTIVE mode.
• When the user does not specify the file name in the command line with the -n option, and an entry for the
default file name does not exist in the configuration, the user is prompted for the file name.
Description
The IP module establishes a control connection to the specified FTP server and prompts the
host device to enter the login name and password as shown here:
Name (ip-address:admin): mtss <CR>
Password: **** <CR>
If successfully logged in, the IP module sends a message and prompts the host device to
enter Filename and sends a message as shown here:
Connected
Filename: filename <CR>
size = <filesize from server>
Press <CR> to receive file
<CR>
------ File Transfer ----
When the complete file is received, the FTP session responds with OK.
By default the data connection is in active mode. The client sets the data transfer mode as
‘BINARY/IMAGE’ during the file transfer.
If the –m option is specified, it prompts the user for the next transaction or to quit. If the user
selects to do another transaction, then he is prompted to enter the Filename again. In this
case, the filename entered for the previous transaction will not be considered. The user
should specify the whole path. The directory specified using “Set ftp directory xxx” or the
filename specified using “set ftp filename xxx” or filesize specified using “set ftp filesize xxx”
will not be considered.
Note: If '-p' is specified in the command, the data connection will be in passive mode.
Configuration
None
Command
ftp -r [-d <directory>] [-n <filename>] [-p] [-m] <ip-address/host-name>
Result Response
OK: FTP session closed
Kommentare zu diesen Handbüchern