This chapter describes how you can attach a printer or plotter to an HP X station. Topics include:
If you have problems with the printer installation, refer to If the Printer Will Not Print.
Which devices you can connect depends largely on your host computer. In general, all HP printers are supported on any multi-vendor system. Other printers that can plug into the X station and have their own model scripts are also supported.
/usr/spool/lp/model
For HP-UX 10.x systems:
/var/spool/lp/model
Note that HP plotters with model numbers HP 7440a, HP 7475a, HP 7550a, HP 7570a, HP 7595a, or HP 7596a require a different setup method from other printers or plotters.
Printer and plotter types that do not have a model script may work with the
dumb
and dumbplot
scripts respectively.
This section explains how to connect a printer or plotter to the X station and how to test the connection.
To connect a parallel printer to the X station, use a Centronics-style cable (HP 24542D).
To connect a serial printer to the X station, use an HP 24542G cable. If your X station has two serial ports, you can connect the printer to either serial port. To configure the Serial Port to work with the printer:
[F12]
to access the configuration screens.
[Terminal]
.
General
.
(The printer's documentation describes the baud rate, stop bits, data bits, parity, and pacing you must set.)
[OK]
to exit.
HP X stations have print tests you can use with non-PostScript printers to test the X station-to-printer connection.
[F12]
to access the configuration screens.
[Terminal]
.
[Print Test]
button.
[Serial 1]
, [Serial 2]
, or [Parallel]
.
If your printer does not print the X station's configuration, check the cable and the printer for problems.
How you set up the host for the X station's printer depends upon what host you have. All supported systems use print spoolers, but you configure the spooler using different host-side tools. In addition, SCO UNIX systems make use of a printer daemon. Refer to the section appropriate for your system:
If you have HP 7440a, HP 7475a, HP 7550a, HP 7570a, HP 7595a, or HP 7596a plotters on an HP-UX system, refer to Using HP Plotters on HP-UX Systems.
The administration script (xtadm
) makes it easy for you to add
an X station's printer or plotter to the print spooler
and provides a script to test the operation
of the printer or plotter.
The "Printers, plotters" section of the administration script prompts you for all the information required to set up a printer or plotter on the print spooler.
Before you begin, you need to know the following:
To begin:
Printers, plotters
from the main menu.
Check operation of a printer or plotter
.
The administration script
uses ping
to verify that the X station is connected
to the network, then sends a test file to the printer.
This test bypasses the print spooler.
If the test fails, check that the X station and the printer are
properly connected and configured.
Add a printer or plotter.
The script prompts you as necessary. To access
the online help, at the prompt, type: ?
To learn how to print a file, see Printing a File.
To use HP 7440A, HP 7475A, HP 7550A, HP 7570A, HP 7595A, or HP 7596A plotters with HP X stations, you must use a pseudo-terminal driver as follows:
To assign the plotter daemon to the master side of the
pseudo-terminal driver, edit the
file /etc/rc
and add:
/usr/lib/hpnp/hpnptyd -m /dev/ptym/ptyr8 -x xterm2 -p 9100
Or, for HP-UX 10.x systems, add:
/opt/hpxt/enware/hpnp/hpnptyd -m /dev/ptym/ptyr8 -x xterm2 -p 9100
In this example:
/dev/ptym/ptyr8
specifies the master side
of the pseudo-terminal driver ptyr8
.
The name you choose should be as high as possible to reduce the
likelihood that another program will grab the pty.
Also, you will need it to set up the
slave side of the pseudo-terminal driver.
-x
specifies the terminal name or IP address of
the X station to which the printer is attached (xterm2
in this example).
-p
identifies the serial or the parallel port on the X station:
9100
to send the data to the serial port.
9102
to send the data to the second serial port (if present).
9101
to send the data to the parallel port.
To assign the slave side of the pseudo-terminal driver,
use sam
as follows:
sam
[Printers and Plotters]
.
[Actions]
pulldown, choose:
"Add Printer/Plotter Requiring Nonstandard Device File..."
Printer name
, choose a unique name.
You may use the X station's terminal name.
Printer Model/Interface
, use
hp7440a, hp7475a, hp7550a, hp7570a, hp7595a, or hp7596a.
Printer Device File Name
, type in the name of the slave side of
the pseudo-terminal driver.
For example, if the /etc/rc
entry has
/dev/ptym/ptyr8
, the printer device file name is /dev/pty/ttyr8
.
Printer device file name
.
This default name is incorrect.
Printer Class
to suit your system or leave it blank.
Before you begin you need to know the following:
smit
Devices
Printer/Plotter
Print Spooling
Add a Print Queue
Printer or Plotter Attached to an HP X Station
smit
prompts you for all the necessary information.
To learn how to print a file, see Printing a File.
To print a file, use:
lp -d
printername filename
For example:
lp -dxterm1par data.output
-d
option, make the local printer the default by
typing one of the following command lines in the
VUE users, in .vueprofile
:
set lpdest=
printername
LPDEST=
printername
export LPDEST
To print a file, use:
lpr -P
printcap_name
lp -d
printcap_name
Examples:
lpr -P700xpr data.output
lp -d700xpr data.output
To print PostScript files, you can use:
lpr -P
printcap_name -h
file
For example:
lpr -P700xpr -h data.ps
You can query the configuration and status of your parallel printer using any SNMP-supported printer utility (for example, JetAdmin). For more information on SNMP, refer to Using SNMP with HP X Stations.