Creating the initial configuration
You can configure a Managed File Transfer Agent to connect to an existing IBM® MQ configuration.
Before you begin
About this task
Create the environment to be able to use commands for setting up the connectivity with the queue manager that is running on the IBM MQ server.
Procedure
-
Create the environment for the Redistributable Managed File Transfer Agent.
When you run the fteCreateEnvironment command, the MFT data directory with the configuration information for MFT Agents is created. Ensure that you are in the bin directory that was created when you extracted the downloaded MFT Agent redistributable component. Run the following command:
-
fteCreateEnvironment.cmd -d datapath location
This command takes one optional parameter:. ./fteCreateEnvironment -d datapath location
- -d
- Location for data path where the MFT
configuration is created, stored, and maintained. If the user runs the
fteCreateEnvironment without specifying the data location, the directory
mftdata is created in the location where the Redistributable Managed File Transfer Agent is extracted.Note: If the redistributable agent is going to run as a Windows service, then the BFG_DATA environment variable needs to be set in the system environment for the service to work.
BFG_DATA=Datapath location
Before creating, starting, and stopping an agent, or any other commands, you must ensure that the BFG_DATA variable is set to the correct data path location. -
-
Set up the IBM MQ connectivity.
-
Set up the coordination queue manager by using the fteSetupCoordination
command.
The fteSetupCoordination command creates the set that is up required for coordination queue managers and the directories that are needed for further configuration. Redistributable Managed File Transfer Agent works in client mode so you must provide extra parameters with this command to avoid an error, as bindings mode is not supported.
For more details and steps for using the fteSetupCoordination command, see fteSetupCoordination. For information on how to configure the coordination queue manager, see Configuring the coordination queue manager for MFT.fteSetupCoordination -coordinationQMgr PRMFTDEMO2 -coordinationQMgrHost 9.121.59.233 -coordinationQMgrPort 3002 -coordinationQMgrChannel SYSTEM.DEF.SVRCONN
-
Create and set up the command queue manager:
For more details and steps for using the fteSetupCommands command, see fteSetupCommands: create the MFT command.properties file.fteSetupCommands -p PRMFTDEMO2 -connectionQMgrHost 9.121.59.233 -connectionQMgrPort 3002 -connectionQMgrChannel SYSTEM.DEF.SVRCONN -connectionQMgr PRMFTDEMO2 -f
-
Set up the coordination queue manager by using the fteSetupCoordination
command.
-
Create MFT Agent definition for an end
point.
For more information on using the fteCreateAgent command to configure an agent and the agent queue manager, see fteCreateAgent (create an MFT agent).fteCreateAgent -p PRMFTDEMO2 -agentQMgrHost 9.121.59.233 -agentQMgrPort 3002 -agentQMgrChannel SYSTEM.DEF.SVRCONN -agentName AGENT.TRI.BANK -agentQMgr PRMFTDEMO2 -f
-
Start the agent and you are ready to transfer files.
You can verify the status of the agent by running the following command:fteStartAgent -p PRMFTDEMO2 AGENT.TRI.BANK
For more details on using the fteListAgents command, see fteListAgents: list the MFT agents for a coordination queue manager.fteListAgents