Operating System - HP-UX
1834379 Members
2397 Online
110066 Solutions
New Discussion

Passing print option from hpux to remote solaris print server

 
Christopher LaPlante_1
Frequent Advisor

Passing print option from hpux to remote solaris print server

We have an a group of hpux systems that are trying to print to a solaris print server. On the hpux systems we have the print queues setup
as remote printers to the solaris box which has all the printer setup through hppi. Is there a way to pass option such as landscape to the print server. Or is this a system V/BSD problem and will I have to add all the printers through hppi on each hpux system?
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Passing print option from hpux to remote solaris print server

Christopher,

As I understand it, you can't do this with "remote" printers. The only way to accomplish this is to define "network" printers through hppi.



Pete

Pete
Bill Douglass
Esteemed Contributor

Re: Passing print option from hpux to remote solaris print server

As the rlp man page indicates, options can only be set on the local print server. This is a function of the remote lpd protocol.

If you don't need too many combinations of options, then you can set up specific queues for various options (prt1, prt1_land, prt1_duplex) on the Sun box and hardcode the various options in the model script.

If you need more control pver the print jobs, then you will have to create the print queues on each HP-UX system.
Christopher LaPlante_1
Frequent Advisor

Re: Passing print option from hpux to remote solaris print server

I have been able to pass options to the remote queue but the first option is always invalid. Seem that the rlp is sending a "O" as the 1st option no matter if options are specified or not. But the 2nd, 3rd options are passed correctly.

lp -d test
Option from banner bage:
Options: O
Invalid Options: O

lp -d test -o tray1
Option from banner bage:
Options: Otray1
Invalid Options: Otray1

lp -d test -o tray1 -o landscape
Option from banner bage:
Options: Otray1 landscape
Invalid Options: Otray1