Link to home
Start Free TrialLog in
Avatar of bport002
bport002

asked on

AIX Print Queue re-routing

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?
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

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)
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bport002
bport002

ASKER

Thanks very much.
How do I undo the lpmove when I want to go back?
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).
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.
Yes, you are right.

That's why I added the possibility to change the backend entry (and (re-)enable the printer)
Thanks very much.
You have been a great help.
You're most welcome ;-)