Changes the printer or plotter queue device names.
chquedev -qName-dName [ -a'Attribute = Value'... ]
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 Web-based System Manager Printer Queues application (wsm printers fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit chquedev fast path to run this command.
Note: Do not edit the qconfig file while there are active jobs in any queue. Editing includes both manual editing and use of the mkque, rmque, chque, mkquedev, rmquedev, or chquedev commands. It is recommended that all changes to the 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 to a halt after all jobs are processed. Then edit the qconfig file and restart the qdaemon with the new configuration.
-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. |
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.
/usr/bin/chquedev | Contains the chquedev command. |
/etc/qconfig | Contains the configuration file. |
The chque command, lsquedev command, mkquedev command, rmquedev command, piobe command.
The qconfig file.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
Changing / Showing Queue Characteristics in AIX Version 4.3 Guide to Printers and Printing.
Printer Overview for System Management in AIX Version 4.3 Guide to Printers and Printing.
Printer Specific Information in AIX Version 4.3 Guide to Printers and Printing.
Printer Support in AIX Version 4.3 Guide to Printers and Printing.
Spooler Overview for System Management in AIX Version 4.3 Guide to Printers and Printing.
Printer Colon File Conventions in AIX Version 4.3 Guide to Printers and Printing.