MKJTPR(1M) Impressario MKJTPR(1M)NAMEmkjtpr - install a network printer interface System V printer
SYNOPSISmkjtpr [<local printer name>] [<network printer name>]
DESCRIPTIONmkjtpr provides access to a printer that is directly connected to a
network (using a network card in the printer or similar network adaptor).
Examples are printers connected with an HP JetDirect network adaptor.
mkjtpr will interactively prompt for missing arguments.
local printer name is the name you wish to give the printer on your
machine (see lpadmin (1M)).
network printer name is the network name or IP address of the network
printer. You should be able to ping (1M) this name with the following
command before running mkjtpr:
/usr/etc/ping -q -c3 network_printer_name
When mkjtpr runs it parses the model files in the /var/spool/lp/model
directory looking for model files with the string "DEVICE=NETPRINTER".
It then lists all model files that support driving a network printer.
One of these model files must be selected.
mkjtpr also uses the *NETPRINTER*netDevices resource found in the
/usr/lib/X11/app-defaults/Printers file to generate a list of network
adaptors. One of these must be selected.
TROUBLE SHOOTING TIPS:
If you have problems printing to the network printer first verify that
you can ping the printer (see above).
If the ping fails verify that the printer is connected and configured
correctly (this includes setting the IP address, netmask, etc. on the
printer). Some printers must be power-cycled after setting up their
network card.
If you can ping the network printer but can not print then you may also
need to verify that the TCP port number used to connect to the network
printer (or network adaptor) is correct. The port number that the print
spooler will use to communicate with the network printer is specified in
the printer model file. Edit the file /var/spool/lp/interface/<local
printer name> and search for "OUTSOCK=9100" (may be something other then
9100). You might verify with your printer vendor that the TCP port
number specified with the OUTSOCK variable is correct for your printer.
(The value for OUTSOCK is set by mkjtpr based on the information in the
*NETPRINTER*netDevices resource found in /usr/lib/X11/app-
defaults/Printers -- see above).
Page 1
MKJTPR(1M) Impressario MKJTPR(1M)
Some network printers might be configured to only accept connections from
specific systems. Verify that your system has access to the printer.
NOTE
In most cases you will only want one or two systems setup to print
directly to a network printer. Other workstations on the network should
print to the network printer via the one or two systems that have been
designated as print servers. (Use mknetpr (1m) to setup other
workstations to spool via the designated print servers.) The reason for
this is that a network printer can serve a limited number of connections.
If multiple connections are attempted from several systems some will be
refused. The systems that were refused back off and try again every few
seconds. Some may never get a connection depending on the number of
systems trying to connect. Designating one or two systems as print
servers allows the servers to control the flow of jobs to the printer in
a more orderly manner (typically a first in first out manner).
FILES
/usr/spool/lp/log
/usr/spool/lp/interface/<local printer name>
SEE ALSOaccept(1M), addclient(1M), enable(1), lp(1), lpadmin(1M), lpsched(1M),
lpshut(1M), lpstat(1), mknetpr(1M)rmprinter(1M).
Page 2