AddTransfer
The AddTransfer command action is used to add a file definition to the TIBCO MFT Command Center .
The file definition contains information about where the file is located, who can access the file, and the characteristics of the file.
To use the
AddTransfer action command, you must have UpdateTransferDefinitionRight. For more information, see
AddUserToRole.
In the following table, parameters for this command are provided in alphabetical order.
| Parameter | Description | Default | Required |
|---|---|---|---|
| AllowableProtocol (apl) | Specifies the protocol to be used for this transfer. The values supported for this parameter are as follows:
|
All | Yes |
| AllowClientTransferMode (actm) | Specifies whether to allow client transfer mode. The values supported for this parameter are as follows:
|
None | No |
| AllowDelete (adel) | Defines whether MFT allows the FTP client to issue the Delete command for a file defined by this transfer definition. | No | No |
| AllowFTPSiteCommandPassThrough (afscpt) | Specifies whether to allow FTP site command pass through. The values supported for this parameter are as follows:
|
None | No |
| AllowMakeDirectory (amkd) | Defines whether MFT allows the FTP client to create a directory within the directory structure defined by this transfer definition. | No | No |
| AllowRemoveDirectory (armd) | Defines whether MFT allows the FTP client to remove a directory within the directory structure defined by this transfer definition. | No | No |
| AllowRename (aren) | Defines whether MFT allows the FTP client to issue the Rename command for a file defined by this transfer definition. | No | No |
| AuthGroupId (gid) | Specifies the 1-to-64-character
group ID that is authorized to transfer this file.
A transfer can be authorized to a user ID or a group. See also UserId. |
None | Either UserId or AuthGroupId must be specified. |
| AvailableDate (avd) | Specifies the date this file is available for transfer. The format for this parameter is YYYY/MM/DD. The date range is 2000/01/01 to 2099/12/31. | Today's date | No |
AVMode (avmode)
|
Defines the ICAP AV Transfer mode. The valid values for this parameter are as follows: S: Streaming F: Store and Forward D: Default |
D | |
AVScanFileRegex (avsfr)
|
Defines a regex (regular expression) that defines files to be scanned when doing a transfer. | None | |
AVTransferScan (avts)
|
Defines whether this transfer definition is scanned for viruses. The valid values for this parameter are as follows:
|
D | |
| ChkptInterval (cki) | Specifies how many minutes checkpoint interval in. The max value is 59. | 5 | No |
| ChkptRestartFlag (ckf) | Specifies whether checkpoint restart is supported. The valid values are Y and N. | Yes | No |
| ClientCompressFlag (cc) | Specifies whether to use compression when transferring this file. The valid values are Y and N. | Yes | No |
| ClientFileName (cfn) | The 1-to-256-character file name/location on the client machine.
If the file name/location contains embedded blanks the entire filename should be enclosed in double quotation marks (" "). |
None | No |
| CredPassThruFlag (cpt) | Specifies whether credentials are passed from the client to the server. This capability is only used when the initiating client is FTP, SSH or Platform Server and when the initiating client enters a user ID and password. Here is how it works. The values supported for this parameter are as follows:
Note: This parameter is infrequently used and must typically be set to
N.
|
None | No |
| CRLF (crlf) | Specifies how the records are delimited. The values supported for this parameter are as follows:
|
Yes - if DataType is Text, No - for any other DataType |
No |
| DataType (dt) | Specifies the type of data being transferred. Valid data types are:
|
Binary | No |
| DefaultNodePwd (dnp) | Specifies the password to be used with
DefaultNodeUserid.
Note: Certain target nodes may have case sensitive passwords.
|
None | No |
| DefaultNodeUserId (dnu) | Specifies the 1 to 20 character user ID to be used to authenticate the file transfer.
This authentication takes place at the server specified in ServerName. |
None | No |
| DefaultWinDomain (dnt) | Specifies the Windows domain to be used with
DefaultNodeUserid and
DefaultNodePwd parameters.
Only applies for Windows based target systems. |
None | No |
| Department (dpt) | Specifies the file definition’s department. | None | No |
| Description (d) | Specifies the 1-to-256-character description of this file, this description is presented to the client user to describe the contents of the file.
The entire description must be enclosed in double quotation marks (" "). |
None | No |
| DirectoryTransfer (dir) | Specifies whether this transfer is a directory transfer or a single file transfer. The valid values are Y and N. | No | No |
| DisableFlag (dis) | Specifies whether this transfer definition should be disabled. The valid values are Y and N. | None | Yes |
| DownloadRestriction (dr) | Specifies restrict download REGEX. | None | No |
| DownloadRestrictionFlag (drf) | Specifies whether to set restrictions for download. The values supported for this parameter are as follows:
|
None | No |
| DownloadUploadFlag (duf) | Specifies the direction of the transfer. This direction is from the user perspective. The values supported for this parameter are as follows:
|
None | No |
| EmailFailureTemplate (eft) | Specifies the email template on the
server to use for a failed transfer email.
This email template must reside on the server. |
None | No |
EmailMaximumAttachmentSize (emas)
|
Specifies the maximum size of a file that can be attached to the email. |
None | |
EmailMessageTextFilePath (emtfp)
|
Specifies the path to the file which contains the email message text. | None | |
EmailRecipients (erec)
|
Specifies the list of email recipients, separated by a comma(,) or a semicolon(;). Tokens are accepted as well. | None | |
EmailSenderEmailAddress (esea)
|
Specifies a valid email address. This field must be filled in when the EmailUseClientAddress parameter is set to 'O'. |
None | |
EmailSubject (esub)
|
Specifies the email subject. | None | |
| EmailSuccessTemplate (est) | Specifies the email template on the server to use for a successful transfer email. | None | No |
EmailUseClientAddress (euca)
|
Specifies the client address used in the email. The supported values for this parameter are as follows:
|
None | |
| EncryptFlag (e) | Specifies the level of encryption to be used with this transfer. The values supported for this parameter are as follows:
|
Uses the encryption from the server definition. | No |
| ExpirationDate (epd) | Specifies the date when this transfer expires. The values supported for this parameter are as follows:
|
Never | No |
| FormPostParameters (fpp) | Specifies the form post parameters. | None | No |
| FTPAlias (fa) | Specifies the file name or directory that is displayed when an FTP client accesses this file record.
Valid length is up to 256 characters. When the file record is defined as a directory, the FTPAlias is displayed to the user as a directory. When the file record is defined as a file, the FTPAlias is displayed to the user as a file. If an FTP client accesses this file record and this parameter is not defined, the TransferID is used as the FTPAlias. |
TransferID associated with the file record | No - but strongly suggested for FTP/Secure FTP transfers |
| HTTPHeaders (httph) | Specifies the HTTP headers with header name:header value. For multiple HTTP headers, separate headers with a semicolon (;). | None | No |
| JMSEOFMessage (jmseom) | Specifies whether MFT writes an empty JMS message at the end of file. The values supported for this parameter are as follows:
|
None | No |
| JMSInputSelector (jmsis) | Specifies the selector that is used to filter JMS messages when reading from a JMS queue. | None | No |
| JMSMaxMessageSize (jmsmms) | Specifies the maximum size of any individual message written to the JMS queue. | None | No |
| JMSTypeProperty (jmstp) | Specifies the JMS type output property that is set when writing data to a JMS queue. | None | No |
| KeyFlag (kf) | Specifies the key flag. The values supported for this parameter are as follows:
|
None | No |
| LocalTranslationTable (lt) | Specifies the location of the character translation table. | None | No |
MailboxRecipients (mrec)
|
Specifies the list of recipients that are separated by commas (,) and semicolons (;). Accepts tokens as well. |
None | |
MailboxUseClientAddress (muca)
|
Specifies the use of the mailbox client address. The values supported for this parameter are as follows:
|
None | |
MailboxSenderEmailAddress (msea)
|
Specifies a valid email address. This field must be filled in when MailboxUseClientAddress is set to 'O'. |
None | |
MailboxSubject (msub)
|
Specifies the subject field of the mailbox. | None | |
MailboxMaximumAttachmentSize (mmas)
|
Specifies the maximum file size that can be attached in the mailbox. | None | |
MailboxExpirationDays (mexpd)
|
Specifies the number of days when this mailbox expires. | None | |
MailboxExpireWhenAllFilesDownloaded (mexpwfd)
|
Specifies if the mailbox attachment expires after all the files are downloaded. The valid values for this parameter are as follows:
|
None | |
MailboxMessageTextFilePath (mmtfp)
|
Specifies the path to the file which contains the mailbox message text. | None | |
| NotifyEmailTemplate (net) | Specifies the email template on the server to use to notify the user that a file is added. | None | No |
| NotifyFileAvailable (nf) | Specifies whether to send an email to the user when a file is available.
If the file being added is for a group, all the members of that group are notified. The email address used for this notification is specified during the AddUser. The valid values are Y and N. |
None | No |
OFTP2RecordFormat (oftp2rf)
|
Specifies the OFTP2 record format The values supported for this parameter are as follows:
|
Unstructured | |
OFTP2MaximumRecordSize (oftp2mrs)
|
Defines the record size (Fixed) or maximum record size (Variable) of the records in the file | None | |
OFTP2DestinationOdetteID (oftp2doid)
|
When transferring files to an OFTP2 clearinghouse, this field defines the destination Odette ID. | None | |
OFTP2VirtualFileDescription (oftp2vfd)
|
Specifies the virtual file description for the OFTP2 transfers. | None | |
| OneTimeFlag (ot) | Specifies what should happen to the file record after the transfer has completed successfully. The values supported for this parameter are as follows:
|
Yes | No |
| PGPASCII (pascii) | Specifies whether the ASCII armored format is used. The valid values are Y and N. | N | No |
| PGPCompression (pcomp) | Specifies what type of compression is used. The values supported for this parameter are as follows:
|
Default | No |
| PGPDecrypt (pde) | Specifies whether the file is decrypted when it arrives at the remote location. The valid values are Y and N. | N | No |
| PGPEncryptAlgorithm (pea) | Specifies which algorithm is used to encrypt the PGP file with. The values supported for this parameter are as follows:
|
Default | Yes |
| PGPEncypt (pen) | Specifies whether the file is encrypted when it arrives at the remote location. The valid values are Y and N. | N | No |
| PGPHashAlgorithm (phash) | Specifies which hash algorithm is used when encrypting the PGP file. The values supported for this parameter are as follows:
|
Default | Yes |
| PGPPrivateKey (pkey) | Specifies the 1 – 64 character private key. | None | No |
| PGPSign (psign) | Specifies whether the PGP file transfer is signed. The valid values are Y and N. | N | No |
| PGPVerifySignature (pver) | Specifies whether the signature of the PGP key is verified. The valid values are Y and N. | N | No |
| PGPVerifyUserSignature (puver) | Specifies whether the user’s signature in the defined file definition is verified. The valid values are Y and N. | N | No |
| PostActionData1-4 (AD1-4) | Specifies the data passed to the
PostActionType when the conditions specified in
PostActionFlag met.
Data with embedded blanks should be enclosed in double quotation marks (" "). |
None | No |
| PostActionFlag1-4 (AF1-4) | Specifies the conditions when a post processing action should occur.
The post processing action is performed at the server defined in ServerName. Used in conjunction with PostActionType and PostActionData. The values supported for this parameter are as follows:
|
None | No |
| PostActionType1-4 (at1-4) | Specifies the type of post processing action to be performed when the
PostActionFlag conditions met. The values supported for this parameter are as follows:
|
None | No |
| ProcessName (pn) | Specifies the name of a process. | None | No |
| RemoteTranslationTable (rt) | Specifies the location of the character translation table on the client machine. | None | No |
| RemoveTrailingBlanks (fo) | Used only with text type transfers. Specifies whether to remove any trailing spaces.
This option is only valid when z/OS is sending the file. The valid values are Y and N. |
None | No |
| ServerFileName (sfn) | Specified the 1-to-256-character file name/location of the server machine.
If the NodeName is *LOCAL, the ServerFileName would be located on the . If the file name/location contains embedded blanks the entire filename must be enclosed in double quotation marks (" "). |
None | No |
| ServerName (sn) | Specifies the 1-to-64-character name of the MFT Platform Server within your network.
A node is a target destination that is running MFT Platform Server that can send or receive files. The ServerName may also be specified as *LOCAL, this refers to the which does not have to be running MFT Platform Server. |
None | No |
SharePointDocumentLibraryUrl (sdlu)
|
Specifies the URL of the SharePoint Document Library. | None | |
| SSHSystemKey (sshsk) | Specifies the name of the SSH system key. | None | No |
| ToEmailAddrFailure (eaf) | Specifies the email address to be used when a transfer fails.
You must configure your email server details on the System Configuration page to use this function. |
None | No |
| ToEmailAddrSuccess (eas) | Specifies the email address to be used when a transfer is successful.
You must configure your email server details on the System Configuration page to use this function. |
None | No |
| TraceLevelFlag (tlf) | Specifies whether to use trace level. The values supported for this parameter are as follows:
|
0 | No |
| TransferType (tt) | Specifies the type of transfer. The values supported for this parameter are as follows:
|
None | No |
| TruncateFlag (tf) | Specifies whether to truncate. The values supported for this parameter are as follows:
|
None | no |
| UnixPermissions (uxp) | Specifies the Unix file permissions. Values are 000 - 777. | None | No |
| UploadRestrictionFlag (urf) | Specifies whether to set restrictions for upload. The values supported for this parameter are as follows:
|
None | No |
| UploadRestriction (ur) | Specifies restrict upload REGEX. | None | No |
UploadMaximumSize (ums)
|
Specifies maximum upload size | None | No |
| UserData (ud) | Specifies user data. | None | No |
| UserId (uid) | Specifies the 1-to-64-character
user ID to transfer this file.
A transfer can be authorized to a user ID or a group. See also AuthGroupId. |
None | Either UserId or AuthGroupId |
| ValidDays (vd) | Specifies the 7 character day of week pattern when this file can be accessed, Sunday being the first character, Monday the second, and so on. where each character can be Y or N. | YYYYYYY | No |
| ValidEndTime (vet) | Specifies the end time in military format HHMM when this file can be accessed. | 2359 | No |
| ValidStartTime (vst) | Specifies the start time in military format HHMM when this file can be accessed. | 0000 | No |
| ViewFilesDirectories (vfd) | Specifies the files or directories to view. Does not allow downloads. The values supported for this parameter are as follows:
|
None | No |
| WriteMode (wm) | Specifies the options used when opening the output file on the target system. The values supported for this parameter are as follows:
|
CRN | No |
| zOSAllocPri (ap) | Specifies the primary allocation value in units of zOSAllocType.
Only for transfers to z/OS. |
None | No |
| zOSAllocSec (as) | Specifies the secondary allocation value in units of zOSAllocType.
Only for transfers to z/OS. |
None | No |
| zOSAllocType (at) | Specifies the allocation type to be used when transferring files to a z/OS system. The values supported for this parameter are as follows:
|
None | No |
| zOSBlockSize (bs) | Specifies the block size to be used for file being transferred to z/OS. | None | No |
| zOSDataClass (dtc) | Specifies a valid data class used when transferring files to a z/OS system.
A valid value is a 1-to-8-character data class name defined by your storage administrator. |
None | |
| zOSLRECL (cl) | Specifies the logical record length for files being transferred to z/OS. | None | No |
| zOSMgtClass (mgt) | Specifies a valid management class used when transferring files to a z/OS system.
A valid value is a 1-to-8-character management class name defined by your storage administrator. |
None | No |
| zOSRECFM (fm) | Specifies the record format for files being transferred to z/OS. The values supported for this parameter are as follows:
|
None | No |
| zOSStorClass (sc) | Specifies a valid storage class used when transferring files to a z/OS system.
A valid value is a 1-to-8-character storage class name defined by your storage administrator. |
None | No |
| zOSUnit (ut) | Specifies the device type for a file being transferred to z/OS.
Valid values are any device type defined to your z/OS system. |
None | No |
| zOSVolume (v) | Specifies the volume serial number for transferring files to z/OS.
The valid values are any 1-to-6-character volume serial number on your z/OS system. |
None | No |
Sample AddTransfer Command
This command adds a file to the database.
java cfcc.CFAdmin a:AddTransfer ClientFileName:"C:\TEMP 001\24.jpg" ServerFileName:"C:\24.jpg" ServerName:ARTDEPT DisableFlag:N ValidStartTime:0000 ValidEndTime:2359 ValidDays:YYYYYYY OneTimeFlag:K EncryptFlag:D WriteMode:C CRLF:N Description:"Corporate Logo JPG format" NotifyFileAvailable:Y ExpirationDate:+1 AuthGroupId:PRINTERS DataType:B DownloadUploadFlag:D