AIX Printer Tips: Adding Parallel Printers at AIX 4


Contents

About This Document
Prerequisites
Configuring a Local Printer and Adding a Queue
Testing the Print Queue
Troubleshooting Parallel Port Problems
Files Changed When Adding an AIX 4 Local Queue
Configuring a Printer without Adding a Queue

About This Document

This document describes how to configure a printer device and one or more print queues. Use this procedure to connect a printer directly to a parallel port on the local host.

NOTE: If you only want to configure a printer without adding a print queue, do not use this procedure. See the section "Configuring a Printer without Adding a Queue" in this document.

This document applies to AIX Version 4.x.


Prerequisites

  1. Read the documentation for your printer. Printer-specific information may be needed to connect and configure the printer.

  2. A parallel port must be available on the system.
    # lsdev -Cc printer | grep 0P will show if a printer is already attached.

  3. You must have root authority.

Configuring a Local Printer and Adding a Queue

  1. Connect the printer to the local host by performing the following steps:

  2. Enter the SMIT fastpath:

  3. Select the attachment type local.

  4. Select the manufacturer of the printer.
    If the manufacturer of your printer is not listed,

  5. Select the printer model.
    If your printer model is not listed,

  6. If prompted, select the Add NEW Printer option.
    If you already have a printer added, select the device to which you want to add the queue.

  7. Select the type of printer interface.

  8. Select the parent adapter.

  9. Fill in queue names in the following screen (number and type of emulation will vary based on printer type selected):
    
                                   Add a Print Queue
    
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
      
                                                            [Entry Fields]        
      Description                                         IBM 4029 LaserPrinter   
      
      Names of NEW print queues to add
         ASCII                                           [ascpp0]
         GL Emulation                                    [glpp0]                       
         PCL Emulation                                   [pclpp0]                       
         PostScript                                      [pspp0]                       
         IBM 5587 G01 Japanese Data Stream Emulation by  []
      4029
      
      Printer connection characteristics                                          
    *    PORT number                                     [p]                      +
         Type of PARALLEL INTERFACE                      [standard]               +
         Printer TIME OUT period (seconds)               [600]                    +#
         STATE to be configured at boot time              available
    
    
    NOTE: If the printer supports more than one type of print data, such as PostScript and ASCII, enter a print queue name for each print data type.

  10. Review and change the remaining attributes as necessary.

  11. Select Do or hit the Enter key to add the printer.

  12. When the printer and print queues have been created successfully, their names are displayed. Be sure to note any error messages.

  13. Select Exit and then enter the SMIT fastpath to customize the new printer attributes.

Testing the Print Queue

To test the print queue make sure you use a file that is appropriate for the printer you have attached. If you are testing an ASCII text or PCL queue, one of the following commands is recommended:

These commands will print a single page to the printer.

If you are testing a printer that prints only PostScript or HPGL, print a known good file or use the following commands:

This will produce a page that contains rows of ### and lines with percent signs, but will print a banner page and only one other page.

With HPGL it is best to use a known good file.


Troubleshooting Parallel Port Problems

Some common problems when printing to parallel port printers are:
  1. Defective parallel cable

  2. Parallel cable longer than six feet

  3. Printer setup for serial rather than parallel-common on proprinters and HPLJ III

  4. Delay setting for older parallel printers and plotters-a common symptom being initial printing is fine, after a moment though, data is lost

Setting the Delay for Parallel Port Printing

The handshaking on the parallel port is quite simple but depends on the printer receiving the data within a set period of time after the data has been shown as READY. There is a single SMIT setting for this.

  1. smitty printer

  2. Choose Printer Plotter Devices

  3. Choose Change / Show Characteristics of a Printer/Plotter

  4. Choose lp0 Available 00-00-0P-00 IBM 4029 LaserPrinter

  5. The next screen will show:
    
                   Change / Show Characteristics of a Printer/Plotter
    
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
      
    [TOP]                                                   [Entry Fields]
      Printer/Plotter                                     lp0
      Printer/Plotter type                                ibm4029
      Printer/Plotter interface                           parallel
      Description                                         IBM 4029 LaserPrinter
      Status                                              Available
      Location                                            00-00-0P-00
      Parent adapter                                      ppa0
    * PORT number                                        [p]                      +
      Type of PARALLEL INTERFACE                         [standard]               +
      Microseconds to delay between characters           [0]  
      Printer TIME OUT period                            [600]                    +#
      STATUS of device at BOOT time                       available               +
      
    
    
  6. Change Microseconds to delay between characters to 100-500

Files Changed When Adding an AIX 4 Local Queue

File Description
/etc/qconfig New queue stanza and queue device stanza is added
/etc/qconfig.bin Digested binary version of /etc/qconfig
/var/spool/lpd/pio/@local/custom/<queue:quedev> ASCII editable version of virtual printer colon file definitions
/var/spool/lpd/pio/@local/ddi/<queue:quedev> Digested binary version of virtual printer colon file definitions
/var/spool/lpd/pio/@local/smit/<odm files> ODM database of attribute limits and smit panel information
/dev/lp/device_number> Special Device Files


Configuring a Printer without Adding a Queue

The procedure for adding a printer without adding an AIX print queue differs slightly from the preceding discussion. This is the case, for example, if you are using a third party print spooler or if you are using applications that print directly to a device file.

Following are the steps to add a printer without adding a print queue.

  1. Use the smitty mkprt fastpath.

  2. Choose Add a Printer/Plotter.

  3. Select the Printer/Plotter Type.

  4. Choose the Printer/Plotter Interface.

  5. Choose the PORT number.

  6. Modify any serial attributes.

  7. Press the Enter key to add the printer.

This will add a device file in /dev such as /dev/lp24.

Testing

You will not be able to use print commands to print to this device. You must write directly to the device file using redirection or print statements inside a program.

Example:

  lptest 10 10 > /dev/lp24
  cat /etc/hosts > /dev/lp24

To look at the configurations or make temporary changes to the device configuration use:

To print postscript to this file you may need to set the printer to passthrough mode using:

splp -p+

Adding Parallel Printers at AIX 4: AIX Printer Tips:addpp4.html ITEM: FAX
Dated: 99/05/21~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:14
Comments or suggestions? Contact us