Creates a print queue.
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
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:
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 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. |
piomkpq -A local -p ibm4019 -d lp0 -D asc -q castor
piomkpq -A local -p ibm4019 -d lp0 -Q pyrite -D ps
piomkpq -A local -p ibm4019 -D asc -Q baker -s parallel -r ppa0
-w p -v ibm4019 [-a ptop=120]
piomkpq -A file -p ibm4019 -d clues -D asc -q baker
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. |