Operating System - HP-UX
1820345 Members
3209 Online
109623 Solutions
New Discussion юеВ

Re: How to setup a laser printer with HP-UX 11.0

 
SOLVED
Go to solution
Alan Casey
Trusted Contributor

How to setup a laser printer with HP-UX 11.0

I am running HP-UX 11.0 on rp7400 server.
I want to setup a Lexmark Laser Printer to print text files from UNIX, can anyone tell me how this is done?

Have tried through sam to setup as a line printer, but the text is not printed correctly.
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: How to setup a laser printer with HP-UX 11.0

Hi Alan,

I use HP jet/web admin, you can download from HP it is very easy to use.

Regards,

Robert-Jan.
Donald Kok
Respected Contributor

Re: How to setup a laser printer with HP-UX 11.0

Hi Allen,

I use Laserprinter attached to an NT domain. I configure them through SAM. (One of the few tasks mankind should SAM for ;-))
Works always without a problem.

HTH
Donald

My systems are 100% Murphy Compliant. Guaranteed!!!
Chuck J
Valued Contributor
Solution

Re: How to setup a laser printer with HP-UX 11.0

Alan

you can swinstall the hpjetadmin package onto your system. Once you've done that, you can add a printer easily from SAM. Go to printers and plotters, then LP Spooler, then Printers & Plotters. When in this sub menu you can go Actions -> Add NEtwork-Based Printer/Plotter -> Add Printer/Plotter Connected to HP JetDirect.

Chuck J
BFA6
Respected Contributor

Re: How to setup a laser printer with HP-UX 11.0

Hi,

I use jetadmin to set up laser printers, or you can set them up through SAM

Regards,

Hilary
Bill Hassell
Honored Contributor

Re: How to setup a laser printer with HP-UX 11.0

Important: JetAdmin or HP Printer Installer does NOT work for non-HP printers. This software (called "Network-based Printer" rather than "Remote Printer") works only with the HP JetDirect interface card. Lexmark uses a general purpose card which emulates a BSD print server and now we have to discuss BSD versus SysV remote printing.

BSD printing is accomplished with the lpr command and uses a printcap file to perform printer setup tasks. All formatting performed by the spooler is done prior to send the file to a remote location. SysV printing uses the lp command and relies on printer scripts to perform special formatting. Both BSD and SysV use RFC 1170 as the standard for printing to a remote server.

However, SysV performs NO formatting when sending a file to the remote system. Instead, it expects the remote computer to perform this task, something that NT/Win2K or a non-HP-UX system will not do. Thus, your ASCII text files will print stairstep mode across the page because the required CR is not being inserted by the remote server.

The Lexmark (and virtually all other network printers) are remote servers and know nothing about -o options or printer scripts required by SysV standards. So to print ASCII files correctly, you will have to run them through a filter locally like this:

ux2dos file_to_print | lp -dremote_printer

If the Lexmark has the option (like many HP LaserJet printers) to add CR to every LF character, this may be an option, but you'll have to ensure that this option remains set in the printer. Options like -olandscape or -oduplex will be ignored by non-HP-UX systems. The solution is to replace the Lexmark network connection with an HP JetDirect print server (external box) and then setup the printer as a Network-based printer.


Bill Hassell, sysadmin
Alan Casey
Trusted Contributor

Re: How to setup a laser printer with HP-UX 11.0

Thanks Bill

Thats exactly the info I was looking for

alan
Chuck J
Valued Contributor

Re: How to setup a laser printer with HP-UX 11.0

Just for info, i've actually setup non-hp printers using HP JetAdmin, basically for these printers, the HP LaserJet 4 driver emulated the printer and it worked fine. We also did use the ux2dos command though for certain things. We also used the lp command with options to do fancy things such as:

lp ???d -oA4 ???oduplex ???olandscape ???o2up ???onb

Chuck J