[comp.unix.ultrix] Shared Printers

murray@motto.UUCP (Murray S. Kucherawy) (05/22/91)

I seem to recall a thread about this recently, but I've just been informed
that we are now interested in doing this, and the thread's expired here,
so forgive me for asking again.

Is it possible for VAXen (some VMS, some Ultrix) to share printers,
other than using a DECserver to drive them?

=============================== Murray S. Kucherawy ==========================
Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
University of Waterloo, Ontario, Canada               2B Math/Computer Science
Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW) 
UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy

mst@tsc.enet.dec.com (Mike Temkin) (05/22/91)

In article <174@motto.UUCP> murray@motto.UUCP (Murray S. Kucherawy) writes:
>Is it possible for VAXen (some VMS, some Ultrix) to share printers,
>other than using a DECserver to drive them?
>
>=============================== Murray S. Kucherawy ==========================

Yes, via the DECnet-Ultrix software.  I am not sure if UCX supports it tho, you
might want to contact your local sales office.

Mike.

Disclaimer:
These opinions are my own, I can't even give them away.

grr@cbmvax.commodore.com (George Robbins) (05/22/91)

In article <3196@shodha.enet.dec.com> mst@tsc.enet.dec.com (Mike Temkin) writes:
> In article <174@motto.UUCP> murray@motto.UUCP (Murray S. Kucherawy) writes:
> >Is it possible for VAXen (some VMS, some Ultrix) to share printers,
> >other than using a DECserver to drive them?
> >
> >=============================== Murray S. Kucherawy ==========================
> 
> Yes, via the DECnet-Ultrix software.  I am not sure if UCX supports it tho, you
> might want to contact your local sales office.

The sharing of DECserver printer ports is via LAT, DECnet/Ultrix is *not* needed
to get this functionality.


-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)

Carpenter@Fwva.Saic.Com (Apprentice Wizard Wannabe) (05/22/91)

murray@motto.UUCP (Murray S. Kucherawy) writes:
>I seem to recall a thread about this recently, but I've just been informed
>that we are now interested in doing this, and the thread's expired here,
>so forgive me for asking again.
>
>Is it possible for VAXen (some VMS, some Ultrix) to share printers,
>other than using a DECserver to drive them?
>
>=============================== Murray S. Kucherawy ==========================
>Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
>University of Waterloo, Ontario, Canada               2B Math/Computer Science
>Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW) 
>UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy
 
   For VMS, set up a que on the node the printer is connected to. Then create a
generic on each node in the cluster. (only works ina cluster)
eg.
$ DEFINE SYMBOLS FOR TERMQUE_NAME AND USE LEXICAL FOR NODENAME HERE
$  Initialize /Queue /Start /Default=(Flag,NoBurst) -
	/On=NODE::'TermQue_Name' 'TermQue_Name'
$!          ^^^^ The node the printer is connected to
$  Initialize /Queue /Start /Generic='TermQue_Name' Sys$Print
$!  Define /System  Sys$Print 'NodeName'$Print
 
|=-=-=-=-=-=-=-=-=-=-=-=-=-|\
|Scott Carpenter           |  \
|VAX System Manager        |    \
|SAIC Falls Church, VA     |______\     
|Carpenter@Fwva.Saic.Com   |
|75500.446@Compuserve.Com  |
|=-=-=-=-=-=-=-=-=-=-=-=-=-|   

murray@motto.UUCP (Murray S. Kucherawy) (05/23/91)

grr@cbmvax.commodore.com (George Robbins) writes:
>The sharing of DECserver printer ports is via LAT,
>DECnet/Ultrix is *not* needed
>to get this functionality.

That's not what I had in mind.  Our printers are currently on the DECserver
using LAT.  We want to take them off and put them on the VMS machine,
but still allow the Ultrix machine and the other VMS machines to be able
to use those printers.  All the machines are equipped with DECnet.

Can this be done?

=============================== Murray S. Kucherawy ==========================
Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
University of Waterloo, Ontario, Canada               2B Math/Computer Science
Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW) 
UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy

davidh8@pogo.WV.TEK.COM (David Haight) (05/23/91)

murray@motto.UUCP (Murray S. Kucherawy) writes:
>I seem to recall a thread about this recently, but I've just been informed
>that we are now interested in doing this, and the thread's expired here,
>so forgive me for asking again.
>
>Is it possible for VAXen (some VMS, some Ultrix) to share printers,
>other than using a DECserver to drive them?
>
>=============================== Murray S. Kucherawy ==========================
>Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
>University of Waterloo, Ontario, Canada               2B Math/Computer Science
>Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW) 
>UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy


We (Tektronix) have a print symbiont for VMS that allows VMS to print to
our eithernet attached color printer via the Unix protocol (TCP/IP, LPR)
making the printer available to both VMS and Ultrix (unix) machines
on the network.



