HPlogo DTC Device File Access Utilities and Telnet Port Identification: HP 9000 Computers > Chapter 3 Configuring DDFA Connections

DDFA Configuration Tasks

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

HP recommends keeping a backup of your HP-UX software in order to recover from potential problems in the future. In addition, be sure to read any READ ME FIRST files supplied with your system.

  1. Log on as root or superuser to perform these DDFA configuration steps.

  2. Check to see if a working directory for DDFA already exists.

     ls /etc/ddfa
  3. If it does not, create a directory for the DDFA files. HP recommends /etc/ddfa.

     mkdir /etc/ddfa
  4. Check to see if a dedicated port configuration file already exists.

     ls /etc/ddfa/dp
  5. If it does not, copy the master template dedicated port file, dp, to the DDFA directory.

     cp /usr/examples/ddfa/dp /etc/ddfa/dp

    Do not alter /usr/examples/ddfa/dp, the master template dp file. Instead, modify the file /etc/ddfa/dp as explained below.

  6. Copy the master template port configuration file, pcf, to the DDFA directory. Use this copy as the generic pcf file which works for most DTC and server devices.

     cp /usr/examples/ddfa/pcf /etc/ddfa/pcf

    Do not alter /usr/examples/ddfa/pcf, since that is the master template pcf file. Instead, you should go to the /etc/ddfa directory, and make one copy of the pcf template file for each type of pty device needed (printer, plotter, etc.). You should give the new pcf file in /etc/ddfa a name which describes the type of device (for example, /etc/ddfa/laserjet), and modify the contents as needed.

Configuring Outgoing Connections (Printers)

For each terminal server output device (such as a printer) , perform the following steps to assign a pty device file:

  1. For a DTC, determine its Node Name , its IP address , the board number, and the port number on the DTC to which the device is connected.

    For a non-DTC server, determine its Node Name , its IP address and the TCP port number on the server to which the device is connected.

  2. Define a device file name that you will use for this output device. It is helpful to select a name which describes the specific device port. For example, use the pty file name /dev/telnet/dtc72b3p2 for a device on a DTC 72MX terminal server, board 3, port 2.

    NOTE: Note the following physical port configurations and numbering conventions often recommended for DTCs: DTC 48s may have up to 6 asynchronous boards (numbered slots 0-5), and 6 modem ports (numbered 0-5) or 8 direct connect ports (numbered 0-7).

    DTC 16s may have up to 2 asynchronous boards (numbered slots 0-1), and 6 modem ports (numbered 0-5) or 8 direct connect ports (numbered 0-7).

    DTC 16TNs, DTC 16MXs and DTC 16RXs have a single asynchronous board (called slot 1 or 01); it supports 16 modem or direct connect ports (numbered 0-15).

    DTC 72MXs may have up to 3 asynchronous boards, each of which will support 24 modem or direct connect ports (numbered 0-23).

    It is important to check and note the DTC's board and port configuration, since the LAN board may not always be found in the default slot 0, and the asynchronous cards may be in any of slots 0-3.

  3. Run the text editor of your choice, such as vi, to edit the /etc/ddfa/dp file.

  4. Create an entry (one for each output device) in the /etc/ddfa/dp file using one of the following addressing formats:

    1. Formats 1 and 2 are used only for DTC servers. The slash (/) must separate the board and port parameters, which are unique to the DTC.

      <DTC IP addr>   <board>/<port> <pseudonym> <pcf>
      <DTC Nodename>  <board>/<port> <pseudonym> <pcf>
    2. Format 3 is accepted by most terminal servers, including DTCs, for outgoing connections only. The XX (XX) indicates a null value.

      <Server IP addr> XX/<port TCP addr> <pseudonym> <pcf>
      <Server Name>    XX/<port TCP addr> <pseudonym> <pcf>
    3. Formats 4 and 5 are used for addressing a server where the connection goes to the default TCP port address of 23; this feature is supported on DTCs and some other terminal servers.

      <Server IP addr>   XX/XX <pseudonym> <pcf>
      <Server Name>      XX/XX <pseudonym> <pcf>
  5. Repeat steps 1-4 for each outgoing connection device until all entries are configured.

  6. Save the modified file /etc/ddfa/dp file. It is now ready for parsing by dpp.

