AIX Printer Tips: Digital Products NETPrint and JETXPrint Printing


Contents

About This Document
Digital Products Inc. References
Hardware Setup
Printing to NETPrint at AIX 4
Printing to NETPrint at AIX 3
Setting Up AIX as a bootp Server
Setting Up as an AIX ARP Server
Telnet Configuration of the NETS/JETX Box
Additional Information

About This Document

This document describes methods for setting up remote queues to print to printers attached to Digital Products NETPrint and JETXPrint print servers. This information is provided to assist you in the setup, but the print servers are not part of the IBM product set and are not supported by AIX. These instructions do not provide an endorsement of the Digital Product print servers.

This document applies to all levels of AIX.

The NETPrint and JETXPrint print servers are manufactured by Digital Products, which provides support for these products on AIX. In most cases you will simply set up the NETPrint print server as a remote queue. If it has multiple ports, use the queue names PORT1, PORT2, and so on.

Digital Products offers both external boxes - X designation, and cards that fit in some Hewlett-Packard printers.

In some cases you will need to set up AIX as a bootp server for the NETPrint. I have included the Digital Products, Inc., Technical Support Bulletin, TSB 2002, at the end of this document. This describes how to do this with Windows NT, but the process is very similar to AIX. You can either make an entry into the /etc/bootptab file or use the arp -s command as described at the end of the document.


Digital Products Inc. References

The following is information on how to find technical support assistance:

Hardware Setup

The setup should look like this:
                                                          /
                                                         /
     +-------------+  connected   +-------------+       /
     | Client      |     via      | NETPort     |     +---------+
     | RISC System |--------------| Print       |-----| printer |
     | hostname: A |    TCPIP     | Server      |     |         |
     +-------------+              +-------------+     +---------+

Printing to NETPrint at AIX 4

Overview

Since the NETPrint box supports the LPD protocol, the setup simply involves setting up the printer as a remote printer. The remote queue name that you use will indicate the port on the server (PORT1, PORT2, and so on). These instructions describe how to create the remote queue to print to the NETPrint box with AIX virtual printer support to control attributes like pitch and paper drawer. This assumes that the NETPrint box has an IP address. If it does not have one, contact Digital Products on how to set one up. The box does support a BOOTP protocol, and this document describes how this MIGHT work from AIX. The latter procedure has not been tested.

Setup Instructions

The following instructions should allow you to set up an AIX queue to print to a NETPrint server. This assumes the NETPrint has an IP address and is attached to a printer. You should be able to print a test page to the printer before following these instructions. The test page should contain the IP address of the NETPrint box.

  1. Add an entry to the /etc/hosts file as follows:
         123.1.1.2         netp1
    

  2. Test the TCP/IP connection:
        ping netp1
    
    If this does not show a successful connection, fix the communication problems before continuing with adding a printer.

  3. Add the remote queue:
       smit mkpq
       Choose:   remote        (Printer Attached to Remote Host)
       Choose:   Local filtering before sending to print server
       Choose:   Printer Manufacturer: (Example:  Hewlett-Packard)
       Choose:   Printer Model:  (Example: hplj-4)
    
    Fill out the following screen:
          Add a Remote Print Queue with Local Filtering
    
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
    
                                                    [Entry Fields]
    Description                                 Hewlett-Packard LaserJ>
    
    Names of NEW print queues to add
       PCL                                     [pcl1]  <- Enter ASCII queue
       PostScript                              [ps1]   <- Enter PostScript 
                                                          queue name
       HP-GL/2                                 []                       
      
    Remote server characteristics 
       HOSTNAME of remote server               [netp1] <- Enter /etc/hosts 
                                                          printer name
       Name of QUEUE on remote server          [PORT1] <- Enter port # case 
                                                          sensative.
       TYPE of print spooler on remote server   BSD    <- Use BSD selection 
       Send PASS-THROUGH FLAG to queue          no     <- Set this to off
          on remote server?
    
    NOTE: The remote server queue PORT1 or PORT2 determines port on NETPort box.

    Hit Enter to add the queue.

  4. Test print to the queue.
        lptest 10 10 | qprt -Ppcl1
    
  5. Customize your settings using smit. For example, to change the pitch to 17:
       smit chpq
        PRINT QUEUE name:  pcl1
        Choose: 2 Default Print Job Attributes
        Move cursor to: TYPESTYLE and PITCH
        Hit F4 or Select
    
        Choose:  courier  17
        or lineprinter  17
    
        Hit Enter or DO - to set 17 in main menu.
        Hit Enter or DO again to make change
        Exit smit
    

