This section describes the uxstr FTP GET command used to retrieve files from a FTP server.
This command will retrieve one or more files from an FTP server. Its syntax is as follows:
uxstr FTP GET PARTNER=hostname [ORIGIN_FILENAME=filename] [ORIGIN_PATHNAME=path] [TARGET_FILENAME=filename] [TARGET_PATHNAME=path] [LOGON=username] [PASSWORD=password] [MODE=ASCII|BINARY] [ACTION=REPLACE|ABORT|NONE] [CRLF|NOCRLF] [DELETE|NODELETE] [NEWER|NONEWER] [RECURSIVE|NORECURSIVE] [BUFFER_SIZE=nn] [RETRY=n] [UMASK=nnn]
Description of Items
PARTNER=
Physical name or IP address of the target machine.
Format: 255 alphanumeric characters.
ORIGIN_FILENAME=
(Optional) Name of the remote file to be retrieved.
Format: 256 alphanumeric characters.
Default: all files in the directory.
ORIGIN_PATHNAME=
(Optional) Remote directory.
Format: 256 alphanumeric characters. * forbidden. Note that paths must be given like FTP paths, meaning that a path like "C:\Temp\Transfer" should be written: "C:/Temp/Transfer".
Default: the FTP connection user’s home directory.
TARGET_FILENAME=
(Optional) Local file name.
Format: 256 alphanumeric characters.
Default : Unchanged.
TARGET_PATHNAME=
(Optional) Local file reception directory.
Format: 256 alphanumeric characters.* forbidden.
Default: the home directory of the Uproc submission user account.
LOGON=
(Optional) FTP connection user.
Format: 32 alphanumeric characters.
Default: anonymous
PASSWORD=
(Optional) FTP connection user password. Passwords are invisible in the GUI.
Format: 32 alphanumeric characters.
MODE=
(Optional) Type of transfer (ASCII or BINARY)
Default: ASCII
ACTION=
(Optional) Behavior if the target file exists:
Default: ABORT
CRLF | NOCRLF
(Optional) CR characters conversion. Not available for FTP_PUT.
Default: NOCRLF
DELETE | NODELETE
(Optional) Origin file deletion
Default: NODELETE:
NEWER | NONEWER
(Optional) Check on the file date
Default: NONEWER
Warning! This option is not supported by SFTP by default. To see if SFTP has been configured, see the node setting U_FT_SFTP
RECURSIVE | NORECURSIVE
(Optional) Transferred files
Default: NORECURSIVE.
The RECURSIVE option uses the FTP LIST command internally to get a list of files and directories on the remote server. The expected server answer must be formatted so each line starts with the file permissions in UNIX format. Since this answer varies from a server to another, the feature will not work if the answer has a different format. Should this happen, a fail-over option is available: it tests each single file on the specified remote server location with a FTP CWD command to check the existence of a directory. The fail-over option is less performing but it can be enabled with the U_FT_GET_DIR_FAILOVER node setting in the "Node Settings – FTP Settings" category.
When retrieving a directory in RECURSIVE mode using an FTP_GET Uproc, the Append mode is not supported, the Abort action is used by default.
BUFFER_SIZE=
(Optional) Sets the communications buffer size in blocks of 512 bytes.
Format: integer/2n between 1 and 64.
Default: FTP default
RETRY=
(Optional) Number of retries in case of failure.
Format: one digit.
UMASK=
(Optional) Mask applied to local file permissions. If UMASK is not set or set to 000, files are downloaded with 666 permissions by default (for a root user) or 640 (for a non-root user). Otherwise, file permissions are obtained by subtracting UMASK from the default value (666 or 640).
Format: 3 numerical characters.
Example
Retrieves all files from the C:\tmp directory on the Win host in binary mode by applying a 700 mask and overwrites existing files:
uxstr FTP GET PARTNER=”WinXP” ORIGIN_PATHNAME=”C:/tmp/” CRLF MODE=BINARY UMASK=700 ACTION=CANCEL RETRY=3
As of version 6.10.41, documentation new updates are posted on the Broadcom Techdocs Portal.
Look for Dollar Universe.