Printing to remote IP problem

Printing to remote IP problem

Post by Jasper » Fri, 04 Jul 2003 20:15:32



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.

 
 
 

Printing to remote IP problem

Post by Joerg-Uwe Tessme » Fri, 04 Jul 2003 21:56:38



> 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
#

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

 
 
 

1. problems with remote printing under AIX 3.2 (and other remote access problems)

I just installed AIX 3.32 on my R6000/320 and though the install went
smoothly, the R6000 no longer allows remote (tcp/ip) access to the printer.  I
did a "complete overwrite install" and then went through and
configured the network and the remote printer access, and have
rebooted several times, stopped started lpd, etc., but I always get
the message: "your host does not have line printer access" back from
the R6000.  Printing works OK from the R6000, and interestingly, the
"on" command" works from the remote host and I can type "on ___ lpr "
and the R6000 does print then.  I tried both fully qualified and just
the hostname in the /etc/hosts.lpd file.  I am trying to print from a
Sun running 4.1.1 as well as other hosts that use BSD style printer
addressing.  Before the upgrade, remote printing worked fine.  

Another strange (related?) feature is that when I type "rsh" from the
remote host I get "Login incorrect." whereas rsh used to work.  It
sounds to me like the network authentication has been messed with.
One last (related?)  problem is that I can't get the R6000 to act as a
pcnfs server (after taking the comment out of /etc/inetd.conf) whereas
it used to work as a pcnfs server before.

  Any ideas?

  Ron Cohen
  Geophysical Laboratory
  Carnegie Institution of Washington

2. How do I boot Corel Linux?

3. Remote printing to remote unix printer problem with cpi= option

4. How to create hidden directories in UNIX?

5. Remote printing problem: waiting for remote system to come up

6. Linux server slower than NW 3.11?

7. Problem with Remote Printing Thru Print Servers

8. Kamil: switching editors

9. remote printing problem: Error transfering print job

10. remote printing and tcp/ip access under 3.2

11. Remote Printing over IP

12. printing on Solaris to remote IP address

13. HELP - remote printing using uucp and TCP/IP