Operating System - Tru64 Unix
1753783 Members
7141 Online
108799 Solutions
New Discussion юеВ

Re: lpc Status output

 
manuj kumar
Frequent Advisor

lpc Status output

Hi All,
we have tru64 v.4.0F & tru64 v.5.1B ,in tru64 v,44.0F:
When we give status for the printer in the .we get the print server and port information as follows:
lpc> status lp72
lp72:
printer is on remote host LIF1 with name text3
queuing is enabled
printing is enabled
no entries
no daemon present
But in the Tru64 5.1B-u5 with the same printer:
When we give status for the printer,we get the print server and port information as follows:
lpc> status lp72
lp72:
printer is on device '/' speed 9600
queuing is enabled
printing is enabled
no entries
no daemon present
How to get more info on the printers in v5.1B like 4.0F?

6 REPLIES 6
Rob Leadbeater
Honored Contributor

Re: lpc Status output

Hi,

Are the printcaps set the same on the 4.0F and 5.1B machines ?

I've not got a v5 machine to look at right now, but I'd expect the output to be similar...

Cheers,

Rob
Pieter 't Hart
Honored Contributor

Re: lpc Status output

details can be found in the /etc/printcap files of both systems.

first impression is the printer is physically connected to the 5.1 host end the 4.0 host is using the 5.1 host as a printserver (remote host).

what more information are you looking for?
manuj kumar
Frequent Advisor

Re: lpc Status output

All the printers are connected to the Network through a print Server...all the printers are old dot matrix printers...
the strange thing is that in the 4.0 F the
lpc status cmd for the printers gives different output in 5.1B ...
the printcap file is the same in the two servers.

for example:

in 4.0 F:
**********
lpc> status lp72
lp72:
printer is on remote host LIF1 with name text3
queuing is enabled
printing is enabled
no entries
no daemon present

in 5.1B
*******
lpc> status lp72
lp72:
printer is on device '/' speed 9600
queuing is enabled
printing is enabled
no entries
no daemon present



Pieter 't Hart
Honored Contributor

Re: lpc Status output

If the printcap fileas really are the same, i cannot explain this.
But from your output I have some doubts if they really are the same.

Double check if this describes the same printer.

You say you are using en external printserver.
Double check if this printserver is addressed the same way,
I mean not one hosts connects to the printserer using TCP and the other host using LAT.
If both hosts are using tcp, check both hosts use printer hostname and not ip-address in the printcap file.

here's output from one of my printers on V5.1B.
eagle (system)> lpc status
lp:
printer is on device '@nlw-pr001/jetdirect' speed -1
queuing is enabled
printing is enabled
no entries
no daemon present

maybe it could be related to user privileges?
manuj kumar
Frequent Advisor

Re: lpc Status output

Thanks Pieter for reply...

here is the definition of lp72 in the printcap file:

of both servers:

lp72|72:\
:af=/usr/adm/lp72acct:\
:br#9600:\
:fc#0177777:\
:fs#023:\
:if=/usr/lbin/xf:\
:lf=/usr/adm/lp72err:\
:lp=/:\
:mx#0:\
:of=/usr/lbin/lpf:\
:pl#66:\
:pw#80:\
:rm=LIF1:\
:rp=text3:\
:sd=/usr/spool/lpd72:\
:xc#0177777:\
:xf=/usr/lbin/xf:\
:xs#044000:

the strange thing is the lpc status for the lp65 ..on both servers is right and below is the definition of it in the printcap file:

lp65|65:\
:lf=/usr/adm/lp65err:\
:lp=:\
:rm=it_lp:\
:rp=text1:\
:sd=/usr/spool/lpd65:
:xs#044000:

do you think the order of the parmeters ( specially lp,rm,rp )can make such problem???

Johan Brusche
Honored Contributor

Re: lpc Status output

+
From the printcap manpage

lp str /dev/lp

Device name to open for output.
For network (TCP/IP) printers, enter the
name a @hostname/servicename.
The servicename is defined in
/etc/services with the port number.

++

I believe you should remove the / after the
lp= in the printcap entry..

++

_JB_