Examples: Transfer Using Nodes
After you define the required parameters for file transfers, such as the remote IP address and port number, in the node definition, you can only provide the node name of the remote system with which you want to perform transfers.
In the following example, two nodes called
zos
and windows
are defined. By using nodes, the first two examples given in
Examples: Transfers Using Command Line can be simplified to the following:
cfsend lf:/home/usr/file rf:dataset.name n:zos zOS:y
cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows
Note: The UID and PWD parameters that define the credentials were left out of the cfsend and cfrecv examples. While these parameters are supported, we suggest creating a user profile to define the credentials.
Note: If transfer parameters are provided on the command line, they override equivalent parameters provided by the node definition. Exception to this rule occurs only when
Compression or
Encryption is set to
NEVER
, or when
Security is configured to follow the FIPS140 standards as specified in the
config.txt file. In these cases, the command line cannot override any of these options.
- Place an ampersand (&) at the end of the command to run the command in the background:
cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows uid:wremote_domain\\wremote_userid pwd:wremote_password &
- Prefix the command with
nohup
to continue to execute the command if the user logs off before the cfrecv command is completed:nohup cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows
- Add the redirect file path in the command to send the screen output to a file. In the following example, the output writes to
/tmp/file:
cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows > /tmp/file 2>&1