HP3000-L Archives

June 1995, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Craig Gilmore <[log in to unmask]>
Reply To:
Craig Gilmore <[log in to unmask]>
Date:
Wed, 14 Jun 1995 16:24:13 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (163 lines)
This is a multi-part message in MIME format.
 
---------------------------------189411447322446
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
 
Attached is the help sheet for setting up DDFA on a 9000 to use a nailed device
file for a DTC port telnet connection.
 
---------------------------------189411447322446
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=iso-8859-1
 
[Image] Configuring a named port on a DTC
 
----------------------------------------------------------------------------
This document is part of the HP Response Centers "How Do I..." series. It is
designed to answer simple questions that you have regarding a call that you
placed with the HP Response Center. It is not a complete reference and is
not intended as such. What follows is a quick "Cookbook" approach to aid you
in quickly resolving your question or problem. The proper reference manual
should be refered to for items not covered in this cookbook.
 
Support for the question or problem you discussed with the Response Center
Engineer is offered by the NETSTARTUP product or Network Consulting. This
document has been provided to get you started. Please call the HP Response
Center should you have additional problems or questions. However, depending
on your support level, further help from HP may be offered as consulting on
a Time and Materials Basis.
----------------------------------------------------------------------------
Configuring a port with a named device file on a DTC for HP9000 use is
straightforward. You will need a few items before starting:
 
   * The IP address of the DTC.
   * The Board and Port number of the named device port.
   * The name of a device file that will be created when a session is
     connected on the port.
 
The first step in setting up the named port is making sure that the port is
configured properly in the DTC manager. Check to make sure that the port is
setup as a terminal port, and verify the Baud Rate and Parity of the port.
Next, make sure that the DTC has downloaded and is functioning normally. Now
we can start to configure the named port in the system.
 
Create the /etc/ddfa directory if it does not already exist
 
       1.  mkdir /etc/ddfa
       2.  cd /etc/ddfa
       3.  cp /etc/newconfig/ddfa/dp dp
       4.  cp /etc/newconfig/ddfa/pcf pcf
 
Edit the /etc/ddfa/dp file to include an entry for the named port.
 
     # @(#) $Revision: 1.1.109.2 $
     #
     # Standard configuration file for DTC Device File Access program.
     #  Copyright (C) 1992 by HEWLETT-PACKARD.
     #
     #
     #  This file contains association between  physical terminal server ports
     #  and  device file name. The device name is used by the end-user
     #  application to identify a port or access a remote port using
     #  device file access interface.
     #
     #
     #  The remote identification is composed of a single IP address
     #  (associated to a port) or an IP address (specifying the remote client)
     #  and a board number/port number for terminal server.
     #
     #  That file is used by the DDFA parser (/etc/dpp).
     #
     # The following format must be  used:
     #
     #  IP_address   board/port device_file_name  port_config_file
     #
     #  EX:
     #  11.234.87.123  00/00   /dev/dtcportO0    /etc/newconfig/ddfa/pcf
     #  11.234.87.123  00/00   /dev/dtcportI0
     #  11.234.87.124  XX/279  /dev/dtcportI1    /etc/newconfig/ddfa/pcf
     #
     #  NOTE:
     #
     #   first and third entries are used for DDFA purpose. The last one is
used
     #   for PAD SUP accessing PAD port through a DTC.
     #
     #   second entry is used for port identification.
     #
 
     The above text is the default /etc/newconfig/ddfa/dp file. The examples
     given document the format of the dp file fields. The entry you will
     want to add will be similar to:
 
     192.100.100.20 01/01 /dev/dtc1b1p1
 
     Notice that the first field is the IP address of the DTC. The next
     entry is the BoardNum/PortNum. The third entry is the name of the
     device file that will be created when a session is connected on this
     port. This file should only exist while the associated session is
     running. This filename should not already exist on the system.
 
Parse the dp file after you have added an entry for the named port.
 
        o  /etc/dpp /etc/ddfa/dp -k
 
     The above command reads the entries in the /etc/ddfa/dp file and
     creates an entry in the file /etc/dpp_login.bin for each entry that
     does not have a pcf entry. Lines that do have a pcf entry are treated
     differently. PCF files are used with printers or outbound connections.
     The named port entries are used for inbound connections. The device
     file specified on the line in the dp file is created when a user
     connects to the 9000 from the DTC.
 
     You have now completed the setup of DDFA and the port should be
     working. You can check the connection at this point by establishing a
     session on the 9000 and then using the who or tty command to display
     the portname.
 
How does this work?
 
The /etc/telnetd deamon that was provided with your system has been enhanced
to check for the existance of a DTC. This check is performed when a telnet
request is received from any device connecting to the system. The telnet
environment negotiation performs a "DO 36" call to all inbound devices. If
the device is not a DTC the telnet negotiation should return a "WONT 36" and
the telnet session proceeds normally. If however the device is a
Hewlett-Packard DTC, it should respond with a "WILL 36". This tells the
system that it is a DTC, and the system prompts for a Board and Port number
from the DTC. The telnetd deamon then checks this data with the entries in
/etc/dpp_login.bin. If a match is found, the named device file is created
with the major and minor number of the associated pty.
 
There is one gotcha that is important to note. If the named device file
already exists on the system, the telnetd deamon will fail in trying to
create it and you will have just the pty master/slave without the named
device file. This may cause some applications problems. Additionally, a ps
listing may not report the named device file used due to the way the ps
command works. You can use who or tty instead.
 
If you have any additional questions or would like to understand more you
can refer to the following sources:
 
   *  DTC Device File Access Utilities and Telnet Port Identification HP p/n
     B1014-90012
   *  dp man pages man dp
   *  ddfa man pages man 7 ddfa
   *  telnet man pages man telnet
 
----------------------------------------------------------------------------
This document is provided as a service of the Hewlett-Packard Response
Centers. Hewlett-Packard Company makes no warranty of any kind with regard
to this material, including but not limited to the implied warranties of
merchantability and fitness for a particular purpose. Hewlett-Packard shall
not be liable for errors containd herein or for incidental or consequential
damages in connection with the furnishing, performance or use of this
material.
 
This document contains proprietary information, which is protected by
copyright. The information contained in this document is subject to change
without notice.
 
---------------------------------189411447322446--

ATOM RSS1 RSS2