rmque Command

Purpose

Removes a printer queue from the system.

Syntax

rmque  -q Name

Description

The rmque command removes a queue from the system configuration by deleting the queue stanza named by the -q flag from the /etc/qconfig file. All queue devices must be deleted using the rmquedev command before entering this command.

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 rmque fast path to run this command.

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
-q Name Specifies the name of the queue to be removed.

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 remove printer queue lp0, enter:

rmque -q lp0

Files

Item Description
/usr/bin/rmque Contains the rmque command.
/etc/qconfig Contains the configuration file.