Perl DNI Guide
Perl DNI Guide
Introduction ............................................................................................................................. 4
RELATED DOCUMENTATION ................................................................................................................ 6
ENHANCEMENTS.................................................................................................................................. 7
FIXES ................................................................................................................................................... 9
KNOWN ISSUES.................................................................................................................................. 11
HOW TO CONTACT TIBCO CUSTOMER SUPPORT .............................................................................. 12
Installation and Operations ................................................................................................... 13
INSTALLING THE DNI UTILITY .......................................................................................................... 14
DNI HELP SCREENS .......................................................................................................................... 16
RUNNING THE DNI PERL SCRIPT ....................................................................................................... 17
FILE TOKENS ..................................................................................................................................... 21
DNI TEMPLATE PARAMETERS ........................................................................................................... 25
ENCRYPTING A DNI TEMPLATE PASSWORD ...................................................................................... 37
CONFIGURING DNI MANAGEMENT FOR COMMAND CENTER ............................................................ 39
When you set up a DNI transfer, MFT Platform Server scans a pre-defined
local or remote directory at a user-defined interval. It will return and save
a list of all files in that directory. Any files that have changed between the
scans are eligible to be transferred. Since there is no standardized way of
locking files on UNIX, this is how MFT Platform Server can tell whether
the file is in use or not. When a file transfer is complete, DNI allows you
to delete the original file, move it to a new directory, or leave the file
where it is.
DNI Send
DNI Send reads the directory/s defined and executes a command
when it detects a file exists within the directory/s and sends the files
to a remote system.
DNI Receive
DNI Receive contacts a remote MFT Platform Server system to extract
a list of files in the directory defined. Based on this list, DNI Receive
will execute a command to transfer the files to the local machine.
DNI processing is done using a Perl script called dni. To support DNI your
system must have a version of Perl installed. The Perl program directory
should be defined in the PATH environment variable. If you do not have
Perl installed on your computer, it can be downloaded for free from web
site: www.perl.org.
Related Documentation
How to Contact TIBCO Customer Support
Enhancements
Fixes
Known Issues
This section lists the enhancements for this build of Perl DNI.
: $(RemoteFilePathLDir)
This section lists the fixes addressed in this version of Perl DNI.
This section lists the known issues for this build of Perl DNI.
This section explains how to install and use the TIBCO Perl Directory
Named Initiation (DNI) program.
Topics
There are five help screens that give information on how the MFT
Platform Server DNI script can be used. This can be executed by
entering the following commands:
Parameter Description
cold The Cold option bypasses the reading of the
Leave file that contains the list of files already
transferred that is saved when the SuccessAction
and/or FailureAction is set to leave. As defined
in the warm option description. As such, DNI will
transfer any file in the scan directory when the
script is started. This option should be used with
great care. Note: This parameter overrides the
start parameter in the MFT Platform Server
template.
warm This parameter is only used when a DNI
SuccessAction or FailureAction is defined as
Leave. Due to this DNI will keep track of files
that have been transferred and store the
information in a file. The warm option tells DNI to
read the Leave file and at start up and process
the files normally as if MFT Platform Server did not
come down. This makes sure that a file is not
transferred multiple times by mistake. (This is the
default when no option is set.) Note: This
parameter overrides the start parameter in the
MFT Platform Server template.
hot When defined, DNI will add all files detected on
the first directory scan to the Leave file.
Therefore the contents of the directory when DNI
is started will not be transferred. Note that a Hot
start creates the Leave file with the contents of
the directory after the first scan. If DNI Receive is
DNI Tokens:
On a UNIX system:
On a Windows System:
Parameter Description
SuccessAction Defines what is done with the file when the
DNICommand is executed successfully.
Valid values: leave | move | delete
Note: It is best practice to define the DNI
disposition as move or delete, as this
reduces overhead associated with
managing the leave file and clearly
identifies which files are pending transfer
versus failed.
SuccessFile This parameter is only used when
SuccessAction is defined as move. It
defines the fully qualified name of the
target file for the move command
executed as a result of a successful
DNICommand execution. You can use DNI
tokens to customize the SuccessFile name.
DNI Tokens can be used to customize this
parameter.
FailureAction Defines what is done with the file when the
DNICommand fails. Valid values: leave |
move | retry
Note: It is best practice to define the DNI
disposition as move or delete, as this
reduces overhead associated with
The DNI Scan Schedule section allows you to define the times of
each day that DNI will scan the LocalDirectory (DNI Send) or
RemoteDirectory (DNI recv) for files. The days of the week must
be defined using the English spelling.
Sunday: 0000:2359
Monday: 0000:2359
Tuesday: 0000:2359
Wednesday: 0000:2359
Thursday: 0000:2359
Friday: 0000:2359
Saturday: 0000:2359
Miscellaneous Parameters:
Parameter Description
ScanInterval Defines the number of minutes between
scans of the LocalDirectory. The default
value is 10 minutes. The processing of this
This command will prompt the end used to enter the password to
be used for the dni template and to confirm that password. When
the command completes the EncryptedPassword parameter will
be added to the end of your DNI template containing the
encrypted password. The DNICommand being run would then be
changed to look like this on a UNIX system:
Parameter Description
ListenPort Defines the IP Port that the DNI Daemon
will listen for incoming requests from MFT
Command Center. Preset to value 47777.
AdapterIPAddress Defines the IP Address of the Adapter that
the DNI Daemon will bind to. Preset to
value All. When All is used the IP address to
bind to is 0.0.0.0.
AcceptIPAddress Defines an IP address or DNS name that
points to an MFT Command Center. One
parameter per IP address or DNS name can
be defined. If you want to allow all
incoming requests regardless of the IP or
DNS name you can set this parameter to
All.
LogDirectory Defines the directory where the log files
from the DNI processes will be saved.
Debug Defines whether DNIDaemon.pl debugging
is turned on. This parameter should only
be set when instructed to do so by TIBCO
Technical Support. Preset to value No.
EncryptCmdPwd When this parameter is enabled and an MFT
Command Center user creates/updates a
template file, DNIDaemon will do the
following:
If the Template Parameter Name is
"DNICommand" or "RemoteCommand"
: If the sub-parameter is "/rw:" or
"/RemotePassword:" or "/rw=" or