Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Lpd Printer not working 1

Status
Not open for further replies.

Patrickp1973

IS-IT--Management
Jan 14, 2004
18
US
I am in the process of converting from an openserver 5.05 to an openserver 5.06 machine running on another host.
When attempting to print from the 5.06 machine to a remote linux machine i am getting the following error messages

lp: connect: Connection refused
jobs queued, but cannot start daemon.

Lpstat returns the following
lp10@shelly 1 job
scoserver: Warning: lp11 is down: sending to shelly
scoserver: Warning: lp11 queue is turned off
scoserver: sending to shelly
Req-Id Owner Size Date
lp11-815 root 517 Jan 14 15:51

But the job will never go anywhere.

I am able to print to this machine from the 5.05 server and also from other linux servers so there is not an issue with the lpd daemon running on said system

My printcap entry on scoserver looks like this ( same on 5.05 and 5.06 systems )

lp11:rm=shelly:rp=lp11: :sd=/usr/spool/lpd/lp11:



Results of uname -X

System = SCO_SV
Node = scoserver
Release = 3.2v5.0.6
KernelID = 2000-07-27
Machine = >PentIII
BusType = ISA
Serial = 2FD010134
Users = 16-user
OEM# = 0
Origin# = 1
NumCPU = 1

Rs506A and OSS646B have been applied.


Any ideas ?
 
Is it lp10 or lp11? if they are different queues does lp10 work?
if it is a typo then, is the name "scoserver" unique and is it the name that the linux machine resolves the ip to?
and is that name in the /etc/hosts.lpd file on the linux machine?
 
Actually both lp10 and lp11 both have the same issue. 2 seperate queues on shelly ( lp0 and lp1 )

name scoserver is unique and properly resolves via dns.

Scoserver is the OpenServer 5.06 server
Shelly is the Redhat Linux 8 machine.

I currently do not have a hosts.lpd file on the redhat machine nor did i require one to print from the other SCO machine running 5.05

/etc/hosts on all machines have machines names in them

 
Is
Code:
 lpd
running on scoserver ?

Hope This Help
PH.
 
I found the resolution last night.. I am not exactly sure what steps actually resolved it but i did the following

1 - Removed all printers from /etc/printcap
2 - Removed Remote Printing via mkdev rlp
3 - Installed Remote Printing via mkdev rlp
4 - Added each remote printer back with the rlpconf utility

5 - Tested each printer successfully
 
Patrick,

I would like to know the steps you did in setting this up, I am setting the exact same thing up.

Sco 5.5 (main office) to linux with printserver at remote location.

thanks.

mattmc
 
man rlpconf

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I have set up rlpconf on the SCO 5.0.5 Unix box to add lp70 to the printcap file is as follows:

lp70: :lp=:rm=192.168.208.200:rp=lp70:sd=/usr/spool/lpd/lp70:

The usr/spool/lpd/lp70 file is setup as well per instructions.

On the linux machine (it is local right now once I get it working I will move it to remote site)

In /etc/cups/printers.conf

<Printer LP70>
Info Brother-1440 hl1250
Location i/s
DeviceURI socket://192.168.208.100:4020/
State Idle
Accepting Yes
Jobsheet none none
QuotePeriod 0
PageLimit 0
KLimit 0
</Printer>

(note: the 192.168.208.100:4020 sends it to the LP2 of the 3 port network printserver)

In /etc/printcap

LP70|Brother HL-1440 hl1250:rm=:rp=lp70:

I edited the /etc/hosts.lpd file on the linux machine with

192.168.208.2 deterww

I have issued cat /etc/printcap | lp - d lp70 from the linux box and it prints fine but will not print when I issue the same command from the unix box.

I can ping the linux box from the unix box and I can telnet from the unix box to the linux box on port 515 which should mean it is getting through.

Any ideas?

How can I check and see if the command is even getting to the linux box?

thanks.

mattmc
 
On the SCO box, what is the result of rlpstat lp70 ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
rlpstat lp70 yields:

deterww: sending to tdclinux
Req-ID Owner size date
Lp70-0 root 595 feb 23 11:27

lp70 is ready

I am drudging through some SCO knowledge base stuff and think I found part of the problem, before my printer was not enabled ( I don't think anyway:<) I issued some commands to try to enable it and it said ok but I think I did it wrong. here is the command:

lpadmin -p lp70 -v dev/null

I think this is for a local printer though, and I am googling for this now.

Could this be the issue and do you have any ideas?

thanks.

mattmc
 
Not sure if you've done this before, but to allow a printer to be printed to on SCO, you have to:

enable <printername> (enables the queue)
accept <printername> (tells it to accept requests)

So, to configure a local printer, you'd do something like:
/usr/lib/lpadmin -p <printername> -i /var/spool/lp/model/<modelname> -v /dev/ttya10 (or /dev/null if it's an IP printer)

then the 'enable' and 'accept' commands.

If you're doing an IP printer, you have to put in the printcap entries.

rlpconf or mkdev rlp enable lpd if there are entries in the printcap file and allow remote people to print to you.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top