Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Ultrix 4.1 and printers on LAT terminal servers
@ 1991-06-28 21:27 Kevin R. Fenster
  1991-07-03 16:59 ` Dietmar Weis
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin R. Fenster @ 1991-06-28 21:27 UTC (permalink / raw)


Slowly we make progress.

Here's the problem:  I've got this DECsystem 5500 running Ultrix 4.1.
I have a Xyplex printerserver Model 1400 running version 3.1 of the
Xyplex software.  I have a Printronix P6280L connected to port 3
on the printerserver.  The printer has a Dataproducts interface.
Hence the need to keep it on one of the parallel ports on the 1400.
When I try to lpr a text file, most of the times it works fine.  But
occasionally, the printerserver and the DECsystem won't breakdown the
connection between the two devices.  This means that next time lpd
tries to make a connection to the terminal server, the error file
shows a error

/usr/lib/lpd:  lp: cannot open /dev/tty09: Socket is already connected

If I use lcp, and disconnect the lat device (/etc/lcp -h /dev/tty09)
then I can restart the queue (/etc/lpc restart lp) and the printing
is happy, until the next time the connection doesn't get closed.

I need help!  Anybody else seen this?  Anybody have printers working
on a terminal server printing from Ultrix 4.1?  It appears that the
important parts are:  LAT & Ultrix 4.1.    I don't know if the
DECsystem 5500 has anything to do with it.  I also don't know if
the brand of terminal server has anything to do with it.  I am able
to duplicate the problem with a serial port on a Racal/InterLan NTS200
connected to an HP deskjet printer (the printer was free for ordering
pc's).

Additional info:  The printer and printerserver are working great
from a PDP-11/84 running RSTS version 10.0.  I have made the assumption
that if that works, then it must be a problem with Ultrix.  Bad
assumption?  (I should probably realize that any assumption is bad)


One thing I will try is a workaround that I just thought of.  I will
use lcp to associate the device (/dev/tty09) with the terminal server
and the port.  This looks something like

		/etc/lcp -h /dev/tty09:NWU_PS1:PORT_3

Then instead of lpd setting up the connection, I should be able
to treat /dev/tty09 as a regular serial port.

I do have some patches for lat.  The latest are:

	lat_scl1.o	2.10f
	lat_slot.o	2.8c
	lat_subr.o	2.6b
	lat_time.o	2.9c
	lat_vc.o	2.9c
	lta.o		2.10e
	ltt_trace.o	2.5a
	tty.c		4.5jfs

DEC support is sending me some newer patches, but it was not clear whether
they addressed the problems we are seeing.  They have confirmed that I have
my printcap file set up correctly (that wasn't exactly fun).

I'd like to hear if someone is making this work on some type of terminal
server with some type of printer from some sort of dec machine running
Ultrix 4.1.  Thanks for any assistance.

Later,
Kevin Fenster
Nebraska Wesleyan University
krf@NebrWesleyan.edu


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ultrix 4.1 and printers on LAT terminal servers
  1991-06-28 21:27 Ultrix 4.1 and printers on LAT terminal servers Kevin R. Fenster
@ 1991-07-03 16:59 ` Dietmar Weis
  1991-07-06 18:16   ` Tony Carrato
  0 siblings, 1 reply; 4+ messages in thread
From: Dietmar Weis @ 1991-07-03 16:59 UTC (permalink / raw)


krf@wucs1.wustl.edu (Kevin R. Fenster) writes:

>/usr/lib/lpd:  lp: cannot open /dev/tty09: Socket is already connected

	Nothing new. I got the same problem on every Risc system I
	installed. There were DSystem 3100, DSystem 5100, Dstation 3100.
	It appears with 4.0 and 4.1.

	I got also:
	lpd: cannot open /dev/tty??: connection timed out
	(including getty: cannot open /dev/tty??: connection timed out
	in the syslog file)
	(thats a hint to a more general lat problem.)
	lpd: outputfilter to lat malfunctioned
	lpd: retry #1 in 15 sec 

	We use Emulex P4000 Server.

>I need help!  Anybody else seen this?  Anybody have printers working
>on a terminal server printing from Ultrix 4.1?  It appears that the
>important parts are:  LAT & Ultrix 4.1.    I don't know if the
>DECsystem 5500 has anything to do with it.  I also don't know if
>the brand of terminal server has anything to do with it. 

	I agree to you: it looks like a big fat LAT problem in conjunction
	with Ultrix 4.x
	The famous LAT-Patches do not fix the problem.
	And it's independet of your hardware.

	PRINTING OVER LAT WITH ULTRIX 4.x SUCKS !

	You can even be glad if your CPU doesn't PANIC with unaligned access,
	print locks held by non-existing process.
	(ok, I think at least this bug is fixed with the patches.)

>		/etc/lcp -h /dev/tty09:NWU_PS1:PORT_3

	Don't do it. I did it yesterday. It resulted in the immediate
	"death" of the port.

	What you can see is: if the lat port is still ok,
	file /dev/tty<latport> gives sth like 
	character special (39,?) LAT #1 Terminal #?

	Afterwards, when the port is dead it gives only:
	character special (39,?)

	The LAT characteristic has been blown away.

>I do have some patches for lat.  The latest are:

>	lat_scl1.o	2.10f
>	lat_slot.o	2.8c
>	lat_subr.o	2.6b
>	lat_time.o	2.9c
>	lat_vc.o	2.9c
>	lta.o		2.10e
>	ltt_trace.o	2.5a
>	tty.c		4.5jfs

	I don't understand why even the 4.2 release already has its patches.
	Why is there any time, with any new release, a LAT included, which
	never works without patches, which will perhaps work with patches?
	Why isn't the new release already patched?

	There were the last months lots of related questions, and I
	read them very interested.
	But I can't remember that there was a real solution.
	Only the advise to install the patches.

	So perhaps this time.


>Later,
>Kevin Fenster
>Nebraska Wesleyan University
>krf@NebrWesleyan.edu

	Dietmar

-- 
weis@netmbx.UUCP         | Dietmar Weis         DONOP CONSULT GmbH
Voice: 030/884 28 54-0   |                      Uhlandstrasse 179/180
Fax:   030/882 55 29     |                      D - 1000 Berlin 12


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ultrix 4.1 and printers on LAT terminal servers
  1991-07-03 16:59 ` Dietmar Weis
