Virtual printer attributes

The commands used to create a virtual printer (the mkvirprt or smit virprt commands) copy a predefined virtual printer definition and create a customized virtual printer definition for the specified queue and queue device.

The attribute values in the custom definition can be further changed, with the chvirprt or smit lsvirprt commands.

You must create a virtual printer for each data stream type supported by a specific printer device. The supported data stream types include:
Data Stream Type Code for Attribute Name/Value Description
asc a Extended ASCII
pcl c Hewlett-Packard PCL
630 d Diablo 630
gl g Hewlett-Packard GL
  p Pass-through (sent to printer unmodified)
ps s PostScript
855 a Texas Instruments 855
kji k Kanji

When you use the mkvirprt or smit virprt command to create a virtual printer, the system prompts you to select the desired printer from a list of defined printers. If you have just configured a printer port for a new printer, select the new printer port. When the virtual printer command is executed, the system creates a print queue and copies the colon file for the selected printer in the predefined database directory, /usr/lib/lpd/pio/predef/*, to the customized database directory /var/spool/lpd/pio/custom/*.

Note: If no flags are specified, the mkvirprt command becomes interactive.

Use the chvirpt or smit lsvirprt command to change or further customize the attribute values stored in a virtual printer definition. To change an attribute value with smit lsvirprt, enter attribute_name=attribute_value with no spaces on either side of the = (equal) sign.

Each attribute name in a virtual printer definition must be unique. Attribute names can contain the characters a through z, A through Z, 0 through 9, and _ (underscore). Attribute names must not begin with a numeral. All attribute names must be two characters long, except for group header attribute names, which can be five characters long.

Attribute names for group headers begin with _ _ (two underscores) and must not be longer than five characters. A group header attribute marks the beginning of a group of related attributes.

Examples show some of the typical attributes for a supported PostScript laser printer (4029 LaserPrinter). Each example shows how the lsvirprt and smit lsvirprt commands display virtual printer attributes (with a descriptor for each attribute) and how those same attributes are stored in the printer colon file.