Changing A Default Queue


Contents

About This Document
Default Print Queue in AIX 4.1
Default Print Queue in AIX 3

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 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.

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 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 you don't delete it, you will 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: change.default.que.32-41.zap ITEM: FAX
Dated: 99/03/10~00:00 Category: zap
This HTML file was generated 99/06/24~12:42:06
Comments or suggestions?
Contact us