You should now have a working queue to print to your NETPort attached printer.


Printing to NETPrint at AIX 3

Overview

Setting up printing for AIX 3 is a two-step process.

  1. Create a remote queue to print to the box.
  2. Set up a virtual printer to print to the remote queue.

Creating a Remote Queue at AIX 3

  1. Add an entry to the /etc/hosts file as follows:
         123.1.1.2         netp1
    

  2. Test the TCP/IP connection:
        ping netp1
    
    If this does not show a successful connection, fix the communication problems before continuing with adding a printer.

  3. smit spooler - short path is smit mkrque
  4. Select: Manage Remote Printer Subsystem
  5. Select: Server Services
  6. Select: Host Access for Printing
  7. Select: Add a Remote Host
  8. Fill in the screen:
                                   Add a Remote Queue
    
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
    
                                                        [Entry Fields]
    * NAME of queue to add                           [netp1]
      ACTIVATE the queue?                             yes              
      Will this become the DEFAULT queue?             no              
      Queueing DISCIPLINE                             first come first serve 
      ACCOUNTING FILE pathname                       []
    * DESTINATION HOST for remote jobs               [netp1]
    * Pathname of the SHORT FORM FILTER for queue    [/usr/lpd/bsdshort]  
        status output
    * Pathname of the LONG FORM FILTER for queue     [/usr/lpd/bsdlong]  
        status output
    * Name of QUEUE on remote printer                [PORT1]
    * NAME of device to add                          [netpd]
    * BACKEND PROGRAM pathname                       [/usr/lpd/rembak]
    
    You should add the following information as indicated in the preceding discussion.
  9. Hit Enter to add the queue.
  10. Test print to the queue.
        lptest 10 10 | qprt -Pnetp1
    
    You should be able to print, but there is no virtual printer. You will add the virtual printer to control attributes next.

Creating a Double Queue at AIX 3

Overview

Although you should be able to print fine, it is often desirable to add a virtual printer to control output to the printer such as pitch, paper drawer, or landscape printing. This can be done by double queueing. Create a virtual printer that sends its output to the remote queue that you just created.

Setup

  1. Create a unique file in the /dev directory for a lock file.
        touch /dev/netp1
    

    Don't use /dev/null as prescribed in the Digital Products instructions. This blocks queues on multiple boxes if they are all set up this way.

  2. mkvirprt
  3. Choose: 1--Printer or Plotter Attached to Host
  4. Enter device name (or, ! to exit): (lp4) -> netp1
    Use the file you created in /dev. Don't type /dev/.
  5. Choose: Printer Type: (Example: IBM 4039)
  6. Header pages wanted? Enter: n, a, or g.
  7. Trailer pages wanted? Enter: n, a, or g.
  8. Enter print queue name (or, ! to bypass configuration): -> (ps) ps1
  9. Do you want this to be the default queue - y or n
  10. Enter print queue name (or, ! to bypass configuration): -> (pcl) pcl1
  11. Do you want this to be the default queue - y or n
  12. Hit ENTER to add the queue.
  13. Change the virtual printer to print to the remote queue.
      lsvirprt
      Choose the pcl1 created earlier.
      Change the mo attribue as shown below where netp1 is remote
      queue added earlier.
    
    To LIST attributes, enter AttributeName1 ... (* for all attributes)
    To CHANGE an attribute value, enter AttributeName=NewValue
    To FORMAT and EDIT an attribute value, enter AttributeName~v
    To EDIT the attribute file, enter ~v
    To terminate, press Enter:  mo=qprt -Pnetp1
    
  14. Test print to the queue.
        lptest 10 10 | qprt -Ppcl1
    
  15. Make any other changes such as changing the pitch to 17 using lsvirprt as described earlier:
    To LIST attributes, enter AttributeName1 ... (* for all attributes)
    To CHANGE an attribute value, enter AttributeName=NewValue
    To FORMAT and EDIT an attribute value, enter AttributeName~v
    To EDIT the attribute file, enter ~v
    To terminate, press Enter:  p=17
    
    Name    Description                                          Value
    _p      Pitch (characters per inch)                          17
    

