SUMMARY: passing lp options from clients to printserver

From: John Stoffel (jfs@fluent.com)
Date: Thu Oct 23 1997 - 11:00:07 CDT


I've looked through the archives for sun-managers and various FAQs,
but I haven't come up with an answer.

My setup is a Solaris 2.5.1 machine acting as printserver for out
building. It talks to various HP LaserJet 4 & 5 printers, a Tektronix
and Canon color printers. I'm using the JetAdmin software from HP to
control the HP printers and it works fine. I'm setup to use the SYSV
lp print system on the server and most clients. I've got patch
103959-05 but I haven't applied it to the server yet, though it is
applied to one Solaris 2.5.1 client.

My clients are a whole grab bag of systems, alot of Solaris 2.5.1
boxes, SGIs, HPs, Windows NT 4.0, DECs, IBMs and some odd-ball
systems. All can print (with some minor problems from time to time)
through the printserver. The Windows NT systems work great, since
they can set print options themselves and they get sent through
without problems.

What I can't do is pass options to the printers from the clients. For
example, if I'm on the server I can do:

        lp -dbonham -olandscape <file>

and it will print landscape. But if I try this from a Solaris 2.5.1
client (patched with 103959-05), it silently ignores the option,
though the file prints in portrait mode. Note, none of the clients
is running the jetadmin software.

I know I can get around this by just defining a bunch of new print
queues on the printhost for each type of printing I want to do, and
then point a queue on the client to there. I'd really like to get
away from this if I can, if only to cut down the number of queues we
have to keep around.

Does anyone have any suggestions? Thanks.

John

     John Stoffel - Senior Unix Systems Administrator - Fluent, Inc.
        jfs@fluent.com - http://www.fluent.com - 603-643-2600 x341
                  Honk if you love peace and quiet!


From: Matthew Stier <Matthew.Stier@tddny.fujitsu.com>
Sender: "Matthew Stier" <Matthew.Stier@tddny.fujitsu.com>
To: John Stoffel <jfs@fluent.com>
Subject: Re: passing lp options from clients to printserver
Date: Thu, 23 Oct 1997 08:29:03 -0400

As long as BSD is used as the transport mechanism, on the clients, you
can replace the eight field in the /etc/lp/Systems file with
'SVR4-Extensions'.

 printhost:x:-:bsd:-:n:10:SVR4-Extensions:-:

--
Matthew Lee Stier                    *  Fujitsu Network Communications
Unix Systems Administrator           |  Two Blue Hill Plaza
Ph: 914-731-2097 Fx: 914-731-2011    |  PO Box 1609
Matthew.Stier@tddny.fujitsu.com      *  Pearl River, NY 10965

From: reineman1@llnl.gov To: jfs@fluent.com Subject: Re: passing lp options from clients to printserver Date: Wed, 22 Oct 1997 15:12:39 -0700 (PDT) Message-Id: <199710222212.PAA06817@lunger.llnl.gov>

If those options you are passing to lp are provided by jetadmin, then the client systems need jetadmin to use those options also. That has been one of my complaints about jetadmin, HP expects you to install it everywhere. I went with the different spooler option. It's not that hard, just hack up a few model scripts, and point the client at the correct spooler.

I have also had very good luck replacing the Solaris SV print stuff with Suns new BSD style print utility. It's on one of the supplementary CD's with Solaris 2.5 and 2.5.1. Comes standard in Solaris 2.6

Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rick Reineman Lasers CAD&UNIX Systems Management Lawrence Livermore National Laboratory reineman1@llnl.gov

--JYpjn7egW/

From: seeger@cise.ufl.edu (Charles Seeger) To: John Stoffel <jfs@fluent.com> Subject: Re: passing lp options from clients to printserver Date: Wed, 22 Oct 1997 19:08:36 -0400 Message-Id: <199710222308.TAA15557@lightning.cise.ufl.edu>

John, the client and the server are probably talking the bsd (lpd) protocol rather than the native SVR4 protocol. The latter will pass options like "lp -olandscape", but not the former. On the clients, the printers were probably defined with the "-t bsd" option to lpsystem. Use "-t s5" or specify no lpsystem type option when defining the printer and the lp options should work.

Best, Chuck -- Charles Seeger <seeger@cise.ufl.edu>

--JYpjn7egW/

From: "K.Ravi" <RAVKRISH.IN.oracle.com.ofcmail@in.oracle.com> To: jfs@fluent.com Subject: Re: passing lp options from clients to printserver Date: 23 Oct 97 11:23:24 +0330 Message-Id: <199710230807.DAA15631@dwarpal.in.oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_ORCL_2079055_0_11919710231238250"

--=_ORCL_2079055_0_11919710231238250 Content-Transfer-Encoding:7bit Content-Type:text/plain; charset="us-ascii"

Hi, The printer specific options specified at the client side (using '-o') are not passed to the server if you are using BSD-style print spooling. And I guess you don't have the choice of switching to System V since some (probably most) of your clients don't support this. Solaris does support this, so you should be able to get this working at least from the Solaris clients. -Hope this helps, Ravi. ______________________________________________________________________________

| K.Ravi, India Product Engineering Center| Opinions expressed here are my own Oracle Software India Ltd. | and do not necessarily represent Bangalore - 560 001. | those of Oracle Corporation. ______________________________________________________________________________

--JYpjn7egW/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:06 CDT