Multitech MultiConnect Adapter Uživatelská příručka Strana 124

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 154
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 123
Chapter 12 – FTP Client
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 124
Scenario 7 – 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 a few authentication details: IP address of the device
and a valid login name.
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 the user is a valid user, the host device is prompted
to enter Password as shown here:
Password: *** <CR>
If successfully logged in, the IP module 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 '-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>
set ftp directory <directory-name>
Command
ftp -l [-d <directory>] [–p] [-m] <ip-address/host-name>
Result Response
OK: FTP session closed
Scenario 8 – Listing Directory Contents
This scenario describes how to list the contents of the directory specified in the command line:
With Automatic Authentication enabled by specifying a few authentication details: IP address of the device
and a valid login name.
Data connection in ACTIVE mode.
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 default directory name.
Description
The IP module 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: *** <CR>
If successfully logged in, the IP module 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 '-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>
Command
ftp -l [-d <directory>] [–p] [-m] <ip-address/host-name>
Result Response
OK: FTP session closed
Zobrazit stránku 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 153 154

Komentáře k této Příručce

Žádné komentáře