Initiating a managed file transfer
Initiate a File Transfer.
- Confirm that both of your agents are in Active State/Ready State. Run the following
command:
fteListAgents -p <configurationOptions>configurationOptions- by convention this is the name of a coordination queue manager. - When both of your agents are in Active State/Ready State, you can initiate a transfer by
running the following commands:
- Open terminal 1 where the source agent was created and run the following command:
fteCreateTransfer -rt -1 -sa <sourceAgentName> -sm <SourceAgentQueueManagerName> -da <destinationAgentName> -dm <destinationAgentQueueManagerName> -de overwrite -df <destinationFileLocation> <sourceFileLocation>\destinationFileLocation- name of a destination file for the file transfer. You must specify a valid file name on the system where the destination agent is running.sourceFileLocation- name of a source file for the file transfer. You must specify a valid file name on the system where the source agent is running.
- for Windows:
fteCreateTransfer -rt -1 -sa SRC_AGENT -sm QM_COORD -da DEST_AGENT -dm QM_COORD -de overwrite -df "C:\Users\Administrator\Desktop\destination\destFile.txt" "C:\Users\Administrator\Desktop\source\srcFile.txt" - for Linux®:
fteCreateTransfer -rt -1 -sa SRC_AGENT -sm QM_COORD -da DEST_AGENT -dm QM_COORD -de overwrite -df "/home/document/destinationfolder/destFile.txt" "/home/document/dourcefolder/srcFile.txt"

Note: You might see a message 'No acknowledgement to command from agent within timeout'. This message is not an error, this message means that transfer command has been submitted to command queue manager but no acknowledgement was received within a default time period. This might occur due to possible delay in receiving the acknowledgement from the coordination queue manager. - Open terminal 1 where the source agent was created and run the following command:
- Your file transfer is now initiated and is completed depending on the file size. After the
transfer is complete your file would now be present in the
<Destination File Location>.
You have configured IBM MQ Managed File transfer and have successfully used it to transfer a file.