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 that are created with the piomkapqd command. The piomkpq command performs the following functions:
- Creates printer devices with various attachment types.
- Creates print queues.
- Creates queue devices.
- Creates virtual printers.
- Creates pseudo-devices.
Flags
| Item | Description |
|---|---|
| -a | Specifies a device attribute. This takes the form Attribute=Value, for example:
-a speed=9600. The valid attributes are:
|
| -A AttachmentType | Specifies the type of attachment that is used to connect the printer to the data source.
Common values for the AttachmentType variable are:
|
| -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:
|
| -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
- To create a local print queue that is named
castorof datastream ASCII for an existing IBM 4019 printer that is namedlp0, enter:piomkpq -A local -p ibm4019 -d lp0 -D asc -q castor - To add an existing local printer to an existing local print queue called
pyritefor the datastream PostScript, enter:piomkpq -A local -p ibm4019 -d lp0 -Q pyrite -D ps - To create local print queue called
bakerfor a new printer, enter:piomkpq -A local -p ibm4019 -D asc -Q baker -s parallel -r ppa0 -w p -v ibm4019 [-a ptop=120] - To create the
cluesfile print queue, enter:piomkpq -A file -p ibm4019 -d clues -D asc -q baker
Files
| Item | Description |
|---|---|
| /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. |