chquedev Command

Purpose

Changes the printer or plotter queue device names.

Syntax

chquedev -qName -dName [ -a'Attribute = Value'... ]

Description

The chquedev command changes the printer or plotter queue device names by changing the device stanza in the qconfig file specified by the -d, and -q flags. Within that stanza, each attribute that matches one of the 'Attribute = Value' flags given on the command line is replaced by the one entered on the command line. If no match is found, 'Attribute = Value' is added to the end of the stanza.

You can use the Printer Queues application in Web-based System Manager (wsm) to change printer queue characteristics. You could also use the System Management Interface Tool (SMIT) smit chquedev 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
-a 'Attribute = Value' Specifies the stanza lines to change or add. For a list of valid attributes, see the qconfig file.
-d Name Specifies the device Name in the queue to be changed.
-q Name Specifies the queue Name in which to change the device stanza.

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 change the ps device stanza on the lp0 queue to contain the line 'backend = piobe -x -y', enter:

chquedev  -qlp0  -d ps  -a 'backend        =        piobe -x -y'

Note: The -x flag and the -y flag in this example are flags for the piobe command.

Files

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