-----------------------------------------------------------------------
David Haight            | davidh8@pogo.wv.tek.com          | INTERNET
Tektronix, GPID Div.    | {backbone}!tektronix!pogo!davidh8| UUCP
PO Box 1000, M/S 63-630 | (USA) (503) 685-3151             | VOICE
Wilsonville, OR 97070   | (USA) (503) 685-3063             | FAX
-----------------------------------------------------------------------

avolio@decuac.dec.com (Frederick M. Avolio) (05/23/91)

The original question was "other than using DECservers".  The answer is
that there is no support for ULTRIX to print to printers on a VMS system
nor the other way around via DEC standard products.

Fred

kras@syorrk.nac.dec.com (Bob Kras) (05/23/91)

Actually, DECNET/ULTRIX does provide a rudimentary feature for printing
files remotely:  The "-P" flag to dcp will print to the default printer
(I believe this is the VMS logical SYS$PRINTER)

It gets a little stickey if you want to select the queue you would like
to print to:

Sufficiently sophisticated hacks have created shell scripts for print
filters that create VMS jobs to do the copy/print/delete using the "dcp
-S" option to submit the job to the VMS batch queue sys$batch.


Newsgroups: comp.unix.ultrix
Subject: Re: Shared Printers
Summary: 
Expires: 
References: <174@motto.UUCP> <3196@shodha.enet.dec.com> <21789@cbmvax.commodore.com> <1991May23.030216.7900@decuac.dec.com>
Sender: 
Followup-To: 
Distribution: 
Organization: Digital Equipment Corporation 
Keywords: 

Actually, DECNET/ULTRIX does provide a rudimentary feature for printing
files remotely:  The "-P" flag to dcp will print to the default printer
(I believe this is the VMS logical SYS$PRINTER)

It gets a little stickey if you want to select the queue you would like
to print to:

Sufficiently sophisticated hacks have created shell scripts for print
filters that create VMS jobs to do the copy/print/delete using the "dcp
-S" option to submit the job to the VMS batch queue sys$batch.

grr@cbmvax.commodore.com (George Robbins) (05/23/91)

In article <178@motto.UUCP> murray@motto.UUCP (Murray S. Kucherawy) writes:
> grr@cbmvax.commodore.com (George Robbins) writes:
> >The sharing of DECserver printer ports is via LAT,
> >DECnet/Ultrix is *not* needed
> >to get this functionality.
> 
> That's not what I had in mind.  Our printers are currently on the DECserver
> using LAT.  We want to take them off and put them on the VMS machine,
> but still allow the Ultrix machine and the other VMS machines to be able
> to use those printers.  All the machines are equipped with DECnet.
> 

Well, Multinet provides BSD compatible print spooling services.  I think most
of the competitive products do also, but who knows about UCX?  It should also
be possible to do something with the DECnet/Ultrix "TELL"/remote objects to
submit jobs that dump things in VMS queues.

Excuse me if I've overlooked something obvious.  We've used an assortment of
things here which have evolved over time.  I think we started with the tell
approach, then did a third-party thing when we got sunlink DNI (decnet for Sun)
where ultrix remoted printed to suns which remote printed to VMS, but now we
depend on the Multinet services.

-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)

JIW2@psuvm.psu.edu (05/23/91)

 All of this recent discussion of printer sharing between VMS and
Ultrix machines brings up a related problem of my own:  At our
site, we have both a VAXstation 3100 and DECstation 3100, sharing
a printer via LAT through a DECserver 200.  Our problem is that
if the two machines try to print at the same time, one of the print
jobs gets aborted.  In fact, if the Ultrix machine is in the midst
of printing a file and someone submits a job from VMS, the Ultrix
job is lost completely.  What's wrong with this picture?

 Poring over the Ultrix documentation hasn't enlightened me much.
Does anyone have any suggestions as to how to get these two machines
to share the printer (an LN03R) amicably?  I hope this is a dumb
question -- dumb questions always have simple answers.


                                       John Wagner

                                Pennsylvania State University

osyjm@cs.montana.edu (05/23/91)

In article <1991May23.030216.7900@decuac.dec.com> avolio@decuac.dec.com writes:
>The original question was "other than using DECservers".  The answer is
>that there is no support for ULTRIX to print to printers on a VMS system
>nor the other way around via DEC standard products.



Well there is always the method of using dcp -P to some account on the
VMS node that has a proxy set up.  I guess you don't really need the
proxy, but it makes it simpler.  

I don't see any easy way of doing via lpr though...
-- 
 Jaye Mathisen,sysmgr 410 Roberts Hall,Dept. of Computer Science
 Montana State University,Bozeman MT 59717        PHONE: (406) 994-{4780,3931} 

grr@cbmvax.commodore.com (George Robbins) (05/24/91)

