Creating and Configuring the pDNI Template
The next step after completing all of the Internet Server definitions is 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 includes the following sample send templates:
Sample Send Template Description dnitemplate.sendUnix system uses the cfsendcommand.dnitemplate.wsendWindows 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 LocalDirectory Set to the directory that you want to scan for files to send. DNICommand set to the command that you want to execute.
Below is the sample command for Unix (
cfsend):cfsend n:mftisnode lf:"$(LocalFileName)" rf:"/VirtualAlias/$(LocalFile)" sm:y
Below is the sample command for Windows (
ftmscmd):ftmscmd /send /file /node:mftisnode "$(LocalFileName)"/VirtualAlias/$(LocalFile)"
Note: The DNI Template RemoteDirectory parameter 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.By default, this option is set 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.