@ 1991-07-06 18:16   ` Tony Carrato
  1991-07-09 13:30     ` Leonard J. Peirce
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Carrato @ 1991-07-06 18:16 UTC (permalink / raw)


In article <2456@netmbx.UUCP> weis@netmbx.UUCP (Dietmar Weis) writes:
>krf@wucs1.wustl.edu (Kevin R. Fenster) writes:
>
>>/usr/lib/lpd:  lp: cannot open /dev/tty09: Socket is already connected
>
>	Nothing new. I got the same problem on every Risc system I
>	installed. There were DSystem 3100, DSystem 5100, Dstation 3100.
>	It appears with 4.0 and 4.1.
>
>	I got also:
>	lpd: cannot open /dev/tty??: connection timed out
>	(including getty: cannot open /dev/tty??: connection timed out
>	in the syslog file)
>	(thats a hint to a more general lat problem.)
>	lpd: outputfilter to lat malfunctioned
>	lpd: retry #1 in 15 sec 
>
>	We use Emulex P4000 Server.
>
>>I need help!  Anybody else seen this?  Anybody have printers working
>>on a terminal server printing from Ultrix 4.1?  It appears that the
>>important parts are:  LAT & Ultrix 4.1.    I don't know if the
>>DECsystem 5500 has anything to do with it.  I also don't know if
>>the brand of terminal server has anything to do with it. 
>

	(Much editorial commentary removed)

There are a couple tricks to getting LAT printing under Ultrix.  However,
it's quite doable.

