Scenario 7 - sending a file to the ftp server, Scenario 8 - receiving a file from the ftp server – Multi-Tech Systems MTS2SA-T User Manual
Page 165
Chapter 15 – FTP Client
Multi-Tech Systems, Inc. MultiConnect Serial-to-Serial Adapter User Guide (S000354A)
165
Scenario 7 - Sending a File to the FTP Server
This scenario describes how to send a file to the FTP server:
a) With Automatic Authentication enabled by specifying a few authentication details: IP address of
the device and valid login name
.
b) Data connection in ACTIVE mode.
Description
The MultiConnect IP establishes the control connection to the specified FTP
server, automatically checks for the configured values, and logs into the FTP
server. If the user is valid, the MultiConnect IP prompts the host device to enter
the Password as below:
Password: ****
If successfully logged in, the MultiConnect IP sends a message and prompts the
host device to enter Filename and Filesize and sends a message as shown here:
Connected
Filename: filename
Filesize: filesize
Enter data. To terminate press Ctrl + C with 3 seconds delay.
------ File Transfer ----
When the specified filesize is reached, the FTP session responds with the OK
message.
By default the data connection is in active mode. The client sets the data transfer
mode as ‘BINARY/IMAGE’ during the file transfer.
Note:
If the '-p' option is specified in the command, the data connection will be in
passive mode
Configuration
set ftp machine
Command
ftp -t [-p] ip-address
Result Response
OK: FTP session closed
Scenario 8 - Receiving a File from the FTP Server
This scenario describes the receiving of a file from the FTP server:
a) Without Automatic Authentication (default).
b) Data connection in ACTIVE mode.
Description
The MultiConnect IP 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
Password: ****
If successfully logged in, the MultiConnect IP sends a message and prompts the
host device to enter Filename and sends a message as shown here:
Connected
Filename: filename
size =
Press
------ 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.
Note: If the '-p' option is specified in the command, the data connection will be in
passive mode
Configuration
None
Command
ftp -r [-p] ip-address
Result Response
OK: FTP session closed