Transfer a file from a Connect:Direct node

We can transfer a file from a Connect:Direct node to a Managed File Transfer Agent by using the Connect:Direct bridge. We can specify a Connect:Direct node as the source of the transfer by specifying the Connect:Direct bridge agent as the source agent and specifying the source specification in the form connect_direct_node_name:file_path.


Before starting

Before transferring a file, we must configure the Connect:Direct bridge, which is a component of Managed File Transfer. See Configure the Connect:Direct bridge.


About this task

In this example, the Connect:Direct bridge agent is called CD_BRIDGE. The destination agent is called FTE_AGENT and can be any version of Managed File Transfer. The source Connect:Direct node is called CD_NODE1. The file to be transferred is located at the file path /home/brian/in.file on the system where CD_NODE1 is located. The file is transferred to the file path /files/out.file on the system where FTE_AGENT is running.


Procedure

Use the fteCreateTransfer command with the value for the source specification in the form connect_direct_node_name:file_path and the value of the -sa parameter specified as the name of the Connect:Direct bridge agent. Note: The Connect:Direct node specified by connect_direct_node_name is the node that we want the file to be transferred from, not the Connect:Direct node that operates as part of the Connect:Direct bridge. For example:
fteCreateTransfer -sa CD_BRIDGE -da FTE_AGENT 
                  -df /files/out.file CD_NODE1:/home/brian/in.file
For more information, see fteCreateTransfer: start a new file transfer.


Results

The Connect:Direct bridge agent CD_BRIDGE requests the file from the Connect:Direct node CD_NODE1. The Connect:Direct node sends the file to the Connect:Direct bridge. While the file is being transferred from the Connect:Direct node, the Connect:Direct bridge stores the file temporarily in the location defined by the cdTmpDir agent property. When the file has finished transferring from the Connect:Direct node to the Connect:Direct bridge, the Connect:Direct bridge then sends the file to the destination agent FTE_AGENT and deletes the file from the temporary location. Parent topic: The Connect:Direct bridge


Related concepts


Related information