1751937 Members
4562 Online
108783 Solutions
New Discussion юеВ

Re: Adding IP printers

 
Chris Mckeever
New Member

Adding IP printers

I'm new to UNIX, and I have to install a network printer at a client site with
an inexperienced UNIX administrator. He doesn't know how to create a printer
unless it's running on a JetDirect, so that he can use JetAdmin to create the
printer.

From what I've read, the process requires shutting down the print spooler and
then using the LPADMIN command to create the printer. One of the switches
needed for LPADMIN is the "port" to which the printer is attached--but this is
an IP printer on the network, and isn't attached to a term server port. What
do I need to use as the "port" for this printer...its host name? Its IP
address? Or something else?

I must've gone through a dozen books (including HP's own HP-UX book) without
finding the answer...or, for that matter, a clear set of step-by-step
instructions for this task. If anybody either knows the answer or can refer me
to a good resource, I'd be very grateful.
5 REPLIES 5
Randy Mather
Frequent Advisor

Re: Adding IP printers

I use prt1 as the port number on jet direct or lexmark
network attached printers.
You may want to setup one server as the print server, and point the other print
queues to it using remote print server.
Al Langen_2
Advisor

Re: Adding IP printers

I am confused by the problem/terminology. If the printer is an IP printer, and
JetAdmin creates interfaces for network IP printers, why won't JetAdmin work?
Carlos Riera
Frequent Advisor

Re: Adding IP printers

You must use /dev/null. This is the device used by Jet Printer and othen IP
based printers.

You need and 'interface' for your printer, provided by printer sheller?s (
AXIS, XEROX...) , where you can customize IP address of your printer.

That?s all.
Ram Kumar_1
Occasional Contributor

Re: Adding IP printers

Steps for adding a printer


# lpshut
# lpadmin -p* -orm** -orp*** -v/dev/null -m**** -ocmrcmodel -osmrsmodel
# lpsched
# lpstat -t
# enable *
# accept *
# lpstat -t



* ?? Printer Name
** ?? The name of the remote machine
*** ?? The name of the printer to use on the remote machine
**** ??Selects a model interface program for printer P.
model is one of the model interface names supplied
with the LP software

When installing remote printers, use the option -ocmrcmodel instead of
-oci/usr/sbin/rcancel to specify the method used to cancel remote
requests. The option -osmrsmodel should be used instead of
-osi/usr/sbin/rlpstat to specify the method used for displaying remote
status.
Bill Hassell
Honored Contributor

Re: Adding IP printers

Very important: An IP printer that is not using an HP JetDirect card will never work with JetAdmin (obsolete) or the HP Printer Installer software. HP JetDirect cards support a proprietary protocol as well as remote printing (known as RFC 1179).

You can use lpadmin to setup the printer as a remote, but it is a long command line. Simply run SAM and add the printer as a remote printer. NOTE: your printer's network card documentation must identify the internal printer name. It might be prn or lpt or raw or text or something similar. But it is a required value to add the remote printer.

Also note that a remote printer will generally not handle Unix ASCII files. The effect is that the text will stairstep down the page. You must filter all ASCII print jobs ux2dos as in:

ux2dos some_file | lp -dprinter_name


Bill Hassell, sysadmin