Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Printing to a network printer

SOLVED
Go to solution
sammysammy
Frequent Advisor

Printing to a network printer

Hi,

I've searched around the system and google, but have a bit problem in locating the right information about how to setup print queue that printing to a network printer from Tru64 5.1B-4 system.

Your help is much appreciated.
Thanks
16 REPLIES
sammysammy
Frequent Advisor

Re: Printing to a network printer

I have inserted the following line in the /etc/printcap file

NHOMFP01|lp119|nhomfp01:\
:lf=/usr/adm/lp119err:\
:lp=:\
:rm=nhomfp01:\
:rp=nhomfp01:\
:sd=/usr/spool/lpd119:
NHOMFP03|lp142|nhomfp03:\
:lf=/usr/adm/lp142err:\
:lp=:\
:rm=nhomfp03:\
:rp=nhomfp03:\
:sd=/usr/spool/lpd142:

The nhomfp03 is a network printer we want to print to from this system. The lp142 is an arbitrary name I created for this printer. do I have to follow some specific rule to create this printer name (lp142)?

Thanks

Can anyone tell me how to test this setup?
sammysammy
Frequent Advisor

Re: Printing to a network printer

Hi,

I tried the following lpr commandline,
lpr -Pnhomfp03 /etc/printcap

it sends the printcap file to the printer, but the output is is not indented properly and it only prints few lines on the page:

abc|lp0:\
:lf=/usr/adm/lperr:\
:lp=:\

Can anyone please tell me what is wrong with my printing command/configuration and how to fix this error?

Thanks
sammysammy
Frequent Advisor

Re: Printing to a network printer

hi,

Let me elaborate more about the problem.
When the 5.1B-4 system sends a print job to the Lexmark laser printer, the printer prints it in "stair stepping" form:
eg.

LINE 1
LINE 2
LINE 3.
I am sending a text file to the printer with lpr command:
lpr -Plp142 /etc/printcap

Thanks
Vladimir Fabecic
Honored Contributor

Re: Printing to a network printer

First, tell us what is your printer type.
Does it have HP Jet direct?
Did you setup these printers using lprsetup?
In vino veritas, in VMS cluster
sammysammy
Frequent Advisor

Re: Printing to a network printer

Opps... it should be:
1. LINE 1
2. LINE 2
3. LINE 3

Thanks
sammysammy
Frequent Advisor

Re: Printing to a network printer

hi, thanks for the reply.
This is a LEXMARK network laser printer. I am not sure what type of print it is.
We only knows its hostname and IP. I didn't use lprsetup to configure the printer.

Thanks
sammysammy
Frequent Advisor

Re: Printing to a network printer

sammysammy
Frequent Advisor

Re: Printing to a network printer

Hi,

Now I just executed lprsetup,I need to select a printer type from the following printers:
Printer Types:

1. Compaq Advanced Server ClientPS
2. Compaq Advanced Server ClientText
3. Compaq LN16
4. Compaq LN32
5. Digital Colormate PS
6. Digital DEClaser 1100
7. Digital DEClaser 1150
8. Digital DEClaser 2100
9. Digital DEClaser 2150
10. Digital DEClaser 2200
11. Digital DEClaser 2250
12. Digital DEClaser 2300
13. Digital DEClaser 2400
14. Digital DEClaser 3200
15. Digital DEClaser 3250
16. Digital DEClaser 3500
17. Digital DEClaser 5100
18. Digital LA100
19. Digital LA120
20. Digital LA210
21. Digital LA280
22. Digital LA30N
23. Digital LA30N A4
24. Digital LA30W
25. Digital LA30W A4
26. Digital LA324
27. Digital LA380
28. Digital LA380CB
29. Digital LA380K
30. Digital LA400
31. Digital LA424
32. Digital LA50
33. Digital LA600
34. Digital LA70
35. Digital LA75
36. Digital LA84
37. Digital LA86
38. Digital LA88
39. Digital LA88C
40. Digital LA90
41. Digital LG02
42. Digital LG04 Plus

Press 'ENTER' to continue scrolling, type '(q)uit' to end scrolling:

As I said, I am using LEXMARK model 4036-304, which printer type is most suitable?

Thanks
Vladimir Fabecic
Honored Contributor

Re: Printing to a network printer

