Creating an IBM MQ File Transfer structure
You can configure a Managed File Transfer structure, based on a single agent connected to a queue manager on the same machine.
About this task
The MFT configuration is stored in a file structure under the IBM® MQ DataPath, on the machine that the agent will be located.
SAMPLECOORD
(with security disabled), and a single MFT
agent named SAMPLEAGENT:
+--- config
+--- SAMPLECOORD
+--- command.properties
+--- coordination.properties
+--- SAMPLECOORD.mqsc
+--- agents
+--- SAMPLEAGENT
+--- agent.properties
+--- SAMPLEAGENT_create.mqsc
+--- SAMPLEAGENT_delete.mqsc
+---logs
+--- SAMPLECOORD
+--- agents
+--- SAMPLEAGENT
+--- logsThis
example assumes that queue manager security has been disabled. The following commands, run in
runmqsc, will disable security after the queue manager is restarted:
runmqsc queue manager
alter qmgr CONNAUTH(NONE);
alter qmgr CHLAUTH(DISABLED);
end;SAMPLECOORD:
<tns:mqmftCredentials xmlns:tns="http://wmqfte.ibm.com/MQMFTCredentials"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://wmqfte.ibm.com/MQMFTCredentials MQMFTCredentials.xsd">
<tns:qmgr mqPassword="MyPassword" MyUserId="fteuser" name="SAMPELCOORD"/>
</tns:mqmftCredentials>For more information, see MFT and IBM MQ connection authentication.
- To locate your MFT configuration directory, use the fteDisplayVersion -v command.
- For z/OS® users, the MQMFTCredential.xml file can be located as a member in a partitioned data set with variable record format (RECFM=V), or undefined record format (RECFM=U)..
- For configuration with security enabled, add the following parameter
to the steps below to associate the credentials with the relevant
queue manager:
-credentialsFile full credential file path. - The clear text password in the MQMFTCredential.xml can
be obfuscated using the following command:
fteObfuscate -credentialsFile full file path to MQMFTCredentials.xml
Procedure
Results
A basic MFT infrastructure is ready to use, and you can now use the fteCreateTransfer command to request a transfer. Alternatively if the IBM MQ Explorer is available, use the MFT plug-ins to create and monitor transfers.
More agents can be added to the configuration by repeating the Step 3: Create the agent. If the TCP client connection is used, these can be on different machines. For different machines the fteSetupCoordination and fteSetupCommands commands must be repeated for each machine, however the mqsc scripts would not need to be run.
More complex configurations can have separate queue managers for coordination and each agent. In these cases the various queue managers will need to be connected together.