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
  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 includes the following sample send templates:

    Sample Send Template Description
    dnitemplate.send Unix system uses the cfsend command.
    dnitemplate.wsend 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
    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 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.

    By default, this option is set 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.