FTP partner setup

<< Click to Display Table of Contents >>

Navigation:  Data transfer > FTP >

FTP partner setup

To create an FTP partner, proceed as follows:

1 Open the partner management by selecting the Partner entry in  the navigation tree and then click the Add a new partner button .

FTP_Partner_Setup_001

2 Click the Create new FTP partner button. This opens the partner settings for a new FTP partner.

FTP_Partner_Setup_002

3 First, customize the partner name and the inbound directory as well as the outbound directory.

FTP_Partner_Setup_003

The incoming directory stores files "received" from this partner, i.e. files that have either been downloaded from the partner's FTP server via a client connection, or that the partner has uploaded to !MC5 via the integrated FTP server. A partner connecting to !MC5 in FTP server mode does not see the contents of the local incoming directory. !MC5 ensures that no existing file is overwritten when uploading files via the FTP server. If a file with the same name already exists, then the new file is renamed (a consecutive counter is appended).

In the outgoing directory, files are stored that are to be sent to the partner or that the partner can "fetch" via the integrated FTP server. The partner gets all files ready for him, but no subdirectories. Also he can not change the directory. As soon as a file has been downloaded (successfully), it is moved to the Backup subfolder and is no longer visible to the selected partner.

Customize base paths

By default !MC5 uses the base paths C:\Odette\In and C:\Odette\Out for the input and output directories of new partners. If other base paths are used, they can be customized in the General Settings of !MC5.

4 Select the mode for this partner.

FTP_Partner_Setup_004

Client only means that the partner can only be connected to via FTP client. The partner cannot actively connect to !MC5. To send or fetch files, !MC5 has to initiate the connection to the partner.

Server only means that the partner must actively connect to !MC5 in order to send files to !MC5 or to fetch files from !MC5. Active, outgoing connections to the partner are not possible.

Client (send only) and Server (receive only ) means that in order to send files !MC5 actively connects to the partner, but no files can be "fetched". To receive files, the partner must actively connect to the integrated FTP server of !MC5 and upload the corresponding files.

Currently only the Module FTP Client is available and therefore only the Client only mode .

5 Now switch to the client and first enter the host name or IP address of the FTP server you want to connect to. If a  port different from the value 21 is used (21 is the default port for FTP), then adjust the value under Port accordingly.

FTP_Partner_Setup_005

6 Now select the desired mode under FTP mode. The mode affects how additional connections are established for data transfer. You can choose between Active and Passive.  In Active mode, the client (i.e. !MC5) opens a port on your system to which the server actively connects and then sends data. This only works if incoming connections from the server to the system !MC5 is running on are possible. In Passive mode, the connection for data transmission is established in reverse: the client "asks" the server for a connection to transmit data. The server then opens a port for this purpose and informs the client about it. The client then establishes a connection to this port. Appropriate firewall settings may also have to be made for this.

FTP_Partner_Setup_007

7 If you want to use encrypted connections for your FTP transfers, now select the desired encryption method. In most cases Explicit TLS is used. Then add a suitable certificate. If necessary, enable the Disable domain checking for FTPS connection option. It is advisable to use encryption whenever the security of the transmission is not guaranteed, such as with Internet connections.

FTP_Partner_Setup_012

8 Enter your username and password for logging in to the partner's FTP server in the corresponding fields. Currently, the only login method available is user name and password.

FTP_Partner_Setup_006

9 You can now test (again) if connection and login to the FTP server work byclickingtheTest connection button. This also checks whether data transfer from the server is possible. If everything works, you can continue with the settings for uploading and downloading files.

10 If files are to be downloaded via the client connection, then first check the Enable downloading box. Otherwise, skip to step 14.

FTP_Partner_Setup_008

11 In the Remote source directory field, specify the directory on the FTP server where you want to search for new files. This should have been communicated to you by your partner. You can either enter the directory directly or select it via the magnifying glass icon in the input field. The prerequisite for this is that the connection to and log on to the FTP server are working.

12 In the Remote file mask field, enter  a file mask to be used to search for files to download in the search directory. With * all files from the directory will be downloaded.

13 Next, specify what to do with successfully downloaded files on the server. Either nothing can be done with it, the file can be deleted or it can be moved to another directory on the server. What to choose here is to be agreed with the partner. For example, it may be necessary to delete successfully downloaded files from the server so that they are not downloaded again on each subsequent connection. A "normal" FTP server does not react to the fact that a file has been downloaded by a user and leaves it unchanged in the corresponding directory. So on the next connection the file would be found and downloaded again.

FTP_Partner_Setup_009

14 If files are to be uploaded to the server via the client connection, then check the Enable uploading option .

FTP_Partner_Setup_010

15 In the Remote target directory field, specify the directory on the server to which the files are to be uploaded. Alternatively, you can click on the magnifying glass icon in the input field for the target directory to search for the corresponding directory directly on the server. The prerequisite for this is that the connection to and log on to the FTP server are working.

16 Normally, files are uploaded to the server with the file name they have locally. If your partner has the default that files have a different name during upload and should only be renamed to the "correct" name after successful upload, then select the option custom under File name during upload and specify the name to be used during upload. A * in the name will be replaced by the original name. For example, if you specify *.temp as the file name for the upload and send the file test.edi to the partner, it will be uploaded with the name test.edi.temp and renamed to test.edi after successful upload on the server .

17 If a file with the same name of a file to be uploaded already exists in the target directory, the corresponding upload will be skipped. Under If a file exists... you can change this behavior by selectingthe Overwrite existing file option.

18 If processing of received data or data to be sent is to be done via the EDI module, adjust the settings under EDI accordingly (see Data processing / EDI / Set up partner).

19 Save the settings  by clicking OK.

20 The partner is now set up and ready to use.

FTP_Partner_Setup_011