Creating and Configuring the pDNI Template
At this point, all of the Internet Server definitions have been completed. You now need to configure the pDNI template.
To configure the pDNI template, complete the following steps.
- Procedure
- Go to Platform Server Management > Manage DNI Daemons.
- Select the server name where you want to create the DNI template.
A list of pDNI templates defined on that server is displayed.
-
Select an existing template for the Platform Server where you want the template to execute.
By default, pDNI comes with two sample send templates:
Sample Send Template Description dnitemplate.recvUnix system uses the cfrecvcommand.dnitemplate.wrecvWindows system uses the ftmscmdcommandAfter selecting a template name, the pDNI template is displayed in the Template Data at the bottom of the page.
-
Make the following changes to the template:
Parameter Instruction RemoteDirectory Set to the target server directory that you want to scan for files to receive (like download). RemoteCommand Set to the command to execute to get the directory list.
Both of these commands are Send Command requests. DNI fills in additional information required by these commands.
Below is the sample command for UNIX (
cfsend).cfsend n:mftisnode trtype:c eb:y
Below is the sample command for Windows (
ftmscmd).ftmscmd /tcp /send /command /dt:e /node:mftisnode
DNICommand Set to the command that you want to execute.
Below is the sample command for Unix (
cfrecv):cfrecv n:mftisnode lf:"/data/targetdir/$(RemoteFile)" rf:"$(RemoteFileName)" sm:y
Below is the sample command for Windows (
ftmscmd):ftmscmd /recv /file /node:mftisnode "c:\data\targetdir\$(RemoteFile)" "$(RemoteFileName)"
Note: The virtual alias in both commands must be set to the virtual alias defined on the transfer definition in the step Create a Transfer Definition for the defined User and Server definitions.SubDirectory Enter Yesto transfer files in subdirectories; otherwise enterNo.SuccessAction: There are three options you can set:
Option Instruction Leave Keep the file in the directory but do not transfer again until the file is modified. Delete Delete the file transferred. Move Move the file transferred to the location defined by the SuccessFileparameter.Currently, set this file to
Leave.NetworkErrorAction Set to Retryfor this test.FailureErrorAction Set to Retryfor this test.ScanInterval Set to 1(Minute).Template Name Enter the name of the new template to be created. -
Click Add to add the new template.