Each definition can transfer one or more files, or an entire directory with the option of including all of its sub-directories.įile Transfer jobs are integrated with other Control-M jobs into a single scheduling environment.Ī File Transfer job enables you to do the following: Now you know how to configure MFT Server to monitor a remote SFTP server for newly added files.The File Transfer job enables you to watch and transfer files from a local host to a remote host, a remote host to a local host, a remote host to another remote host, or between Cloud storage buckets and containers.Ī File Transfer job can contain up to five different file transfer definitions, which are executed sequentially. Of course, you would have to replace C:\Downloads from TP1-SFTP\ with your own local directory. Because we just want to retain the file's original filename, we specify the Local File value like so: Lastly, we specify the local file into which this downloaded file will be stored. This variable contains the complete path of the file that was added into the directory of the remote SFTP server we are monitoring. Next, enter the %File% variable into the Remote File field. Click OK.Īfter that, you'll need to set the trigger action parameters.įirst, select the trading partner from the Partner drop-down list. Click the Add button.Īnd then select the Trading Partner File Download trigger action. It's now time to add the trigger action that would download the files from the SFTP server. You may replace the text enclosed by the quotation marks with the name of your directory monitor. This will tell the trigger to listen to any file additions to any monitored directory.īecause we want this trigger to respond only to those directory monitor file added events that originate from the 'Dirmon for TP1-SFTP' directory monitor (which is the directory monitor that monitors our remote SFTP server), we specify that in the trigger conditions box like so: Give the trigger a Name and then select the Directory Monitor File Added event type from the drop-down list. Go to the Triggers module and then click the button. Create a trigger to download files from your SFTP trading partner We now proceed to create the trigger that would download files from your SFTP trading partner. You should then see your newly created directory monitor on the screen. Lastly, because I want to monitor this remote directory for newly added files, I make sure the Monitor file add setting is checked. I just entered '/' because I simply want to monitor the root folder of the user account associated with my trading partner.Īs usual, you may also configure other settings like the Monitor interval, Latency period, and so on. So, for example, you may enter something like /folder1/subfolder1 if that's the folder you want to monitor. In the Directory field, you may specify the specific relative path of the directory you want to monitor. Give the directory monitor a Name and select the trading partner in Step 1 from the Use trading partner drop-down list. Go to the Directory Monitors module and click the Add button to add a new directory monitor. Create a directory monitor to monitor your SFTP trading partner Once you have your trading partner ready, the next step would be to create a directory monitor to monitor you SFTP trading partner.
0 Comments
Leave a Reply. |