08/02/96, 4FAX# 5641 Changing A Default Queue SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. ABOUT THIS DOCUMENT This document discusses how to change a queue to be the default print que. It is applicable to AIX 3.XX and 4.1. DEFAULT PRINT QUEUE IN AIX 4.1 At AIX 4.1 changing the queue to be the default is performed through SMIT. NOTE: If this change is for selective users please see step 1 in the section titled "Default Print Queue in AIX 3". If this change is to be system-wide follow the path in smit. #smit spooler Manage Print Queues Set the System's Default Print Queue Now you should be able to specify the name of the queue you wish to be the system default queue. DEFAULT PRINT QUEUE IN AIX 3 The default queue is the first queue in the /etc/qconfig file. The basic process is to move the queue and queue device stanzas to be the first queue stanzas in the file as follows: Selective Users Change 1. add the following entry to the users .profile. export LPDEST=queue_name The queue specified by queue_name will become the default queue for that user, without affecting other users. Changing A Default Queue 1 08/02/96, 4FAX# 5641 System Wide Change For a system wide change follow this procedure. 1. Choose a time when the printing subsystem is inactive. 2. Stop the qdaemon with: 'stopsrc -cs qdaemon'. 3. cd /etc 4. vi /etc/qconfig 5. Search for the desired queue with /queue_name 6. Count the number of lines in the queue and queue device stanzas and any blanks between. The queue stanza should have a line saying 'device = dev_name'. The device stanza usually ends with a line 'backend = ...', but make sure there are no more indented lines after this. An example entry for a 4033 queue is: (7 lines) pcl4039: device = duplx duplx: file = /usr/lpp/lap/dev/duplx header = group trailer = never backend = /usr/lpp/lap/lpabe -n 10005A10000A ... 7. With cursor on queue name (here pcl4039) type '7yy'. NOTE: The bottom of the screen will say: 7 lines yank'd. We could have deleted the lines, but I find copying them first is safer. Replace 7 with your exact count. 8. Move to the top of the file, then just below the lines starting with '*'s. Type 'p' to put the lines. The lines should all be inserted here. If they are not repeat 5-7 for the remaining lines. 9. Now search for the other entry. If we don't delete it we will be certain to have queue daemon problems with two identical queues. 10. Delete the old queue and device lines (all of them). Placing the cursor on the line and typing 'dd' is the safest, but you can also put the cursor on the queue name and typing 'd#[enter]', where # is the line count. 11. Save the file. Type ':wq' 12. Restart the qdaemon: 'startsrc -s qdaemon' 13. Check to see that queue shows up first in the queue, and that there are no errors reported by typing: 'lpstat'. 14. Print to test by typing: 'qprt /etc/motd'. Changing A Default Queue 2 08/02/96, 4FAX# 5641 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: ______________________________________________________________________ END OF DOCUMENT (chng.default.que.zap, 4FAX# 5641) Changing A Default Queue 3