Operating System - HP-UX
1837191 Members
2707 Online
110114 Solutions
New Discussion

Remote printing to an IP address

 
SOLVED
Go to solution
Tim O'Connell
Regular Advisor

Remote printing to an IP address

On my previous server running Unixware 2.1.3, there was a simple way to print to a printer in another site. The procedure was:
Put entry in hosts file - "99.99.999.99 lp20"
Specify remote lp - "lpsystem -t bsd lp20"
Specify unix queue - "lpadmin -p lp20 -s lp20"
accept & enable lp20
I could then do "lp -d lp20 filename".

Is there a similar way to do it on HPUX11. Lpsystem doesn't seem to exist.

Thanks,

Tim
3 REPLIES 3
V. Nyga
Honored Contributor
Solution

Re: Remote printing to an IP address

Hi,

you an do it through SAM.

If you prefer ux commands, then I think a search in this forum will show many threads with this commands.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Pete Randall
Outstanding Contributor

Re: Remote printing to an IP address

Hi Tim,

There's basically two ways to do his in HP-UX: through lp or through the hppi interface. In lp, you would add this with the lpadmin command like this:
lpadmin -p$PRNTR -orm$LOC -orp$PRNTR -mrmodel -v/dev/null -ob3 -ocmrcmodel -osmrsmodel"

where $PRNTR is the queue name for the printer and $LOC is the fully qualified domain name of the host on which the printer resides.

To use the hppi interface (HP Printer Installer), you first need to download the hppi program from here:

http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18922&taskId=135&prodTypeId=18972&prodSeriesId=27349〈=en&cc=us

After installing, you then add the printer like this:
addqueue -h $IP -q $PRNTR -b off

where $IP is the ip address and $PRNTR is the name of the queue and the "-b off" is to try to ensure that we don't get any damn banner pages!


Pete

Pete
Tim O'Connell
Regular Advisor

Re: Remote printing to an IP address

Thanks for the replies. Got it working thru' sam with an entry in /etc/hosts.

Many thanks,

Tim