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 uid:zremote_user pwd:zremote_password cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows uid:wremote_domain\\wremote_userid pwd:wremote_password
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
default 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 log off before the
cfrecv command is completed:
nohup cfrecv lf:/home/usr/file rf:”c:\temp\test.txt” n:windows uid:wremote_domain\\wremote_userid pwd:wremote_password
- Add the 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 uid:wremote_domain\\wremote_userid pwd:wremote_password > /tmp/file 2>&1
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.