Multitech MultiConnect Adapter Betriebsanweisung Seite 123

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 154
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 122
Chapter 12 – FTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 123
Scenario 5 – Listing Directory Contents
This scenario describes how to list the contents of the specified directory in the default configuration of 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.
If an entry for the default directory name does exist in the configuration, the user is not prompted for the
directory name. The contents of the configured directory are automatically listed. (<directory-name> may be
the path name with respect to the ftp root).
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 as
follows:
Connected
The contents of the specified 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.
If –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 directory again. In this
case, the directory entered for the previous transaction will not be considered.
Note: If the '-p' option 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>
set ftp directory <directory-name>
Command
ftp -l [-d <directory>] [–p] <ip-address/host-name>
Result Response
OK: FTP session closed
Scenario 6 – Listing Directory Contents
This scenario describes how to list the contents of the specified directory specified in the command line:
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.
The user can specify the directory name in the command line using the –d option. Command line parameters
are given higher preference and, hence, this overrides the configuration for the default directory name.
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 as
follows:
Connected
The contents of the specified 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.
If –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 directory again. In this
case, the directory entered for the previous transaction will not be considered.
Note: If the '-p' option 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 -l [-d <directory>] [–p] <ip-address/host-name>
Result Response
OK: FTP session closed
Seitenansicht 122
1 2 ... 118 119 120 121 122 123 124 125 126 127 128 ... 153 154

Kommentare zu diesen Handbüchern

Keine Kommentare