Configuration Example 1 - Let's configure a printer port which is on board 3 port 2 of a DTC 72MX whose IP address is 192.101.23.72. You wish to refer to this printer as /dev/dtc72b3p2. The entry in the dp file would be:

192.101.23.72  03/02 /dev/telnet/dtc72b3p2 /etc/ddfa/pcf
NOTE: For a DTC 16MX,TN or RX, the board number will always be '1' or '01'.

Configuration Example 2 - Let's configure a printer port on a non-DTC terminal server, whose node name is server.d.o.com and whose default port TCP address is 23. You wish to refer to this printer as /dev/telnet/tserver1p2. The entry in the dp file would be:

server.d.o.com  XX/XX  /dev/telnet/tserver1p2  /etc/ddfa/pcf

To configure a DTC printer with the HP-UX spooler , follow the steps listed above, then execute the dpp command. Proceed with the configuration steps used for a normal printer (MUX-connected printer), but instead of using a standard device file, you substitute the name of the device file that you defined in the /etc/ddfa/dp file (e.g., /dev/telnet/dtc72b3p2).

You may also use SAM to add the printer, using the standard system model scripts. Refer to Chapter 5, in the section "Setting Up Printers with the HP-UX Spooler," for a specific example. Also refer to the HP-UX System Administration Tasks Manual for additional information on the HP-UX printer spooler.

Configuring Incoming Connections (Terminals)

For each DTC input device (such as a terminal), perform the following steps to assign a dedicated pty file. These steps enable the Telnet Port Identification feature explained in Chapter 2. This is supported for DTCs only.

  1. Determine the DTC's Node Name, its IP address, the board number and the port number on the DTC to which the terminal is connected.

  2. Define a device file name that you will use for this input device. It is helpful to select a name which describes the specific device port. For example, use the pty file name/dev/telnet/dtc16b1p2 for a device on a DTC 16TN terminal server, board 01, port 2.

  3. Run the text editor of your choice (for example, vi) to edit the /etc/ddfa/dp file.

  4. Add an entry (for each input device) to the dp file. For a DTC, use the following format:

    <DTC IP addr> <board>/<port> <pty>

    The slash (/) must separate the board and port parameters. For example, a terminal is on board 3 port 4 of a DTC 72MX whose IP address is 192.101.23.72. You wish to refer to this terminal as /dev/telnet/dtc72b3p4. The entry in the dp file would be:

    192.101.23.72  03/04  /dev/telnet/dtc72b3p4

    Note that no pcf reference is necessary for input devices such as a terminal.

  5. Repeat steps 1-4 for each incoming connection device until all entries are configured.

  6. Save the modified file /etc/ddfa/dp file. It is now ready for parsing by dpp.

Starting Up the ocd Daemons

  1. After you have finished editing the /etc/ddfa/dp file, execute the Dedicated Port Parser (/usr/sbin/dpp) to scan the /etc/ddfa/dp file. This starts up the ocd daemon and assigns the dedicated ports for Telnet Port Identification.

    /usr/sbin/dpp  /etc/ddfa/dp  -k
  2. Check to see that the ocd processes are running by using the ps command as follows:

    ps -ef | grep ocd

There should be one ocd process running for each outgoing dedicated port configured. Incoming dedicated ports do not use ocd processes.

NOTE: You should always run dpp every time you have added or removed any entries in the dp file.

For more DDFA configuration information, you may read on to Chapter 4, Defining and Executing DDFA Parameters. Refer also to the DDFA on-line manual reference pages (man pages), which may be printed from your system.

© 1995 Hewlett-Packard Development Company, L.P.