Creating a directory exit - OpenVMS

This page describes a delivered sample, cft-tcp.conf configuration sample located in cft_scen or d$cft_run:[conf], that you can use to create an example directory exit.

Note Please check the prerequisites if you have not already done so.

Before you start

Before running the directory exit test, modify the cft-tcp.conf file depending on the type of network used. Edit the file using a text editor (EDIT, for example) as follows.

  1. Locate the cftprot command in the file and the following lines:
  2. cftprot id      = PeSIT,
    type      = PESIT,
    prof      = CFT,
    ...
    /*** exita      = EXIT_A, ** See Operations Guide **/

    mode      = replace
  3. Delete the comments (delimited by /* at the beginning and */ at the end). The cftprot command should resemble the following:
  4. cftprot id      = PeSIT,
    type      = PESIT,
    prof      = CFT,
    ...
    exita= EXIT_A,
    mode      = replace
  5. Locate the cftexit command, commented as follows:
  6. /*** see Users Guide ***
    CFTEXIT ID      = EXIT_A,

    PARM = EXAPARM1,
    LANGUAGE = C,
    PROG = 'CFTEXITA',
    TYPE = ACCESS,

    MODE = REPLACE ***/

    Remove the comments to obtain the following command:

    CFTEXIT ID      = EXIT_A,
    PARM      = EXAPARM1,
    LANGUAGE      = C,
    PROG      = 'CFTEXITA',
    TYPE      = ACCESS,
    MODE      = REPLACE
  7. Locate the communication properties for your site, which appear at the end of the file. When modifying the cft-tcp.conf file, you must also find every occurrence of the HOST string located in cfttcp-type commands and replace the X character strings with your system name or address.

Application components

The d$cft_run:[src.exit] subdirectory contains several sample source modules used to check the following:

  • Activation of a transfer to a partner known to the directory EXIT but not to Transfer CFT
  • Activation of a transfer to a partner not known to either Transfer CFT or the directory EXIT

Generating the exit

To generate the sample CFTEXITA application:

  1. Access the d$cft_run:[src.exit] directory.
  2. Enter the command: makefile exit

Running the test

  1. Access the cft_scen directory.
  2. Generate the Transfer CFT databases using cftinit the configuration file provided and modified for this EXIT: cft-tcp.conf
  3. After the cftinit complete message is displayed, start Transfer CFT: cft start
  4. When the CFTMAIN process ID is xxxxx message displays, perform an initial transfer using the command:
    CFTUTIL send part=BOSTON, idf=TXT
  5. Now submit a second transfer to the NCFT_OK partner:
    CFTUTIL send part=NCFT_OK,idf=TXT
  6. After a few seconds, check the transfer state by entering the command: CFTUTIL listcat
  7. The transfer is successful because the NRPART01 is defined in the DIRECTORY EXIT as being the EXTPTN01 non- Transfer CFT partner.
  8. Now submit a third transfer to the NCFT_OK partner:
    CFTUTIL send part=NCFT_NOK,idf=TXT
  9. After a few seconds, check the transfer state by entering the command: CFTUTIL listcat
  10. The transfer fails because the password is invalid, even though NRPART02 is defined in the DIRECTORY EXIT.
  11. Stop Transfer CFT: cft stop

Related Links