Displays the attribute values of a virtual printer.
lsvirprt [ -q QueueName -d DeviceName { [ -f Format ] [ -n ] [ -a AttributeName | -s SectionName ] ... | -i | -D } ]
The lsvirprt command displays the attribute values for the virtual printer assigned to the PrintQueueName and QueueDeviceName variables.
The lsvirprt command becomes interactive if no flags are specified with the command. A list of print queue names is displayed, and a prompt appears requesting that the desired print queue name be selected. After a valid print queue name is selected, a prompt appears requesting that attribute names be entered. If an attribute name of * (asterisk) is entered, a list of all attributes is displayed.
Note: Attribute names for default values of the qprt command line flags can be specified by entering the flag letters. For example, to view the default value for the -w flag (page width), enter the w attribute name. All other attribute names must be 2 characters long.
You can use the Web-based System Manager Printer Queues application (wsm printers fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit lsvirprt fast path to run this command.
-a AttributeName | Specifies the name of an attribute for which information is to be displayed. The flag cannot be used with the -s flag. The -a flag can be specified many times to list multiple attributes. The AttributeName value can be a single-character name (for example, j), a simple two-character name (for example, ci), or a regular expression that specifies multiple attributes (for example, ^i.*.) |
-d QueueDeviceName | Specifies the name of the queue device to which the virtual printer is assigned. This flag is optional, but can be specified only if the -q flag is specified. |
-D | Displays data streams supported by a given queue and queue device name variable values. The -D flag displays the default data stream first and all other supported data streams in alphabetical order. |
-f Format | Specifies the display format for attribute information. Attribute information includes the attribute value, limits field, and attribute description. The Format value is specified in printf format. The -f Format option also supports the following predefined set of position arguments: |
-i | Sets the command to interactive mode. The -q and -d flags must be specified with the -i flag. If values have been assigned to the QueueName and DeviceName variables, the command does not prompt for the queue and device names and accepts attribute names interactively. |
-n | Displays only the specified attributes that have nonnull values. |
-s SectionName | Specifies a section name in the virtual printer attribute database of the specified queue and queue device. The SectionName values begin with two underscores and contain three characters that identify a section. For example, the name of a section that contains all the flag attributes is __FLG. The -s flag can not be used with the -a flag. This option can be repeated to list multiple attributes. The SectionName variable value can be a regular expression. |
-q PrintQueueName | Specifies the name of the print queue to which the virtual printer is assigned. This flag is optional, but can be specified only if the -d flag is specified. |
lsvirprt -dmypro -qproq -a w -a siThe output from this command is:
Name Description Value _w COLUMNS per page 136 si USERS to get intervention messages
lsvirptThe output from this command is:
1 e4039c @piobe ibm4039 (PCL Emulation) 2 e4039s @piobe ibm4039 (PostScript) 3 fjzhp4s jzfile hplj-4 (PostScript) 4 hpc14 hp@pc15 hplj-4 (PCL) ...
lsvirpt -qque -ddev -s__HTPThe output from this command is:
Name Description Value sh Pipeline for Header Page %Ide/pioburst %F[H] %Idb/H.ascii | %Ide/pioformat -@%Idd/%Imm -!%Idf/piof5202 -L! -J! %IsH st Pipeline for Trailer Page %Ide/pioburst %F[H] %Idb/T.ascii | %Ide/pioformat -@%Idd/%Imm -!%Idf/piof5202-L! -t%o%G_1%r%{14}%-%d %IsT
lsvirpt -qque -ddev -DThe output from this command is:
a ASCII p pass-through s PostScript
lsvirpt -qque -ddev -a'.*' -f' %3$5.5s: %6$s\\n'The output from this command is:
__FLG: Values That May Be Overridden With Flags _A: stderr returned? _E: Double spacing flag _F: (not used) Font file name _H: Name to Replace Host Name of Burst Page ...
lsvirpt -qque -ddev -a'__.*' -f'%3$s: %6$s\\n'The output from this command is:
__FLG: Values That May Be Overridden With Flags On the Command Line __SYS: Other Values Of Interest To the Streams Administrator __IDS: Pipelines For Input Data Streams (2 char,1st="i",2nd=data stream name) __PFL: Flags Prohibited For Input Data Streams (2 char,1st="I", 2nd=data stream name) __FIL: Command Strings For Filter Flags (2 char, 1st="f", 2nd=flag) __DIR: Directories ...
The chvirprt command, mkvirprt command, rmvirprt command.
The qconfig file.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
Configuring a Printer without Adding a Queue in AIX Version 4.3 Guide to Printers and Printing .
Printer Overview for System Management in AIX Version 4.3 Guide to Printers and Printing.
Queuing System Overview for System Management in AIX Version 4.3 Guide to Printers and Printing.
Virtual Printer Definitions and Attribute Values in AIX Version 4.3 Guide to Printers and Printing.
Adding a Printer Using the Printer Colon File in AIX Version 4.3 Guide to Printers and Printing.