I N F O R M A T I O N  R E L E A S E AB 127

edplogo.gif (5330 bytes)

ADDING REMOTE PRINTERS TO A UNIX SYSTEM

1.        ON THE SYSTEM WITHOUT THE PRINTER

1.1.     Log-in as "root" and enter "sysadm" to select "printers" from the main menu.

1.2.     Enter "systems" from the second menu.

1.3.     Select "add" and

        a) For "System name", enter the system name that has the printer, e.g. edprmk1.

        b) For the "Scheduler type", enter "s5" if running system V Unix.

        c) For the "Connection timeout", enter "n" for no timeout.

        d) For the "Retry period", enter 0 for reconnect immediately if it should ever timeout.

        e) For the "Comment", enter any suitable text comment.

1.4.    When all the systems have been added, return to the second menu and select "printers".

1.5.    Select "add" and:

        a) For NCR systems:

    For the "Printer name", enter the name of the printer on the remote system that you want to use, e.g. UVdre.

    For Motorola systems:

    For the "Printer name", enter the name of the printer as it should be known on the system without the printer
    (normally the same as the name on the system with the printer, but it can be different).

        b) For the "System name", enter the name of the system that has the printer that you want to use, e.g.
            edprmk1.

    NOTE: that after entering this name, if you did step 3 above, correctly then the screen display should change
    with the last line being:

    For NCR systems:

    network communication protocol entry.

    For Motorola systems:

    remote printer name.

        c) For "Printer type", enter it's type as used on it's host system, e.g. UVdumb for a UniVision printer.

        d) For "Similar printer to use for defaults", enter none.

        e) For "Do you want to use standard configurations", enter no if you want to skip the banner page (as for
            UniVision printers).

        f) For NCR systems:

    for "What is the network communication protocol", enter whatever you are using, normally tcp.

    For Motorola systems:

    for "Printer name on remote system", enter the name of the printer as it is known on the system that has the
    printer connected to it, (normally the same as in step a) above, but they can be different).

1.6.    When all the printers have been added, return to the second menu and select "Operations".

1.7.    Select "accept" and enter the required printer names or all to allow the print requests to be accepted.

1.8.    Select "enable" & enter the required printer names or all to be enabled.

1.9.    If a default printer is required (normal), select "set default" and enter the required printer name.

1.10   Exit "sysadm" and add to the "/etc/services" file the following line (if it's not already included); listen
         dddd/tcp where dddd is the decimal TCP/IP address of the system with the printer.

    The hexadecimal address is obtained by using the command; /usr/etc/rfsaddr -h name_of_system_with_printer
    which should give a display similar to; \x00020ace36000001----

    The underlined hexadecimal number should be converted to decimal and used in the "/etc/services" file as
    described above. The most common numbers are:

    hexdecimal

    04011025

    0ace2766

1.11.  Shut down the printer services by using the command;

    lpshut

1.12.  Define the system that has the printer connected to it by using the command; lpsystem
         name_of_system_with_printer

    The name of the system_with_printer is the name of the system on the network, of which the internet address
    is defined in the "/etc/hosts" file.

1.13.  Start the lp print service by using the command; /usr/lib/lp/lpsched

1.14.  Define a queue for printing to the remote printer by using the command; lpadmin -p remote_printer_name
         -T printer_type \ -s name_of_system_with_printer

2.       ON THE SYSTEM WITH THE PRINTER

2.1.    Log-in as "root".

2.2.    If the printer has not already been added to the system, enter "sysadm" to select"printers" from the main
         menu and add it as a normal printer.

    NOTE: that the printer name and type must match those used in step 5 above.

2.3.    Shut down the print services by using the command; lpshut

2.4.    Identify the system without the printer by using the command; lpsystem name_of_system_without_printer

2.5.    Start the lp print service by using the command; /usr/lib/lp/lpsched

2.6.    Initialize the listener process by using the command; nlsadmin -i tcp

2.7.    Configure the port monitor by using the following command; pmadm -a -p tcp -s lp -i root -v `nlsadmin -V`
          \ -m `nlsadmin -o /var/spool/lp/fifos/listenS5`

    NOTE: the single backward quotes and the capital V and S in above command.

    In case the above command has already been performed, an error message will appear, stating that lp already
    exists under tcp. In that case it is safest to use the command; pmadm -r -p tcp -s lp before re-executing the
    previous command.

2.8.    Execute the following command; nlsadmin -l `/usr/etc/rfsaddr -h name_of_system_with_printer' tcp

    NOTE: the single backward quotes in above command.

    In response to:

    Enter port number, tcp service name, or "-":

    enter "-"

2.9.    Test by sending a file from the system without a printer.

3.        TROUBLE SHOOTING

    The most common cause of not being able to print is a mismatch of the TCP/IP addresses of the systems
    with/without the printer.

    To check these addresses, ON THE SYSTEM WITH THE PRINTER, use the command; pmadm -l | pg. This should
    produce an output similar to that shown below:

    PMTAGPMTYPE SVCTAGFLGS ID

    tcplistenlp- root- - p -

    /var/spool/lp

    /fifos/listenS5#

    tcplisten0- root

    \x00020ace36000001 -

    c - /usr/lib/saf/nlps_server #NLPS server

    The hexadecimal address under the column must match that produced by using the following command ON THE
    SYSTEM WITHOUT THE PRINTER  /usr/etc/rfsaddr -h name_of_system_with_printer

    If they do not match then you must change one of the values by either changing the entry in the
    "/etc/services" file on the system without the printer or by using the following command on the system with
    the printer nlsadmin -l correct_value tcp

    To obtain the correct_value, use the command /usr/etc/rfsaddr -h name_of_system_with_printer and the
    correct_value will be the four hexadecimal digits following the "\x0002" characters.

    The two commands above can be combined by using the command on the system with the printer nlsadmin
    -l `/usr/etc/rfsaddr -h name_of_system_with_printer` tcp

    NOTE: the single backward quotes in above command.

    In response to:

    Enter port number, tcp service name, or "-":

    enter "-"

    If that doesn't work, then double check the printer names and TCP/IP addresses, etc, or failing all else, read
    the manuals (but they have been known to contain errors).

Return to Index