1) I'd recommend not sharing the port between Ultrix and VMS.  Ultrix forgets
to release the port periodically.

2) When you specify the printer's terminal server and port, you can EITHER
specify them in /etc/printcap OR in your lcp line.  Don't do both, it
confuses LAT.

3) Be sure that the ct field in /etc/printcap points to LAT, i.e. ct=lat.

4) Be sure you've got all the baud rates matching.  That seems to help.

5) Be sure your LAT port is set to access remote, break disabled.

6) Be sure the port is set to off in /etc/ttys.

That ought to do it.

Tony Carrato
carrato@mhinfo.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ultrix 4.1 and printers on LAT terminal servers
  1991-07-06 18:16   ` Tony Carrato
@ 1991-07-09 13:30     ` Leonard J. Peirce
  0 siblings, 0 replies; 4+ messages in thread
From: Leonard J. Peirce @ 1991-07-09 13:30 UTC (permalink / raw)


In article <35@mhinfo.UUCP> carrato@mhinfo.UUCP (Tony Carrato) writes:
>In article <2456@netmbx.UUCP> weis@netmbx.UUCP (Dietmar Weis) writes:
>>krf@wucs1.wustl.edu (Kevin R. Fenster) writes:
>>
>>>/usr/lib/lpd:  lp: cannot open /dev/tty09: Socket is already connected
>>
>>	Nothing new. I got the same problem on every Risc system I
>>	installed. There were DSystem 3100, DSystem 5100, Dstation 3100.
>>	It appears with 4.0 and 4.1.
>>
>> [...]
>>
>>>I need help!  Anybody else seen this?  Anybody have printers working
>>>on a terminal server printing from Ultrix 4.1?  It appears that the
>>>important parts are:  LAT & Ultrix 4.1.    I don't know if the
>>>DECsystem 5500 has anything to do with it.  I also don't know if
>>>the brand of terminal server has anything to do with it. 
>>
> [...]
>1) I'd recommend not sharing the port between Ultrix and VMS.  Ultrix forgets
>to release the port periodically.

I got rid of the hung port problem when sharing between Ultrix and VMS.
I did three things:

   1) Got the LAT patches from DEC (grr....)

   2) Specified the terminal server and port when LAT is started in rc.local.
      I was using it in printcap but after I got it working the other way
      I didn't to mess with it.  It might work just fine in printcap.

   3) Protected lpd the way it's supposed to be protected.  It should be
      owned by root, group daemon, and protected 6711 (setuid, setgid).
      I think it was 700, owner root, group system in the distribution.

Ports don't hang anymore and the VMS people were especially happy.  A problem
still exists with LAT printing, though.

It happens when VMS already has the port and Ultrix comes along and tries to
open it.  The Ultrix open fails and thinks that the queue is terminally ill
even though the port is just busy.  The daemon dies and has to be restarted
manually.  lpd isn't smart enough (at least the LAT code isn't, anyway) to
realize the port was just busy and to keep trying.  It's also possible that
LAT is returning the wrong error code.  On VMS, if there is a problem accessing
a printer it will keep trying indefinitely.

If I had the source I'd fix it myself.  Unfortunately, our source license
is still in the works.  I've seen the code for the 3.1 lpd and the fix should
be trivial.  All it needs is some code that will continue trying the open
after it fails.  Anyone with 4.x source want to try it?

--
Leonard J. Peirce               Internet:  peirce@gumby.cc.wmich.edu
Western Michigan University                peirce@gw.wmich.edu
Academic Computing Services
Kalamazoo, MI  49008            Phone:     (616) 387-5469

"Answer that, it may be the phone." -- Anthony Wachs, TONY IN RH20 LAND


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1991-07-09 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-06-28 21:27 Ultrix 4.1 and printers on LAT terminal servers Kevin R. Fenster
1991-07-03 16:59 ` Dietmar Weis
1991-07-06 18:16   ` Tony Carrato
1991-07-09 13:30     ` Leonard J. Peirce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox