Re: HP 4M plus network printer question

2005-12-08 Thread Warren Block

On Tue, 6 Dec 2005, Dave Webster wrote:


I have a FBSD server/ router connected to a switch box off which is
another FBSD computer and an HP4M plus printer (JetDirect nic).  Using
the Handbook LPD Simple Printer setup, I'm able to print from the
server using commands: lptest 20 5 | lpr -PHP4M  and lpr -Plpps file.ps
So far so good.  When I follow the instructions to print from the other
FBSD computer to this remote printer, I get nothing.

The /etc/printcap on the server is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $

lp|HP4M|local line printer:\
:sh:sd=/var/spool/output/lpd:\
:rm=HP4M:\
:rp=text:\
:if=/usr/local/libexec/ifhp

lpps|HP4M|local line printer:\
:sh:sd=/var/spool/output/lpd:\
:rm=NPI1E4DCE.dwebman.com:\
:rp=raw:

The /etc/printcap on the other FBSD computer is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $


HP4M|hp|printer:\
   :lp=:rm=gateway:rp=HP4M:sd=/var/spool/lpd/hp:


Check the lpd-errs log file on both machines, but here's a guess:

Make sure that gateway's /etc/hosts has an entry for the client machine, 
and that the IP address or hostname of the client is in gateway's 
/etc/hosts.lpd file.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP 4M plus network printer question

2005-12-08 Thread Dave Webster
Thankyou for your suggestion.  I wound up with the
following /etc/printcap on my remote FBSD bos:

lp|HP4M|hp|printer:\

:lp=:sh:rm=10.0.10.1:rp=text:sd=/var/spool/lpd/hp:if=/usr/local/libexec/ifhp:

where 10.0.10.1 is the IP of the printer not of the server machine.
Everthing's printing fine now.  But I do have another question.  I'm
using DHCP on the server to assign IP addresses to the hp printer, the
LAN FBSD and hopefully another LAN FBSD for my kids.  How do you put the
IP addresses in /etc/hosts if they are assigned dynamically without
having to edit /etc/hosts evertime the lease assignment changes?

This problem has come up previously when I try to ping between machines
using hostnames rather than the assigned IP addresses without telling
the /etc/hosts files the actual IP addresses and what names they resolve
to.  Is there some way DHCP can be configured to pass on the FQDN to the
LAN machines and in return receive the FQDN from these machines and use
these names in conf files etc. even if the IP addresses change from
session to session?

Or am I going to have to use static IP address assignment?

Dave


On Thu, 2005-12-08 at 15:44 -0700, Warren Block wrote:
 On Tue, 6 Dec 2005, Dave Webster wrote:
 
  I have a FBSD server/ router connected to a switch box off which is
  another FBSD computer and an HP4M plus printer (JetDirect nic).  Using
  the Handbook LPD Simple Printer setup, I'm able to print from the
  server using commands: lptest 20 5 | lpr -PHP4M  and lpr -Plpps file.ps
  So far so good.  When I follow the instructions to print from the other
  FBSD computer to this remote printer, I get nothing.
 
  The /etc/printcap on the server is:
  #   @(#)printcap5.3 (Berkeley) 6/30/90
  # $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $
 
  lp|HP4M|local line printer:\
  :sh:sd=/var/spool/output/lpd:\
  :rm=HP4M:\
  :rp=text:\
  :if=/usr/local/libexec/ifhp
 
  lpps|HP4M|local line printer:\
  :sh:sd=/var/spool/output/lpd:\
  :rm=NPI1E4DCE.dwebman.com:\
  :rp=raw:
 
  The /etc/printcap on the other FBSD computer is:
  #   @(#)printcap5.3 (Berkeley) 6/30/90
  # $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $
 
 
  HP4M|hp|printer:\
 :lp=:rm=gateway:rp=HP4M:sd=/var/spool/lpd/hp:
 
 Check the lpd-errs log file on both machines, but here's a guess:
 
 Make sure that gateway's /etc/hosts has an entry for the client machine, 
 and that the IP address or hostname of the client is in gateway's 
 /etc/hosts.lpd file.
 
 -Warren Block * Rapid City, South Dakota USA

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP 4M plus network printer question

2005-12-08 Thread Jonathan Chen
On Thu, Dec 08, 2005 at 10:50:51PM -0800, Dave Webster wrote:

[...]
 Everthing's printing fine now.  But I do have another question.  I'm
 using DHCP on the server to assign IP addresses to the hp printer, the
 LAN FBSD and hopefully another LAN FBSD for my kids.  How do you put the
 IP addresses in /etc/hosts if they are assigned dynamically without
 having to edit /etc/hosts evertime the lease assignment changes?

You can configure your DHCP server to assign a particular IP address
for a MAC address. If you're using the isc-dhcp server, this can be
done the following entry in /usr/local/etc/dhcpd.conf:

host hpprinter
{
hardware ethernet 00:12:23:56:78:9a;
fixed-address 10.0.0.1;
}

You'll have put in the correct MAC and IP address.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
If you wish your merit to be known, acknowledge that of other people
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HP 4M plus network printer question

2005-12-06 Thread Dave Webster
I have a FBSD server/ router connected to a switch box off which is
another FBSD computer and an HP4M plus printer (JetDirect nic).  Using
the Handbook LPD Simple Printer setup, I'm able to print from the
server using commands: lptest 20 5 | lpr -PHP4M  and lpr -Plpps file.ps
So far so good.  When I follow the instructions to print from the other
FBSD computer to this remote printer, I get nothing.  

The /etc/printcap on the server is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $

#
#
lp|HP4M|local line printer:\
 :sh:sd=/var/spool/output/lpd:\
 :rm=HP4M:\
 :rp=text:\
 :if=/usr/local/libexec/ifhp

lpps|HP4M|local line printer:\
 :sh:sd=/var/spool/output/lpd:\
 :rm=NPI1E4DCE.dwebman.com:\
 :rp=raw:

The /etc/printcap on the other FBSD computer is:
#   @(#)printcap5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.14 2004/06/06 11:46:27 schweikh Exp $


HP4M|hp|printer:\
:lp=:rm=gateway:rp=HP4M:sd=/var/spool/lpd/hp:


Any help would be greqtly appreciated.

Dave

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]