I would try Lexmark 4039 first.
On this page there is a list of supported printers:
http://h30097.www3.hp.com/printing/printers.html
Here is one example of printcap entry:
lj3800|lp6:\
:af=/usr/adm/lp6acct:\
:if=/usr/lbin/ppdof +OPageSize=Letter +Chplj2500.rpd:\
:lf=/usr/adm/lp6err:\
:lp=@hpcolor3800/port_9100:\
:mx#0:\
:of=/usr/lbin/ppdof +OPageSize=Letter +Chplj2500.rpd:\
:pl#72:\
:pw#0:\
:rw:\
:sh:\
:sd=/usr/spool/lpd6:\
:xf=/usr/lbin/xf:
In vino veritas, in VMS cluster
Vladimir Fabecic
Honored Contributor

Re: Printing to a network printer

Sorry, I made a typo.
I meant I would try T610 first. Then with T612, T614 and T616.
Download drivers from link above and install them.
You have 90% chance that your printer would work with one of these drivers.
In vino veritas, in VMS cluster
sammysammy
Frequent Advisor

Re: Printing to a network printer

Hi,

This printer is a network printer, it is in the same subnet as the Tru64 51B-4 is connected. Do I still need to install the Txxx driver in this Tru64? it doesn't physically connected to this network printer.

Thanks
sammysammy
Frequent Advisor

Re: Printing to a network printer

HI,

I just have a look thru the website you shown here. Tru64 5.1 had already built-in LEXMARK 4039 plus driver in the base system. Can I just copy this portion of your printcap script into my printcap script?

Why do I need to have a port_9110 in the printcap file?

I am setting up a printing client (the Tru64). The Tru64 server is then use lpr sends print job to the LEXMARK 4903 printer.

Thanks
Vladimir Fabecic
Honored Contributor
Solution

Re: Printing to a network printer

My printcap entry was just an example.
From your post I was not sure which printer you have, T634 or 4903
If you have driver for your printer built-in, fine.
You do not need port_9100 if your printer does not have JetDirect. That was just an example.
In vino veritas, in VMS cluster
sammysammy
Frequent Advisor

Re: Printing to a network printer

Hi,

I added the following configuration in the printcap file, but this time lpr doesn't send the print job to the printer.

NHOMFP03|lp142|nhomfp03:\
:af=/usr/adm/lp142err:\
:if=/usr/lbin/ppdof +OPageSize=Letter +Chplj2500.rpd:\
:lf=/usr/adm/lp142err:\
:lp=:\
:mx#0:\
:of=/usr/lbin/ppdof +OPageSize=Letter +Chplj2500.rpd:\
:pl#72:\
:pw#0:\
:rw:\
:sh:\
:sd=/usr/spool/lpd142:\
:xf=/usr/lbin/xf:

The lpr commandline I used is:
lpr -Pnhomfp03 /.cshrc

I also found the print jobs get written to the spool directory /var/spool/lpd142/

Thanks

sammysammy
Frequent Advisor

Re: Printing to a network printer

I changed the printcap configuration to the following setting, but print job still stuck in /var/spool/lpd142 directory:

lp142|142|NHOMFP03:\
:af=/usr/adm/lp142acct:\
:if=/usr/lbin/ppdof +OPageSize=Letter +ClexmarkT622.rpd:\
:lf=/usr/adm/lp142err:\
:lp=@nhomfp03:\
:mx#0:\
:of=/usr/lbin/ppdof +OPageSize=Letter +ClexmarkT622.rpd:\
:pl#66:\
:pw#0:\
:rw:\
:sd=/usr/spool/lpd142:\
:xf=/usr/lbin/xf:

Thanks
Vladimir Fabecic
Honored Contributor

Re: Printing to a network printer

Looks like your ":lp=@nhomfp03:\" entry is not correct.
Since allmost all new printers support printing to JetDirect port (tcp port 9100), I recomend to use it rather than LPD.
Do the following:
- first check is tcp port 9100 opened:
# telnet nhomfp03 9100 (nhomfp03 should be ip address of your printer)
- add following line to /etc/services:
port_9100 9100/tcp #jetdirect print port
- modify lp entry to be:
:lp=@nhomfp03/port_9100:\
- restart printer:
# lpc restart lp142
In vino veritas, in VMS cluster