 |
» |
|
|
|
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. Log on as root
or superuser to perform these DDFA configuration steps. Check to see if a working directory for DDFA already
exists. If it does not, create a directory for the DDFA
files. HP recommends /etc/ddfa. Check to see if a dedicated port configuration file
already exists. 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. 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: 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. 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. Run the text editor of your choice, such as vi,
to edit the /etc/ddfa/dp file. Create an entry (one for each output device) in
the /etc/ddfa/dp file using one of the following
addressing formats: 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>
|
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>
|
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>
|
Repeat steps 1-4 for each outgoing connection device
until all entries are configured. 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/telnet/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/tserverlp2 /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. 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. 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. Consider the following factors in your
naming convention. The device file name must be
unique and no longer than five characters in length. Device names
are kept up to five characters in the system file, utmp, to be displayed
later by many utilities and commands including who,
passwd, finger, wall
etc. HP recommends you use two characters for the DTC
name, followed by one character for the board number, and two characters
for the port number to make a unique device file name. For example,
use the device file name /dev/telnet/72302
for a device on a DTC 72MX terminal server, board 3, port 2.
Run the text editor of your choice (for example,
vi) to edit the /etc/ddfa/dp
file. 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/72304. The
entry in the dp file would be: 192.101.23.72 03/04 /dev/telnet/72304
|
Note that no pcf reference is necessary for input
devices such as a terminal. Repeat steps 1-4 for each incoming connection device
until all entries are configured. Save the modified file /etc/ddfa/dp
file. It is now ready for parsing by dpp.
|