chquedev Command
Purpose
Changes the printer or plotter queue device names.
Syntax
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 could also use the System Management Interface Tool (SMIT) smit chquedev fast path to run this command.
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:
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. |