Printing on AIX

The procedures in this section describe what to do at the UNIX* host to use NetWare® bidirectional printing.


UNIX--to--NetWare Printing

Remote computers supporting LPR protocol can send files to NetWare printers by using the UNIX--to--NetWare print service. In addition to setting up this print service, as described in the section on "Managing Print Services" under “Managing”, you need to configure your host machine.

Before you proceed, make sure the name and IP address of the NetWare server is listed in the /etc/hosts file on your AIX host.

AIX supports LPD. However, instead of using the /etc/printcap file for configuration, AIX uses SMIT to configure printing. To configure printing using SMIT, perform the following:

  1. Log in to the AIX host as root.

  2. Start SMIT by entering the following command:

    smit <Enter>

  3. To add a remote print queue, select the following options from the SMIT menu:

    Spooler (Print Jobs and Printers)
    Manage Remote Printer Subsystem
    Client Services
    Remote Printer Queues
    Add a Remote Queue

    A form appears asking you to define a remote print queue.

  4. Enter information into the following fields. All other fields should use the default value.

    NAME of queue to add---the name of the local print queue. Print jobs sent to this queue are passed to the NetWare print queue. Enter a name of seven characters or less.

    DESTINATION HOST for remote jobs---the name of the NetWare Server. This hostname must also be contained in the /etc/hosts file.

    Name of QUEUE on remote printer---the name of the NetWare queue exported by using the PLPDCFG.NLM. Enter a name of seven characters or less.

    NAME of device to add---a device name that is required by AIX but has no effect on the UNIX--to--NetWare print service. Enter any name of seven characters or less. The name does not need to be an existing device, nor does it need to be unique.

  5. Start the lpd subsystem with SMIT:

    Spooler (Print Jobs and Printers)

    Manage Remote Printer Subsystem

    Server Services

    lpd Remote Printer Subsystem

    Start Using the lpd Subsystem

    Start BOTH Now and at System Restart
  6. Start the qdaemon by entering the following command:

    startsrc -s qdaemon <Enter>

  7. Try printing to the NetWare printer by issuing the following command:

    lpr -Pprinter filename <Enter>

  8. Examine the NetWare exported queue on the NetWare server by issuing the following command:

    lpq -Pprinter <Enter>

    or

    enq -q -Pprinter <Enter>


Troubleshooting

If you have any problems printing to a NetWare printer, try the following procedures.

  1. Check the local QUEUE setup with SMIT as follows:

    1. Start SMIT by entering the following command:

      smit  <Enter>

    2. From the Main Menu, make the following selections:

      Spooler (Print Jobs and Printers)
      Manage Local Printers, Queues, and Queue Devices
      Manage Local Printer Subsystem
      Local Printer Queues
      Change / Show Characteristics of a Queue

    3. Highlight the name of the NetWare printer and press <Enter>.

    4. Check that the names assigned to the following items are correct:
      • Current name of queue
      • Destination Host for remote jobs
      • Name of Queue on remote printer

  2. Stop the local queue by entering the following command:

    enq -Pprinter -D <Enter>

  3. Restart the local queue by entering the following command:

    enq -Pprinter -U <Enter>

  4. Stop the lpd remote printer subsystem by entering the following command:

    stopsrc -c -s lpd <Enter>

  5. Restart the lpd remote printer subsystem by entering the following command:

    startsrc -s lpd <Enter>

  6. Verify that qdaemon is running by entering the following command:

    lssrc -s qdaemon <Enter>

  7. If Status is Active, continue with the next step. If Status is Inoperative, start qdaemon by issuing the following command:

    startsrc -s qdaemon <Enter>

  8. Check /usr/lpd/stat for device creation. You should see a file with a name similar to s.device_name.

  9. Check /usr/lpd/qdir for queued files.

  10. Check /usr/spool/qdaemon for temporarily spooled files.

  11. Check /usr/lpd/qconfig for correct remote printer creation and configuration. You should see an entry in this file that looks like this:

    printer_name:

       device = lpdev

       up = TRUE

       host = NetWare_server_name

       s_statfilter = /usr/lpd/bsdshort

       l_statfilter = /usr/lpd/bsdlong

       rq = NetWare_queue_for_export

    NOTE: Only LP is fully implemented. Using QPRT will not support print control options such as Form Feed suppression.


NetWare--to--UNIX Printing

Before you proceed, ensure the following prerequisites are met.

AIX supports LPD. Instead of using the /etc/printcap file for configuration, AIX uses SMIT to configure printing. To configure printing using SMIT, perform the following procedure:

  1. Start SMIT by entering the following command:

    smit <Enter>

  2. To add a local queue, select the following options from the SMIT menu:

    Spooler (Print Jobs and Printers)
    Manage Local Printers, Queues, and Queue Devices
    Manage Local Printer Subsystem
    Local Printer Queues
    Add a Local Queue

    A form appears asking you to define a local print queue.

  3. Enter information in the following fields. All other fields should use the default value.

  4. To specify the name of the NetWare server that will spool print jobs to your AIX host, select the following options from the SMIT menu:

    Spooler (Print Jobs and Printers)
    Manage Remote Printer Subsystem
    Server Services
    Host Access for Printing
    Add a Remote Host

    You are prompted for the name of the remote host.

  5. Type in the name of the NetWare server.

  6. Try printing to the UNIX printer by entering the following command:

    nprint filename /q=nw2unix /name=username

    For username, use a valid login name on the AIX host.

    NOTE: When printing to AIX printers from NetWare, you must specify the use of banners. This implies that you should not use the /NB option with either CAPTURE or NPRINT. Also, you should specify an AIX username with the /NAME= option when using CAPTURE or NPRINT. Otherwise, the print jobs will queue up on the AIX machine in the /usr/spool/qdaemon directory, but the lpq command will not show these jobs and they will not be printed.


Troubleshooting

If you have any problems printing to a NetWare printer, perform the following procedure at your AIX host.

  1. Stop the local queue by entering the following command:

    enq -Pprinter -D

  2. Restart the local queue by entering the following command:

    enq -Pprinter -U

  3. Stop the lpd remote printer subsystem by entering the following command.

    stopsrc -c -s lpd

  4. Restart the lpd remote printer subsystem by entering the following command

    startsrc -s lpd

  5. Stop the qdaemon by entering the following command.

    stopsrc -s qdaemon

  6. Restart the qdaemon by entering the following command:

    startsrc -s qdaemon

  7. Try the troubleshooting techniques in "Troubleshooting" for configuring UNIX--to--NetWare printing.

If you need additional help configuring the local printer subsystem using SMIT, consult your IBM* support representative.