Scenario 3 - listing directory contents, Scenario 4 - listing directory contents – Multi-Tech Systems MTS2SA-T User Manual
Page 163
Chapter 15 – FTP Client
Multi-Tech Systems, Inc. MultiConnect Serial-to-Serial Adapter User Guide (S000354A)
163
Scenario 3 - Listing Directory Contents
This scenario describes how to list the contents of the specified directory of the FTP server
a) With Automatic Authentication enabled by specifying all authentication details: IP address of the
device, valid login name, valid password, and valid account password.
b) Data connection in ACTIVE mode.
Description
The MultiConnect IP establishes a control connection, automatically checks for the
configured values, and logs into the FTP server. If successfully logged in, it sends
a message and prompts the host device to enter the remote directory, the contents
of which are then displayed as follows:
Connected
Remote directory:
If the Host simply enters
of the present working directory are listed. If the complete path of the directory is
given, then the contents of that directory are listed.
By default the data connection is in active mode. The client sets the data transfer
mode as ‘ASCII’ to receive the list of contents of the directory.
Note:
If the '-p' option is specified in the command, the data connection will be in
passive mode
Configuration
set FTP device
password
Command
ftp -l [-p] ip-address
Result Response
OK: FTP session closed
Scenario 4 - Listing Directory Contents
This scenario describes how to list the contents of the specified directory of the FTP server
a) With Automatic Authentication enabled by specifying a few authentication details: IP address of the
device and a valid login name.
b) Data connection in ACTIVE mode.
Description
The MultiConnect IP establishes a control connection, automatically checks for
the configured values, and logs into the FTP server. If the user is a valid user, the
host device is prompted to enter Password as shown here:
Password: ***
If successfully logged in, the MultiConnect IP sends a message and prompts the
host device to enter the remote directory, the contents of which are then displayed
as follows:
Connected
Remote directory:
If the Host simply enters
of the present working directory are listed. If the complete path of the directory is
given, then the contents of that directory are listed.
By default the data connection is in active mode. The client sets the data transfer
mode as ‘ASCII’ to receive the list of contents of the directory.
Note:
If the '-p' option is specified in the command, the data connection will be in
passive mode
Configuration
set ftp machine
Command
ftp -l [-p] ip-address
Result Response
OK: FTP session closed