HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

LPD/LPR question

 
Willem Grooters
Honored Contributor

LPD/LPR question

Who can help me on:

A cutomer requires LPD for printing services, so LPD/LPR has been set up with TCPIP$CONFIG and the service and server have started:

LUXOR> tcpip
TCPIP> sh serv/fu lpd

Service: LPD
State: Enabled
Port: 515 Protocol: TCP Address: 0.0.0.0
Inactivity: 5 User_name: TCPIP$LPD Process: TCPIP$LPD
Limit: 10 Active: 0 Peak: 0

File: TCPIP$SYSTEM:TCPIP$LPD_RECV_RUN.COM
Flags: Aprox Listen

Socket Opts: Rcheck Scheck
Receive: 0 Send: 0

Log Opts: Acpt Actv Dactv Conn Error Exit Logi Logo Mdfy Rjct TimO Addr
File: SYS$SPECIFIC:[TCPIP$LPD]TCPIP$LPD_RECV_RUN.LOG

Security
Reject msg: not defined
Accept host: 0.0.0.0
Accept netw: 0.0.0.0

A printer has been defined (according the manual):

LUXOR> mcr sys$system:TCPIP$LPRSETUP.EXE

TCPIP Printer Setup Program

Command < add delete view help exit >: view
#
# LOCAL PRINTERS
#
TCPIP$LPD_QUEUE:\
:lp=TCPIP$LPD_QUEUE:\
:sd=TCPIP$LPD_SPOOL:
#
HPLJ4|hplj4:\
:lp=HPLJ4:\
:sd=/TCPIP$LPD_ROOT/HPLJ4:\
:fm=DEFAULT:
#

but when trying to print, this happens:

%%%%%%%%%%%% 13-NOV-2003 08:10:32.37 %%%%%%%%%%%%

%TCPIP-F-LPD_UNPRTR, unknown printer

Has anything been missed?
Willem Grooters
OpenVMS Developer & System Manager
7 REPLIES
Lokesh_2
Esteemed Contributor

Re: LPD/LPR question

Hi,

Search for logical TCPIP$LPD_PRINTCAP. Do, it poing to correct LPD princap file.
Or give the following command to check:

$ search TCPIP$LPD_PRINTCAP

If nothing is found, then this problem comes up.

Other thing to check,
1. $tcpip sho device <== port 515 is there or not
2. check whether spooler directory is created or not.

Best regards,
Lokesh
What would you do with your life if you knew you could not fail?
Willem Grooters
Honored Contributor

Re: LPD/LPR question

Lokesh,

Your last two suggestions first: Both port 515 has been created (see my message!) and the spooled-directory exists (at least, that's my assumption).

Your first point: I guess the logical exists, but assume it is since the printrequest does not complain about a file not being found (or other LPD-related items)

As for the second suggestion: In PRINTCAP there is an entry for HPLJ4 (see message).
As from your suggestion for a search on PRINTCAP, I conclude HPLJ4 should be q QUEUE, NOT A DEVICE. So that may indeed be the problem. How does this relate to TCPIP$LPD_QUEUE? Should that be a logical, or should there be a printer-queue with that name (genberic or execution, I don't think that would matter). In that case, the question on linking a printer NAME to it's IP-address is solved as well.

Willem
Willem Grooters
OpenVMS Developer & System Manager
Karl Rohwedder
Honored Contributor

Re: LPD/LPR question

Simple question:
Does a queue HPLJ4 exist (SHOW QUE HPLJ4)?
Lokesh_2
Esteemed Contributor

Re: LPD/LPR question

Hi Willem,

what output you get if you give command:

$lpq hplj4

if you get the same error message, then I guess your logical TCPIP$LPD_PRINTCAP is not properly defined. Can you restart LPD services?

and if you get error message as:

no such queue

then the queue HPLJ4 is not defined on the system. ( check $sho que HPLJ4 )

Best regards,
Lokesh
What would you do with your life if you knew you could not fail?
Dieter Rossbach
Regular Advisor

Re: LPD/LPR question

What happens when you do:

$ telnet hplj4m 515

?
Åge Rønning
Trusted Contributor

Re: LPD/LPR question

I've seen this been reported in cluster where TCPIP$LPD_QUEUE queue is running on a node with different printcap file.
If this is a cluster it could be worth checking.
VMS Forever
Willem Grooters
Honored Contributor

Re: LPD/LPR question

***********************
--- PROBLEM SOLVED ---
***********************
Thanks to all, each gave just a little push in some direction - but it turned out that the printer the customer mentioned, was not defined as a host. Next, queues had to be defined properly - which seemed to be required to map the printer's port.
Final PRINTCAP and QUEUE definitions appened (even whe the printer got a different name - it's one way to set things up)

Willem
Willem Grooters
OpenVMS Developer & System Manager