Operating System - HP-UX
1825720 Members
3200 Online
109686 Solutions
New Discussion

re-direct a print job request to new printer

 
SOLVED
Go to solution
Aussan
Respected Contributor

re-direct a print job request to new printer

Good Day every one, and happy new year

we are on hp-ux 11.11
i would like to know if there is a way to Automatically redirect a print request going to printerA and sending it to printerB

i know lpmove will move current request but what about future request

so if someone sends a request to printerA it will automatically send it to printerB

Thank you in advance
The tongue weighs practically nothing, but so few people can hold it
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: re-direct a print job request to new printer

How are your printers defined? If you use hppi and the printers are identified by IP address, you can just switch the IP address of printerA to that of printerB.


Pete

Pete
Aussan
Respected Contributor

Re: re-direct a print job request to new printer

the 2 printers are remote printers
definded with hostname and ip

so are you saying the 2 printers should have the same ip address?
The tongue weighs practically nothing, but so few people can hold it
Dennis Handly
Acclaimed Contributor

Re: re-direct a print job request to new printer

>so are you saying the 2 printers should have the same IP address?

Did you want to alias the two printer names since A is no longer there?
Bill Hassell
Honored Contributor

Re: re-direct a print job request to new printer

The simplest way to do this is to delete printerA then create a class called printerA that contains one printer named printerB. This effectively aliases the two names so that printerA sends data to printerB. Normally, printer classes are used for a bunch of printers but just one printer works just fine.


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor
Solution

Re: re-direct a print job request to new printer

Sorry, here are the commands:

# lpshut
# ps -fu lp
(make sure there are no lp processes running)

then:
# lpadmin -xprinterA
# lpadmin -pprinterB -cprinterA

NOTE: lp commands do not allow a space after the option. The above assumes that printerB exists and is working OK. All requests sent to printerA will appear on printerB.


Bill Hassell, sysadmin
Aussan
Respected Contributor

Re: re-direct a print job request to new printer

thank you everyone
The tongue weighs practically nothing, but so few people can hold it