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
  1. Go to Platform Server Management > Manage DNI Daemons.
  2. Select the server name where you want to create the DNI template.

    A list of pDNI templates defined on that server is displayed.

  3. 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.recv Unix system uses the cfrecv command.
    dnitemplate.wrecv Windows system uses the ftmscmd command

    After selecting a template name, the pDNI template is displayed in the Template Data at the bottom of the page.

  4. 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 Yes to transfer files in subdirectories; otherwise enter No.
    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 SuccessFile parameter.

    Currently, set this file to Leave.

    NetworkErrorAction Set to Retry for this test.
    FailureErrorAction Set to Retry for this test.
    ScanInterval Set to 1 (Minute).
    Template Name Enter the name of the new template to be created.
  5. Click Add to add the new template.