
Chapter 12 – FTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 120
Prerequisites
The host/serial device must ensure the validity of the following details before using FTP client:
1. If the host device wants to use domain names instead of an IP address for a remote server, then the
following parameters must be set:
• Default Gateway should be configured to a valid IP address.
# set ip def-gway <ip-address>
• DNS should be enabled.
# set ip dns <enable>
• DNS address should be configured to a valid ip-address.
# set ip pri-dns <ip-address>
2. If you want the host device to use automatic authentication to a particular FTP server, then set the
following parameters:
• Mandatory: The device name should be configured to a valid the IP address/host-name. The login
name should be set to a valid user name.
#set ftp machine <ip-address/host-name/default> login <user-name>
• Optional: The password can be optionally configured as the password corresponding to the user
name.
# set ftp machine <ip-address/host-name/default>
login <user-name> password <passwd>
• Optional: The account password can be optionally configured as the password corresponding to
the user name. This is an extra authentication that can be used when an FTP server asks for an
account password.
# set ftp machine <ip-address/host-name/default>
login <user-name> password <passwd> account <passwd>
• Optional: The remote directory name can be optionally configured which will be used when “list” or
“send” or “receive” commands are issued to work on the configured directory.
# set ftp directory <directory-name>
• Optional: The remote file name can be optionally configured which will be used when “send” or
“receive” commands are issued to use the configured filename.
# set ftp filename <file-name>
• Optional: The file size can be optionally configured which indicates the number of bytes to be
transferred for the specified file when “send” command is issued to transmit the file.
# set ftp filesize <file-size>
ERROR Messages
An ERROR message displays if any of the above details are not configured or are not valid.
How to Delete a Previous Configuration
The previous configuration can be deleted by specifying the following commands:
"set ftp machine" without any arguments.
"set ftp directory “” " with NULL argument.
"set ftp filename “” " with NULL argument.
"set ftp filesize “” " with NULL argument.
Notes:
• If a value is configured as the default, the FTP client tries to authenticate for every FTP server.
•
If the above mandatory fields are not configured or if the configured device and the server specified in
the command line are different, the IP module prompts the user to enter login name and password.
• If the above optional fields (directory, filename or filesize) are not configured or if the details are not
specified in the command line, the IP module prompts the user to enter the details respectively.
Comentarios a estos manuales