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@lp3 6#hpJetDir ect#9100
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/pioje td lp36 9100
lp39:
device = hp@lp39
hp@lp39:
file = /var/spool/lpd/pio/@local/ dev/hp@lp3 9#hpJetDir ect#9100
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/pioje td lp39 9100
What do I need to do to make this happen?
Here are the entries from /etc/qconfig:
lp36:
device = hp@lp36
hp@lp36:
file = /var/spool/lpd/pio/@local/
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/pioje
lp39:
device = hp@lp39
hp@lp39:
file = /var/spool/lpd/pio/@local/
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/pioje
What do I need to do to make this happen?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much.
How do I undo the lpmove when I want to go back?
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).
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).
ASKER
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.
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)
That's why I added the possibility to change the backend entry (and (re-)enable the printer)
ASKER
Thanks very much.
You have been a great help.
You have been a great help.
You're most welcome ;-)
# 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)