mkque Command

Purpose

Adds a printer queue to the system.

Syntax

mkque [ -D ] -q Name [ -a 'Attribute = Value' ... ]

Description

The mkque command adds a printer queue to the system by adding the stanza described on the command line to the end of the /etc/qconfig file.

You can use the System Management Interface Tool (SMIT) smit mkque fast path to run this command.

To use the SMIT fast path to go directly to the Add a Local Queue dialog, enter:

smit mklque

To use the SMIT fast path to go directly to the Add a Remote Queue dialog, enter:

smit mkrque
Recommendation: To edit the /etc/qconfig file, use the chque, mkque, rmque, chquedev, mkquedev, and rmquedev commands or SMIT. Further, it is recommended to run these commands during slow or off-peak time.
If manual editing of the /etc/qconfig file is necessary, you can first issue the enq -G command to bring the queuing system and the qdaemon to a halt after all jobs are processed. Then you can edit the /etc/qconfig file and restart the qdaemon with the new configuration.

Flags

Item Description
-a 'Attribute = Value' Specifies a line to be added to the queue stanza in the /etc/qconfig file. This flag must be the last flag when entering the mkque command on the command line. For a list of all valid attributes, see the /etc/qconfig file.

Note: It is recommended that you do not use the 'device = ' attribute. This attribute is handled automatically by the mkquedev command. Also note that the queuing system does not support multibyte host names.

-D Specifies that the queue defined by the Name variable queue is added to the top of the /etc/qconfig file and is therefore the default queue. If you do not specify this flag, the Name variable is added to the bottom of the /etc/qconfig file and is not the default queue.
-q Name Specifies the name of the queue to be added.

Note: The queue name must not exceed 20 characters.

Security

Attention RBAC users and Trusted AIX 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 associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To add the print queue lp0 specifying a host name of leo and a remote print queue named lp013, enter:

mkque  -qlp0  -a 'host = leo' -a 'rq = lp013'

Files

Item Description
/usr/bin/mkque Contains the mkque command.
/etc/qconfig Configuration file.