Operating System - HP-UX
1822457 Members
2529 Online
109642 Solutions
New Discussion юеВ

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

 
Jonathan Telep_2
New Member

The correct syntax for adding a printer in HP-UX using lpadmin...

No matter what I try I can't seem to get this thing to add. The syntax I've been using is as follows:

lpadmin -ppr41137 -vlpd://rcb00003.dearborn.ford.com -drcb00003

What am I doing wrong?

Thanks in advance...
5 REPLIES 5
Rick Garland
Honored Contributor

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

Do you have JetAdmin installed?

The command to install a network printer using JetAdmin is
addqueue -h -q

The hostname can be the IP address (if no name resolution is available) or can be a name (if name resolution is available). The queuename is what you want to call it.

Alan Meyer_4
Respected Contributor

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

Are you trying to create a remote printer to another machine?
" I may not be certified, but I am certifiable... "
Jonathan Telep_2
New Member

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

All I'm trying to do is set up a queue on a server that will allow it to talk to a remote printer. I am not using JetDirect but talking directly to the IP address. I do this in Linux all of the time and, after seeing that HP had similar commands, thought I could do the same with it. Is this not possible to do without going through a JetDirect card on an HP?
Rick Garland
Honored Contributor

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

You can do this with HPUX

Here is the command line for lpadmin

lpadmin -p$PRNTR -v/dev/null -mrmodel -g0 -ocmrcmodel -osmrsmodel -orm$LOC.holst
ein.com -orp$PRNTR"

Another way is to use SAM:Printer and Plotters --> LP Spooler --> Printer and Plotters
from the Actions tab on menu bar, Add Remote Printer/Plotter
Pete Randall
Outstanding Contributor

Re: The correct syntax for adding a printer in HP-UX using lpadmin...

Jonathan,

This is how I do it:


# shut down the print spooler
#############################
/usr/lib/lpshut

for PRNTR in `cat printer_list`
do
case $PRNTR in
crlzr2) OPRNTR=cr8100dn2
;;
crlzr3) OPRNTR=cr8100dn
;;
*) OPRNTR=$PRNTR
;;
esac
LPADMIN="lpadmin -p$PRNTR -ormNET1.holstein.com -orp$OPRNTR -mrmodel -v/dev/n
ull -ob3 -ocmrcmodel -osmrsmodel"
#############################
# ... do the following
#############################
# 1st - remove it, then add it, using defaults, placing it on NET1
#############################
lpadmin -x$PRNTR
$LPADMIN
#############################
# 2nd - begin accepting requests to it
#############################
/usr/lib/accept $PRNTR
#############################
# 3rd - enable it
#############################
/usr/bin/enable $PRNTR



Pete

Pete