lsquedev Command

Purpose

Displays the name of the device stanza.

Syntax

lsquedev [ -c ] -q Name -d Name

Description

By default, the lsquedev command displays the name of the queue stanza and its associated attributes from the /etc/qconfig file.

If the scalability feature of the AIX printer subsystem is enabled, the lsquedev command displays the name of the queue stanza and its associated attributes from the /etc/qconfig.bin file. For more information about the printer_scalability tunable parameter, see the printer_scalability section in the Miscellaneous tunable parameters page.

Flags

Table 1. Flags
Item Description
-c Displays the output in colon format for use by System Management Interface Tool (SMIT).
-d Name Specifies the Name variable of the device stanza that is displayed.
-q Name Specifies the Name variable of the queue that contains the device stanza that is displayed.

Security

Attention RBAC users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations that are associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To display device stanza dlp0 on the lp0 queue, enter the following command:
    lsquedev  -q lp0 -d dlp0
    A list similar to the following list is displayed:
    dlp0:
    FILE = /dev/lp0
    BACKEND = /usr/lib/lpd/piobe
  2. To display device stanza dlp0 on the lp0 queue in colon format, enter the following command:
    lsquedev -c -q lp0 -d dlp0
    A list similar to the following list is displayed:
    file:access:feed:header:trailer:backend:align
    dlp0:/dev/lp0:read:never:never:never:/usr/lib/lpd/piobe:TRUE

Files

Table 2. Files
Item Description
/usr/bin/lsquedev Contains the lsquedev command.
/etc/qconfig Contains the configuration file.