1756475 Members
3466 Online
108847 Solutions
New Discussion юеВ

Addqueue VS lpadmin

 
SOLVED
Go to solution
Tvs
Regular Advisor

Addqueue VS lpadmin

Hi all..

could you please tell me what is the addvantages of using addqueue than lpadmin while configuring a netwotk printer

Thanks in advance

TVs
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: Addqueue VS lpadmin

addqueue (and removequeue, etc) are part of HPPI (HP Printer Installer) which is a tool to configure HP-only JetDirect LAN cards for printers. lpadmin is part of the SysV HP-UX spooler and has no capability to configure the JetDirect protocol. lpadmin configures only parallel or serial interfaces, or remote print servers.

Now here's why this is very confusing:

In the old days, print servers were Unix boxes and PCs running WinNT with the Unix printer sharing services enabled (RFC 1179). So with lpadmin (or SAM), you would configure a printer as a "remote" printer. But in the last few years, many non-HP printer manufacturers have built LAN cards and adapters that use the lpr/lpd protocol found in RFC 1179 and while they are LAN-based printers, they do not use HP's proprietary JetDirect protocol. These print servers must be added with lpadmin (or SAM as remote printers). Note that remote printers are very crude -- no lp -o options will work.

For HP printers using HP JetDirect LAN cards, you would use the hppi (which SAM will run for you when adding a "network" printer), or use the command line interface to hppi tools: addqueue

For HP-UX, the worst connections for printing are remote printers. Remote print servers (whether computer-based or part of a LAN card) cannot process lp -o options so print jobs from HP-UX must be pre-processed before printing. The JetDirect protocol uses port 9100 and a special spooler-to-LAN program called hpnpf to allow a huge number of options to be processed. See man net_ljx000


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: Addqueue VS lpadmin

Hi

lpadmin = classic spooler addqueue is networking addon


addqueue allows a user to build an lp printer queue based on arguments entered on the UNIX command line, and provides a non-GUI alternative to the method provided by the hppi Utility.

It is not to be used to create a queue for a printer connected directly to a LPT port.




Addqueue is the only correct tool for network printers


hppi -addq is another way


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Nikitka
Honored Contributor

Re: Addqueue VS lpadmin

Hi,

note that hppi and friends create entries in the lp printer base, so lpstat (and friends) will see/list/... these printers just like all other printers, which were created by lpadmin.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Tvs
Regular Advisor

Re: Addqueue VS lpadmin

HI


Thanks for the valuable reply.

i was worried about when we add the printer through lpadmin , it is going to recycle the spooler and there is a chnace of loosing some print jobs which is already is Queue. and addqueue command also recycling the spooler.

is there any way to add or change the configuration of the printer without distrubing the print spooler..

Bill Hassell
Honored Contributor

Re: Addqueue VS lpadmin

No, this is a feature of the SysV print spooler. No matter how a printer is added, modified or removed, the spooler must be stopped and all active print jobs will be terminated. After the change is made, starting the spooler will reprint all the jobs still in the queues.


Bill Hassell, sysadmin