Re: Printing to remote IP problem

From: Joerg-Uwe Tessmer (joerg_at_agnld.uni-potsdam.de)
Date: 07/03/03


Date: Thu, 03 Jul 2003 14:56:38 +0200

JasperH wrote:
>
> Hi All,
>
> I set up a new Alpha1200 (machine B) with the /etc/printcap the same as that
> of the old machine (machine A). Printing works fine on A. On B, when I print
> to lj02, the remote host IP is not recognised. However, I can ping the IP of
> the printer. Both Alphas and the printer are on the same network (ccc).
> Help would be appreciated. Thanks!
>
> Printcap entry on A and B:
>
> HPLJ4SI|lj02:\
> :af=/usr/adm/lpacct:\
> :ct=remote:\
> :if=/usr/lbin/hplaserpsof:\
> :lf=/usr/adm/lpderr:\
> :mx#0:\
> :of=/usr/lbin/hplaserpsof:\
> :pl#66:\
> :ps=LPS:\
> :pw#80:\
> :rm=aaa.bbb.ccc.ddd:\
> :rp=text:\
> :rw:\
> :sd=/usr/spool/lpd/lj02:\
> :sh:\
> :xf=/usr/lbin/xf:
> #
> # lpc stat lj02 (on A)
> lj02:
> printer is on remote host aaa.bbb.ccc.ddd with name text
> queuing is enabled
> printing is enabled
> no entries
> no daemon present
> #
> # lpc stat lj02 (on B)
> lj02:
> printer is on device '/dev/lp' speed -1
> queuing is enabled
> printing is enabled
> 1 entry in spool area
> no daemon present
> #
> Jasper.

My /etc/printcap entry are:

Node_1 = printer "laser_jet" connected to parallel port lp0
======

lp|lp0|0|laser_jet:\
        :af=/usr/adm/lpacct:\
        :if=/usr/lbin/ps_level2of:\
        :lf=/usr/adm/lp0err:\
        :lp=/dev/lp0:\
        :mc#20:\
        :mx#0:\
        :of=/usr/lbin/ps_level2of:\
        :pl#72:\
        :pw#80:\
        :sd=/usr/spool/lpd0:\
        :sh:\
        :xf=/usr/lbin/xf:

Entry in file /etc/hosts.equiv

#
# *****************************************************************
# * *
# * Copyright Compaq Computer Corporation, 2001 *
# * *
# * The software contained on this media is proprietary to *
# * and embodies the confidential technology of Compaq *
# * Computer Corporation. Possession, use, duplication or *
# * dissemination of the software and media is authorized only *
# * pursuant to a valid written license from Compaq Computer *
# * Corporation. *
# * *
# * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure *
# * by the U.S. Government is subject to restrictions as set *
# * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, *
# * or in FAR 52.227-19, as applicable. *
# * *
# *****************************************************************
#
# HISTORY
#
# @(#)$RCSfile: hosts.equiv,v $ $Revision: 1.1.5.2 $ (DEC) $Date:
1993/10/29 19:37:05 $
#
# Description: The hosts.equiv file contains a list of trusted hosts.
# It is used by the rsh, rlogin and rcp commands.
#
# Warning: Listing hosts in this file can compromise system security.
# Include host names and user names in this file with caution.
#
# Syntax: host1 [login_1]
# .
# .
# .
# host1 [login_n]
#
# host1 name of a host considered trusted by the local system
# [login_n] individual user on the trusted host that can log in
# without a password; if no users are specified then all
# users on the trusted host can log in without a password
#
# A single plus sign (+) on a line by itself signifies "match any".
# "Match any" implies *all* hosts are considered trusted. Because
# of the security ramifications of this uncommenting the NO_PLUS
# keyword in the following line, globally turns off "match any".

NO_PLUS
Note_1
Note_2

-------------------------------------------

Node_2
======

lp1|1|laser_jet:\
        :lf=/usr/adm/lp1err:\
        :lp=:\
        :rm=Node_1:\
        :rp=laser_jet:\
        :sd=/usr/spool/lpd1:\
        :sh:

hope this helps.

        Joerg-Uwe

-- 
Joerg-Uwe Tessmer              Universitaet Potsdam
Tel.: +49+331-9771613          Institut fuer Physik        
Fax.: +49+331-9771142      Lehrstuhl Nichtlineare Dynamik
https://www.agnld.uni-potsdam.de/~joerg


Relevant Pages

  • Re: SW firewall speed drop :-(
    ... it with the caching. ... The "hosts" files is still searched. ... look it up in the HOSTS lists. ... If found, return the entry. ...
    (comp.security.firewalls)
  • Stubborn little bugger... Donk.Q
    ... >removal tool didn't pick it up, ... >a scan in safe mode with Norton, ... Check your "hosts" folder, there could be an entry there ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: /etc/inetd.conf entry to block telnet with tcp wrappers
    ... /etc/inetd.conf entry to block telnet with tcp wrappers ... Are you trying to JUST Deny specific hosts and allow the rest? ...
    (AIX-L)
  • Re: XP cant see domain
    ... The fact you had to make an entry in hosts to ping by name is bad news. ... You didn't say if your NT4 server was running WINS. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Whats the deal on the -X vs -Y thing?
    ... In practice, I only do X forwarding to ... >>trusted hosts anyway. ... that I got trusted X11 forwarding only to those hosts. ...
    (comp.security.ssh)