Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 18:00:32 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Anders Andersson <anders@hack.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Printing via HP JetDirect EX
Message-ID:  <Pine.BSF.4.21.0207081748240.42135-100000@wonkity.com>
In-Reply-To: <20020708220530.GA3461@sushi.sanyusan.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Jul 2002, Anders Andersson wrote:

> I have a HP LaserJet 5P that I have connected to a HP JetDirect EX which
> is connected to my network. I'm using apsfilter. But I cannot print from
> any FreeBSD box at all.
> 
> /etc/printcap:
> 
> lp|ljet4;r=300x300;q=medium;c=gray;p=a4;m=auto:\
> 	:lp=:\
> 	:rm=192.168.1.3:\
> 	:rp=raw:\
> 	:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
> 	:sd=/var/spool/lpd/lp:\
> 	:lf=/var/spool/lpd/lp/log:\
> 	:af=/var/spool/lpd/lp/acct:\
> 	:mx#0:\
> 	:sh:

You might try backing that up and, starting from a blank file, removing
the apsfilter stuff. In other words:

> lp:\
> 	:lp=:\
> 	:rm=192.168.1.3:\
> 	:rp=raw:\
> 	:sd=/var/spool/lpd/lp:\
> 	:lf=/var/log/lpd-errs:\
> 	:mx#0:\
> 	:sh:

...as the only thing in /etc/printcap.  Note that I changed the logfile
entry--I don't know if there are file owner/rights implications for
logging to a separate file in the spool directory as compared to the
standard log file.
 
> 'lpc status all' gives me:
> lp:
> 	queuing is enabled
> 	printing is enabled
> 	4 entries in spool area
> 	waiting for 192.168.1.3 to come up
> 
> but 192.168.1.3 (the printserver) is up and running
> 64 bytes from 192.168.1.3: icmp_seq=0 ttl=60 time=7.621 ms
> 64 bytes from 192.168.1.3: icmp_seq=1 ttl=60 time=4.354 ms
> 
> and I can print from a Windows box without problem.
> 
> I start lpd with:
> lpd_enable="YES"

Check and see if lpd is really running (ps ax | grep lpd).  If there's
an error anywhere in the printcap file, it'll exit on startup.
 
> nmap also gives me the expected results:
> Port       State       Service
> 9100/tcp   open        jetdirect

That's not lpr/lpd printing, though.  JetDirects have a (weak)
implementation of lpr/lpd, but they also will accept a port 9100
connection that just accepts and prints data.  Two different things.
 
> I really dont understand why lpd tells me that 192.168.1.3 isnt up and
> online.
 
It's saying that the lpd server isn't there, but that may be due to lpd
not running on your FreeBSD system.  You might try telnetting to port
515 on the JetDirect just to see if it accepts the connection.  I don't
think it's possible to disable lpr/lpd on my J2552, but yours may be
different.

-Warren Block * Rapid City, South Dakota USA


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207081748240.42135-100000>