Multitech MultiConnect Adapter Guía de usuario Pagina 133

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 154
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 132
Chapter 12 – FTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 133
Scenario 17 – Appending to a File in the FTP
Server
With Automatic Authentication enabled by specifying all authentication details: IP address of the device, valid
login name, valid password, and valid account password.
Data connection in ACTIVE mode.
User can specify the file name and file size in the command line using the -n and -s options respectively.
Command line parameters are given higher preference and hence this overrides the configuration for default
file name and size
ftp -a -n <file-name> <ip-address/hostname> OR
ftp -a -s <filesize> <ip-address/hostname> OR
ftp -a -n <file-name> -s <filesize> <ip-address/hostname
Notes:
1. If either filename or filesize are not configured, IP module prompts for that parameter.
2. User can write to a specific directory in the remote host by giving the pathname in the <file-name>
parameter in the command line.
Description
The IP module 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 for data as shown here:
Connected
Enter data. Enter Ctrl+CDZ with 3 seconds delay to abort session
------ File Transfer ----
To abort FTP session: Hold down the Ctrl key and type letters CDZ all in row with no spaces.
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.
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
set ftp machine <ip-address/host-name> login <user-name> password <passwd> account
<passwd>
Command
ftp -a [-d <directory>] [-n <filename>] [-s <filesize>] [-p] [-m] <ip-address/host-name>
Result Response
OK: FTP session closed
Vista de pagina 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 153 154

Comentarios a estos manuales

Sin comentarios