Printing to Jetdirect

Printing to Jetdirect

Post by asbar.. » Wed, 12 Jul 2000 04:00:00



Hi all,

This should be simple: printing to an HP Laserjet 5 on a jetdirect
device.  I'm familiar with linux but haven't done much printing before.

My linux machine and the HP Jetdirect are on the same subnet.  I'm using
RedHat 6.2's printtool and selecting "Direct to port printer".  I give
it the IP address of the JetDirect with port 9100, and select Laserjet
4/5/6 for the input filter.

I try to print test pages, but nothing appears on the printer.  I can
telnet to the printer and browse to it.  And I can hit it with my NT
machines.

How exactly am I supposed to set up a printer like this on Linux?

Thank you in advance for any help - I'm getting frustrated :-)

Aaron

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Printing to Jetdirect

Post by Joshua Baker-LePai » Wed, 12 Jul 2000 04:00:00



> This should be simple: printing to an HP Laserjet 5 on a jetdirect
> device.  I'm familiar with linux but haven't done much printing before.
> My linux machine and the HP Jetdirect are on the same subnet.  I'm using
> RedHat 6.2's printtool and selecting "Direct to port printer".  I give
> it the IP address of the JetDirect with port 9100, and select Laserjet
> 4/5/6 for the input filter.

Try setting it up as a "Remote Unix (lpd) Queue" instead.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

 
 
 

Printing to Jetdirect

Post by Villy Kru » Thu, 13 Jul 2000 04:00:00


On 11 Jul 2000 20:47:02 GMT,


>> This should be simple: printing to an HP Laserjet 5 on a jetdirect
>> device.  I'm familiar with linux but haven't done much printing before.

>> My linux machine and the HP Jetdirect are on the same subnet.  I'm using
>> RedHat 6.2's printtool and selecting "Direct to port printer".  I give
>> it the IP address of the JetDirect with port 9100, and select Laserjet
>> 4/5/6 for the input filter.

>Try setting it up as a "Remote Unix (lpd) Queue" instead.

That would work, I've seen it work.  The only problem is that you can't
query the print status, as by doing that the software will also query
the jetdirect box for its print status.  If the box is busy it is not
able to respond to any status request on the lpd port.  The lpd port
is 515/tcp aka. 'printer' according to /etc/services.

Villy

 
 
 

Printing to Jetdirect

Post by benn » Sun, 16 Jul 2000 04:00:00




>That would work, I've seen it work.  The only problem is that you can't
>query the print status, as by doing that the software will also query
>the jetdirect box for its print status.  If the box is busy it is not
>able to respond to any status request on the lpd port.  The lpd port
>is 515/tcp aka. 'printer' according to /etc/services.

That is because the printer can only handle 1 TCP connection at the
time so if you are printing to the box it can't handle other TCP
requests to query the status.

I have had succes using LPRng (next generation) with the following
optins. The jobs are spooled local on the Linux box.

# HP4000 Jetdirect printer at IP 192.168.0.101
hp4000|hp400 jetdirect printer:\
    :lp=192.168.0.101%9100:\
    :sd=/var/spool/lpd/hp4000:\
    :lf=/var/spool/lpd/hp4000/log:\
    :sh:sf:mx#0:
#

p.s. don't forget to make spooldir /var/spool/lpd/hp4000  user lp:lp

Benno

 
 
 

Printing to Jetdirect

Post by Villy Kru » Tue, 18 Jul 2000 04:00:00





>>That would work, I've seen it work.  The only problem is that you can't
>>query the print status, as by doing that the software will also query
>>the jetdirect box for its print status.  If the box is busy it is not
>>able to respond to any status request on the lpd port.  The lpd port
>>is 515/tcp aka. 'printer' according to /etc/services.

>That is because the printer can only handle 1 TCP connection at the
>time so if you are printing to the box it can't handle other TCP
>requests to query the status.

>I have had succes using LPRng (next generation) with the following
>optins. The jobs are spooled local on the Linux box.

># HP4000 Jetdirect printer at IP 192.168.0.101
>hp4000|hp400 jetdirect printer:\
>    :lp=192.168.0.101%9100:\
>    :sd=/var/spool/lpd/hp4000:\
>    :lf=/var/spool/lpd/hp4000/log:\
>    :sh:sf:mx#0:
>#

>p.s. don't forget to make spooldir /var/spool/lpd/hp4000  user lp:lp

>Benno

In the OP post there was a reference to Direct print via port 9100
which is supposed to be available with the redhat printer setup
program.  The option is there all right, but the printer backend
I have not been able to find anywhere on the RH6.2 CD, and whithout
the proper backend you can't use port 9100.

Of course LPRng has this backend built in, and it also appears that
LPRng is a much better solution than the bad old lpd package.  
The LPRng package is the standard printer daemon on several linux
distributions, so one might expect it will come to redhat somtime
too.

Villy