[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

AIX Print Queue re-routing

Posted on 2007-09-30
8
Medium Priority
?
827 Views
Last Modified: 2013-11-17
I need all jobs that are sent to lp39 to actually print on lp36.
Here are the entries from /etc/qconfig:
lp36:
        device = hp@lp36
hp@lp36:
        file = /var/spool/lpd/pio/@local/dev/hp@lp36#hpJetDirect#9100
        header = never
        trailer = never
        access = both
        backend = /usr/lib/lpd/pio/etc/piojetd lp36 9100

lp39:
        device = hp@lp39
hp@lp39:
        file = /var/spool/lpd/pio/@local/dev/hp@lp39#hpJetDirect#9100
        header = never
        trailer = never
        access = both
        backend = /usr/lib/lpd/pio/etc/piojetd lp39 9100

What do I need to do to make this happen?
0
Comment
Question by:bport002
  • 5
  • 3
8 Comments
 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 19989924
The command
 # lpmove lp39 lp36
will move all requests to lp36. Furthermore, lp39 will not accept print requests anymore.

For more details see man page lpmove(1)
0
 
LVL 16

Accepted Solution

by:
Hanno P.S. earned 2000 total points
ID: 19989934
If want to allow users to still use lp39, make lp36 an "alias" for lp39.

You can also change lp39's backend entry from
  backend = /usr/lib/lpd/pio/etc/piojetd lp39 9100
to
  backend = /usr/lib/lpd/pio/etc/piojetd lp36 9100
But I'd rather not do this as this is more like a "quick hack" -- not easy to
find by somebody else who did not apply this change :-o
0
 

Author Comment

by:bport002
ID: 19990645
Thanks very much.
How do I undo the lpmove when I want to go back?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 19990697
AS "lpmove A B" moves all jobs destined to lprinter A to printer B and
disables printer A, the only thing you'll have to to is re-enable printer
A when done (and revert backend changes to the original entry).
0
 

Author Comment

by:bport002
ID: 19990698
Am I understanding correctly that lpmove will only move currently queued jobs?
I still need lp39 to accept jobs but route to lp36 until I get lp36 fixed.
0
 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 19990718
Yes, you are right.

That's why I added the possibility to change the backend entry (and (re-)enable the printer)
0
 

Author Comment

by:bport002
ID: 19990726
Thanks very much.
You have been a great help.
0
 
LVL 16

Expert Comment

by:Hanno P.S.
ID: 19990781
You're most welcome ;-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question