This article explains how to bridge MFT network to the external file transfer server like ftp. Using this, files can be transferred to or from ftp server outside MFT network.
This is done using Protocol Bridge Agent(PBA). Pair it it standard agent and you are ready to transfer files to or from the ftp server.

To enable ftp server on a linux machine , follow the link

https://www.linux.com/blog/install-and-configure-ftp-server-redhatcentos-linux

Use the command fteCreateBridgeAgent to create the protocol bridge agent.

fteCreateBridgeAgent -agentName BridgeAgent_clamdmc -agentQMgr MFTDEMO -bt ftp -bh clamdmc.in.ibm.com -bm UNIX -btz Europe/London -bfe UTF-8 -bsl en_US

This creates the protocol bridge agent along with two files . These files contain configuration and access information.
1) ProtocolBridgeProperties.xml
2) ProtocolBridgeCredentials.xml

ProtocolBridgeProperties.xml

ProtocolBridgeProperties.xml gets created in the path c:\ProgramData\IBM\MQ\mqft\config\\agents\ and contains information about the ftp server which was provided with the command

for ex : for the above command the entry in the properties file would be
< tns:defaultServer name=”clamdmc.in.ibm.com” />
   < tns:ftpServer name=”clamdmc.in.ibm.com” host=”clamdmc.in.ibm.com” platform=”UNIX”
  timeZone=”Europe/London” locale=”en_US” fileEncoding=”UTF-8″
  listFormat=”unix” limitedWrite=”false” />

ProtocolBridgeCredentials.xml

ProtocolBridgeCredentials.xml is an important file as this speciifes the userid used to access the ftp server. This file will be present in the user(the logged in user) home directory

< ?xml version=”1.0″ encoding=”UTF-8″?>
<tns:credentials xmlns:tns=”http://wmqfte.ibm.com/ProtocolBridgeCredentials” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”   xsi:schemaLocation=”http://wmqfte.ibm.com/ProtocolBridgeCredentials ProtocolBridgeCredentials.xsd “>
     <tns:agent name=”BRIDGEAGENT_CLAMDMC”>
        <tns:server name=”clamdmc.in.ibm.com”>
           <tns:user name=”abcded” serverUserId=”ftpuser” serverPassword=”#######”>
           </tns:user>
        </tns:server>
     </tns:agent>
</tns:credentials>

agent name in this file should match the protocal bridge agent name used while creating the agent with fteCreateBridgeAgent command.
server name is the ftp server name .
user name is the user who is executing the command
serverUserId is the user id on the ftp server.
serverPassword is the password for the ftp user.

If you have a standard agent , then you can use fteCreateTransfer command , mention the protocol bridge agent as source or destination depending on whether you want to transfer to or from the ftp server.

As in
fteCreateTransfer -rt -1 -sa AGENT.CLRHOUSE -sm MFTDEMO -da BRIDGEAGENT_CLAMDMC -dm MFTDEMO -de overwrite -df “clamdmc.in.ibm.com:\tmp\FROMWindows\newfile.txt” “C:\temp\file1.txt”

In this Protocal bridgeagent is specified as the destination agent .. so files are transferred to ftp server.

Where can I get more information?

The IBM Knowledge Center contains detailed information

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.wmqfte.doc/protocol_bridge.htm

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.wmqfte.doc/create_bridge_agent_cmd.htm

Join The Discussion

Your email address will not be published.