[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3


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 Printer Queues application in Web-based System Manager (wsm) to change printer characteristics. You could also 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

Note: Do not edit the /etc/qconfig file while there are active jobs in any queue. Editing includes both manual editing and use of the chque, mkque, rmque, mkquedev, rmquedev, or chquedev commands. It is recommended that all changes to the /etc/qconfig file be made using these commands. However, if manual editing is desired, first issue the enq -G command to bring the queuing system and the qdaemon daemon to a halt after all jobs are processed. Then edit the /etc/qconfig file and restart the qdaemon daemon with the new configuration.

Flags


-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.

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


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

Related Information

The chque command, lsque command, mkquedev command, rmque command.

The qconfig file.

Printer Overview for System Management in the AIX 5L Version 5.1 Guide to Printers and Printing.

Spooler Overview for System Management in the AIX 5L Version 5.1 Guide to Printers and Printing.

Printer Specific Information in the AIX 5L Version 5.1 Guide to Printers and Printing.

For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.1 Web-based System Manager Administration Guide.

Printer Support in the AIX 5L Version 5.1 Guide to Printers and Printing.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]