[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

piomkpq Command

Purpose

Creates a print queue.

Syntax

To add a new printer

piomkpq -A AttachmentType -p PrinterType -Q QueueName -D DataStream -v DeviceType -s Subclass -r ParentAdapter -w PortNumber-a interface ptop | autoconfig | speed | parity | bpc | stops | xon | dtr | tbc=DescValue } ] ...

To create a new print queue

piomkpq -A AttachmentType -p PrinterType-D DataStream | -q QueueName } -s Subclass -r ParentAdapter -w PortNumber -v DeviceType-a interface ptop | autoconfig | speed | parity | bpc | stops | xon | dtr | tbc=DescValue } ] ...

To create print queues for an existing printer

piomkpq -A AttachmentType -p PrinterType -d DeviceName { -D DataStream | -q QueueName }

To add an existing printer to an existing print queue

piomkpq -A AttachmentType -p PrinterType -d DeviceName -D DataStream -q QueueName

Description

The piomkpq command creates print queues and printers. This command is used by SMIT dialogs created with the piomkapqd command. The piomkpq command performs the following functions:

Flags

-a Specifies a device attribute. This takes the form Attribute=Value, for example: -a speed=9600. The valid attributes are:
Interface
ptop
autoconfic
speed
parity
bpc
stops
xon
dtr
tbc
-A AttachmentType Specifies the type of attachment used to connect the printer to the data source. Common values for the AttachmentType variable are:
local
Specifies a local attachment type.
xsta
Specifies an Xstation attachment type.
ascii
Specifies an ASCII attachment type.
file
Specifies a file where the data is stored.
-d DeviceName Specifies the name of the device, pseudo-device, or file where the output is directed, for example lp0 or tty1.
-D DataStream Specifies the datastream of a print queue to be created or an existing print queue.
-p PrinterType Specifies the printer type as defined in the /usr/lib/lpd/pio/predef directory, for example ibm4019.
-q QueueName Specifies a new queue name. The -q and -Q flags are exclusive.
-Q QueueName Specifies an existing queue name. The -q and -Q flags are exclusive.
-s Subclass Specifies the subclass type to which the printer belongs. The possible values for the Subclass variable are:
  • parallel
  • rs232
  • rs422
-r ParentAdapter Specifies the parent adapter for the printer.
-w PortNumber Specifies the port number for the printer attachment.
-v DeviceType Specifies the device type as defined in the ODM database.

Examples

  1. To create a local print queue named castor of datastream ASCII for an existing IBM 4019 printer named lp0, enter:
    piomkpq -A local -p ibm4019 -d lp0 -D asc -q castor
  2. To add an existing local printer to an existing local print queue called pyrite for the datastream PostScript, enter:
    piomkpq -A local -p ibm4019 -d lp0 -Q pyrite -D ps
  3. To create local print queue called baker for a new printer, enter:
    piomkpq -A local -p ibm4019 -D asc -Q baker -s parallel -r ppa0
    -w p -v ibm4019 [-a ptop=120] 
  4. To add a new printer to an existing Xstation print queue named bob, enter:
    piomkpq -A xsta -p ibm4019 -Q bob -D pcl -x Einstein -t 120 -P s1
    [-a speed=19200]
  5. To create the clues file print queue, enter:
    piomkpq -A file -p ibm4019 -d clues -D asc -q baker

Files

/usr/lib/lpd/pio/etc/piomkpq Contains the piomkpq command.
/usr/lib/lpd/pio/etc/piomgpdev Creates a pseudo-device.
/usr/sbin/mkdev Creates a device.
/usr/bin/mkque Creates a queue.
/usr/bin/mkquedv Creates a queue device.
/usr/sbin/mkvirprt Creates a virtual printer.

Related Information

The piobe command, piomkapqd command.

Printer Overview for System Management in AIX Version 4.3 Guide to Printers and Printing .

Spooler Overview for System Management in AIX Version 4.3 Guide to Printers and Printing .

Printer Backend Overview for Programming in AIX Version 4.3 Guide to Printers and Printing .


[ Previous | Next | Contents | Glossary | Home | Search ]