You should now have a queue to which you can print and make changes.


Setting Up AIX as a bootp Server

Caveat: This has not been tested.

Overview

AIX can act as a bootp server to deliver an address to the NETPort or any other bootp client. When the NETPort is turned on, if it is set to get its address through bootp, it will send out a bootp request. This request contains a hardware address. If AIX has the hardware address in its /etc/bootptab table and is set up to respond to bootp requests, then it will send a ip address, ip gateway, and subnet mask to the hardware address that made the request. The /etc/bootptab file documents itself fairly well. Some clients also want a bootp download file. AIX can deliver the file, but the file would have to come from Digital Products. It is not known if this is required in this case.

Setup

  1. Edit /etc/bootptab and add the following entry:
     netp1:hn:ht=ether:ha=0800095e9e10:ip=5.1.1.5:
           sm=255.255.255.0:gw=5.1.1.152:
    

  2. Enable bootpd and tftp in the /etc/inetd.conf file by uncommenting these lines. Remove the # sign from the front of the line.
      bootps  dgram   udp     wait    root    /etc/bootpd bootpd
      tftp    dgram   udp     wait    nobody  /etc/tftpd tftpd -n
    
  3. Refresh the inetd daemon:
      inetimp   (only needed at AIX 3)
      refresh -s inetd
    
  4. Turn on and off the NETPort box.
  5. Print a test page to see if the ip address was loaded.
    If the address did not get loaded, you will have to stop bootpd and rerun bootpd with debug mode turned on. The most common problem is entering the wrong hardware address. The debug mode will show you the address being broadcast.
  6. ping the address.

    Setting Up as an AIX ARP Server

    AIX will also support ARP download of ip addresses. Use:
    1. arp -s (IP address of NETS\JETX) (LAN Address of NETS\JETX)

      For Example:

        arp -s  192.00.20.10   01-12-23-FE-A2-00
      
      NOTE: You must use dashes (-) to separate the numbers of the LAN Address. In this example the IP address 192.00.20.10 is the IP address we are assigning to the NETS\JETX unit.
    2. See the arp table with arb -a.
    3. ping 192.00.00.10. At this time there may be no reply.
    4. Reset the NETS/JETX by resetting the power.
    5. ping 192.00.00.10. This time there should be a reply.

      Once you get a successful ping, the NETS/JETX has its ip address.


    Telnet Configuration of the NETS/JETX Box

    1. Go to the $ or # prompt in AIX and telnet to the NETS/JETX.
      • Execute tn netp1 where netp1 is the host name of the NETS/JETX box.
      • (The login and password is sysadm.)
    2. When the main menu appears, select option (1) to configure the remaining IP parameters (subnet mask and default gateway if applicable).
    3. Hit [Enter] to get back to main menu.
    4. Choose option (3) to disable any protocols that you are not using.
    5. Go back to the main menu, and choose option (2), LPD Printers, to set type of output (if you receive garbled output, increase the strobe to 5 or 10 microseconds).
    6. Save changes and reset the NETS/JETX. You should now be ready to proceed with the AIX setup steps.

    Additional Information

    AIX support is only responsible for setting up the remote queue. Digital Products is responsible for making this work with their product.

    Some of the information needed was obtained from Digital Products Technical Support Bulletin TSB 2004, TSB 2011, and TSB 2002, obtained from the web page listed in the References section.


    Digital Products NETPrint and JETXPrint Printing: AIX Printer Tips: netprint.html ITEM: FAX
    Dated: 99/02/23~00:00 Category: zap
    This HTML file was generated 99/06/24~12:42:11
    Comments or suggestions? Contact us