Operating System - HP-UX
1844311 Members
2803 Online
110230 Solutions
New Discussion

Re: UX printer configuration

 
SOLVED
Go to solution
massimo_38
Advisor

UX printer configuration

Hi everybody!

I have to add a new printer to the printers I already have. I have the /etc/lp/interface/xxx file (it's ok) but I don't know how to make visible the new printer to the printer system.

The os is HP-UX 11.i

Thanks in advance!

Hi
13 REPLIES 13
MarkSyder
Honored Contributor

Re: UX printer configuration

I think sam is the most user-friendly way of adding a printer.

Is it a network printer or direct-connected? This may have a bearing. Also, if it is a QMS printer there is a piece of software specifically for those.

Come back with more details if sam does not do everything you need.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
massimo_38
Advisor

Re: UX printer configuration

sorry for my few precisations...

It's a network printer and I'd like not to use sam...

Emanuele

Thanks in any case...
G. Vrijhoeven
Honored Contributor

Re: UX printer configuration

Hi,

The command line option to add a printer is addqueue command. check man addqueue. If you have the interfase file i would move it first to pintername_save use the add_queue command and move the interface file back.

HTH,

Gideon
Fabio Ettore
Honored Contributor

Re: UX printer configuration

Ciao Emanuele,

below how to:
UPRTKBRC00013408 - Interactively adding network printer without using the 'hppi' TUI

You should launch

# hppi -addq

and you could configure a new network printer.

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: UX printer configuration

....of course another way is by addqueue (as Gideon said):

A5194845 - SYS ADM: How to add a JetAdmin printer from the command line

Best regards,
Ettore
WISH? IMPROVEMENT!
Geoff Wild
Honored Contributor
Solution

Re: UX printer configuration

Here's how to do it from the command line:

addqueue -i 9998 -q -h

Example:

addqueue -i 9998 -q W052 -h w052.mydomain.net

The -i option is the "printID type from the following list:

# cat /opt/hpnpl/admin/PrinterList

:1:HP LaserJet IIISi;:HP LaserJet IIISi
:1:HP PaintJet XL300;:HP PaintJet XL300
:2:HP Color LaserJet;:HP Color LaserJet
:3:HP LaserJet 4;:HP LaserJet 4 / 4M
:5:HP LaserJet 4Si;:HP LaserJet 4Si / 4SiMX
:6:HP PaintJet XL300;:HP PaintJet XL300
:7:DeskJet 1200C;:HP DeskJet 1200C / 1200C/PS
:7:HP CopyJet;:HP CopyJet / CopyJetM
:8:DesignJet 650C;:HP DesignJet 650C
:10:HP LaserJet 4 Plus;:HP LaserJet 4 Plus / 4M Plus
:11:HP LaserJet 5Si;:HP LaserJet 5Si / 5SiMX
:12:HP LaserJet 4V;:HP LaserJet 4V
:14:DeskJet 1600C;:HP DeskJet 1600C
:14:DeskJet 1600CM;:HP DeskJet 1600CM
:15:HP LaserJet 5;:HP LaserJet 5
:15:HP LaserJet 5N;:HP LaserJet 5N
:15:HP LaserJet 5M;:HP LaserJet 5M
:16:HP Color LaserJet 5;:HP Color LaserJet 5
:16:HP Color LaserJet 5M;:HP Color LaserJet 5M
:20:DesignJet 750C (C3196A);:HP DesignJet 750C
:20:HP DesignJet 750C Plus (C4708A);:HP DesignJet 750C Plus
:20:HP DesignJet 750C Plus (C4709A);:HP DesignJet 750C Plus
:21:DesignJet 755CM (C3198A);:HP DesignJet 755CM
:21:DesignJet 755CM (C3198B);:HP DesignJet 755CM
:22:HP DesignJet 700 (C4705A);:HP DesignJet 700
:22:HP DesignJet 700 (C4706A);:HP DesignJet 700
:23:HP DesignJet 2500CP (C4704A);:HP DesignJet 2500CP
:24:HP DesignJet 2000CP (C4703A);:HP DesignJet 2000CP
:25:HP DesignJet 3500CP (C4724A);:HP DesignJet 3500CP
:26:HP DesignJet 3000CP (C4723A);:HP DesignJet 3000CP
:257:HP LaserJet 4000 Series;:HP LaserJet 4000 Series
:258:HP LaserJet 5000 Series;:HP LaserJet 5000 Series
:259:HP Color LaserJet 4500;:HP Color LaserJet 4500
:261:HP Mopier 320;:HP Mopier 320
:261:HP LaserJet 8100 Series;:HP LaserJet 8100 Series
:264:DesignJet 1055CM (C6075A);:Hewlett-Packard DesignJet 1055CM (E sized)
:264:DesignJet 1050C (C6074A);:Hewlett-Packard DesignJet 1050C (E sized);
:266:HP LaserJet 8000 Series;:HP LaserJet 8000 Series
:267:HP LaserJet 4050 Series;:Hewlett-Packard LaserJet 4050 Series
:513:HP LaserJet 2100 Series;:Hewlett-Packard LaserJet 2100 Series
:1000:HP LaserJet 5L;:HP LaserJet 5L
:1001:HP LaserJet 5P;:HP LaserJet 5P
:1001:HP LaserJet 5MP;:HP LaserJet 5MP
:1002:HP LaserJet 4P;:HP LaserJet 4P
:1002:HP LaserJet 4MP;:HP LaserJet 4MP
:1003:LaserJet 4L;:HP LaserJet 4L
:1003:LaserJet 4ML;:HP LaserJet 4ML
:1004:HP LaserJet 6P;:HP LaserJet 6P Printer
:1004:HP LaserJet 6MP;:HP LaserJet 6MP Printer
:1005:HP LaserJet 6L;:HP LaserJet 6L Printer
:1008:HP 2000C;:HP Deskjet 2000C Printer
:1010:HP Color LaserJet 8500;:HP LaserJet 8500
:1020:HP 2500C;:Hewlett-Packard 2500C Series
:1025:HP LaserJet 1100;:HP LaserJet 1100A Printer-Copier-Scanner
:9990:dumplot plotter;:To Select dumbplot model script for plotter
:9991:dumplot printer;:To Select dumbplot model script for printer
:9992:dumplot printer_cr;:To Select dumbplot model script for printer with CR
:9997:Generic PCL3 Printer;:HP PCL3 Printer not given in this list
:9998:Generic printer;:HP LaserJet Printer not given in this list
:9999:Generic plotter;:HP Plotter not given in this list


-h is the host name, and -q is the queue name.

Most printers are added with 9998 "Generic". Some may have to be 9992 (Genicom).


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
massimo_38
Advisor

Re: UX printer configuration

what is this? A5194845 - SYS ADM

I'm trying with the addqueue command...
does anybody have a simple line command to help me?

thanks!
Fabio Ettore
Honored Contributor

Re: UX printer configuration

Emanuele, they are documents.
Go in technical knowledge base from ITRC home page and insert A5194845 by specifying 'search by Doc.ID'. You should get a document from ITRC database. Anyway have you a support contract with HP? It is needed to see documents in technical knowledge base.

Otherwise what does addqueue command obtain as Geoff suggested you?

Best regards,
Ettore
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

Re: UX printer configuration

Before using the HPPI commands like addqueue, are you adding an HP printer with an HP network card? If not, the JetDirect software that is part oh HP Printer Installer won't work and you must add the printer as a 'remote' printer. The same thing is true for adding a printer that is on another server.

If this is an HP printer *and* the HP JetDirect network interface card already has already been setup with an IP address, subnet mask and gateway, then you can use addqueue. addqueue will test to see if the printer is indeed an HP printer with an HP interface. The command is:

/opt/hpnpl/bin/addqueue -h 12.34.56.78 -q queuename

where 12.34.56.78 is the IP address of the printer and queuename is whatever you want to call the printer when using the lp command.

Note: if you have been editing or copying files in /etc/lp/interface, you may have problems with lp subsystem. There are several related indexes like the pstatus file that must be kept in sync.


Bill Hassell, sysadmin
massimo_38
Advisor

Re: UX printer configuration

Thanks to everyone for now!

I tried this command

/opt/hpnpl/bin/addqueue -h 12.34.56.78 -q queuename

But it respond:

Printer not supported.

Then...I tried SAM!
I'm able to add the printer p076 with queue p076. I can configure it but I'm not able to assign to the printer the correct model script.

Exactly: I see the model script within the model script list but when I make the new printer it uses the generic_model_script.
I'm triyng to assign the net_ljx000 model script to the new printer.

Thanks in advance.
Bill Hassell
Honored Contributor

Re: UX printer configuration

What is the printer model? Is it an HP LaserJet? HP DeskJets come in several incompatible models (they require MS Windows and cannot work on any other platform). If this is a relatively new HP LaserJet, your HPPI software is probably too old to know about the printer. You can use addqueue -l to list all the printers that are known by this version of addqueue. If this is an HP LaserJet, you can override the automatic check for printer type with the -i option.


Bill Hassell, sysadmin
massimo_38
Advisor

Re: UX printer configuration

Hi again!

Thanks to everyone...now the printer is working.

I did it with SAM.
Even with the default script model everything seems to be all right.

The printer is a laserjet 2300dn model and it seems not to be supported by hppi

In any case...I wonder how to install it from command line...

Thanks to all...points are coming!
Bill Hassell
Honored Contributor

Re: UX printer configuration

You need to upgrade your HPPI software. It is supplied through a different part of HP (printers) so it is not kept up to date with HP-UX install CDs. The LaserJet 2300DN is VERY new so that's why it is not recognized. Download the latest HPPI version from www.hp.com. As mentioned, you can install the printer using addqueue. You MUST use the -i option to force selection of the model script. Use the command like this:

/opt/hpnpl/bin/addqueue -i 257 -h 12.3.56.78 -q print_queue


Bill Hassell, sysadmin