In article <91143.090125JIW2@psuvm.psu.edu> JIW2@psuvm.psu.edu writes:
> 
>  All of this recent discussion of printer sharing between VMS and
> Ultrix machines brings up a related problem of my own:  At our
> site, we have both a VAXstation 3100 and DECstation 3100, sharing
> a printer via LAT through a DECserver 200.  Our problem is that
> if the two machines try to print at the same time, one of the print
> jobs gets aborted.  In fact, if the Ultrix machine is in the midst
> of printing a file and someone submits a job from VMS, the Ultrix
> job is lost completely.  What's wrong with this picture?

Do you have the print queueing enabled on the server for that port?
-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)

bill@unixland.uucp (Bill Heiser) (05/24/91)

In article <91143.090125JIW2@psuvm.psu.edu> <JIW2@psuvm.psu.edu> writes:
>jobs gets aborted.  In fact, if the Ultrix machine is in the midst
>of printing a file and someone submits a job from VMS, the Ultrix
>job is lost completely.  What's wrong with this picture?
>

Hee hee!  Maybe this is DEC's subtle way of saying who's the boss?  :-)



-- 
bill@unixland.uucp                 The Think_Tank BBS & Public Access Unix
    ...!uunet!think!unixland!bill
    ..!{uunet,bloom-beacon,esegue}!world!unixland!bill
508-655-3848 (2400)   508-651-8723 (9600-HST)   508-651-8733 (9600-PEP-V32)

mst@tsc.enet.dec.com (Mike Temkin) (05/24/91)

In article <178@motto.UUCP> murray@motto.UUCP (Murray S. Kucherawy) writes:
>grr@cbmvax.commodore.com (George Robbins) writes:
>>The sharing of DECserver printer ports is via LAT,
>>DECnet/Ultrix is *not* needed
>>to get this functionality.
>
>That's not what I had in mind.  Our printers are currently on the DECserver
>using LAT.  We want to take them off and put them on the VMS machine,
>but still allow the Ultrix machine and the other VMS machines to be able
>to use those printers.  All the machines are equipped with DECnet.
>
>Can this be done?
>
>=============================== Murray S. Kucherawy ==========================
>Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
>University of Waterloo, Ontario, Canada               2B Math/Computer Science
>Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW)

>UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy
>

Yes.  I just tested it out today.  It is possible with the DECnet-Ultrix
software.

Using the dcp command with the -P option you can print a file from Ultrix
to VMS (I also reassign SYS$PRINT to my local printer in my LOGIN.COM and it
works fine).

Going the other way you copy the file to the Ultrix system, via the COPY
command,
and then issue a PRINT/REMOTE command on VMS for the Ultrix system.  This will
by
default print to 'lp'.  What follows is from the DECnet-Ultrix 3.0 Release
Notes
(I have tested it with DECnet-Ultrix 4.0 and it works there also):

=============================================================================

2.4.6  Parameters for the File Access Listener (fal)

[some descriptions deleted]

For example, this command causes the DECnet object spawner to run the file
/etc/fal_params when fal receives a connection request:

     % ncp set object fal file /etc/fal_params

[more deleted stuff]

The following example assigns default values to the environmental variables
used by fal.  Note that the last line in the file executes the standard file,
/usr/etc/fal, which does the actual work.

     #! /bin/csh -f
     # explicitly set fal parameters to their default values
     #
     setenv fal_trace 0
     setenv fal_tracefile FAL_TRACE
     setenv fal_clobber 0
     setenv fal_umask 91
     setenv fal_print "/usr/ucb/lpr"
     exec /usr/etc/fal

[a table follows with a description of the variables]

===============================================================================

The above is from the notes with code corrected.  In the notes, "fal_var" is
written as "fal var" with the underscore mistakenly left out.

On my test system, I wanted the output to be printed on the printer "ln03" so
I inserted the following line before the fal_print line:

      setenv PRINTER ln03

That should do it.

Mike.

These opinions are my own, I can't even give them away.

la_carle@sol.brispoly.ac.uk (Les Carleton) (05/24/91)

In article <1991May23.030216.7900@decuac.dec.com> avolio@decuac.dec.com (Frederick M. Avolio) writes:

   The original question was "other than using DECservers".  The answer is
   that there is no support for ULTRIX to print to printers on a VMS system
   nor the other way around via DEC standard products.

   Fred

Not True, I have seen this done but it is a hack. Under UCX you can
write a (forgive the ultrixism vmsy-types) daemon to wake up on calls
to the lpd socket and transfer the job into the VMS queues. Please
don't write to me asking how this is done exactly 'cos I ain't got the
UCX knowledge to tell you. JB are you out there?

...Les...
"Ultrix like you've never seen"

yzarn@lhdsy1.chevron.com (Philip Yzarn de Louraille) (05/24/91)

Yes it can be done using the tell command to send the files to be
printed to the VMS machines using DECnet.
-- 
  Philip Yzarn de Louraille                 Internet: yzarn@chevron.com
  Research Support Division                 Unix & Open Systems
  Chevron Information & Technology Co.      Tel: (213) 694-9232
  P.O. Box 446, La Habra, CA 90633-0446     Fax: (213) 694-7709