[  Previous  |
Next  |
Contents  |
Glossary  |
Home  |
Search  ]
AIX Version 4.3 Commands Reference, Volume 4
piomkpq Command
Purpose
Creates a print queue.
Syntax
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 } ] ...
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 } ] ...
piomkpq -A AttachmentType -p PrinterType -d DeviceName { -D DataStream | -q QueueName }
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:
- Creates printer devices with various attachment types.
 
- Creates print queues.
 
- Creates queue devices.
 
- Creates virtual printers.
 
- Creates pseudo-devices.
 
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:
 | 
| -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 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
 
- 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
 
- 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] 
 
- 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]
 
- 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  ]