- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Failover print queue...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 02:06 AM
03-02-2004 02:06 AM
They both have different queue names, but I want to make it so that if the primary fails, the backup can take over.
I was looking through HPDPS, and it looks like I can do it there, but nothing seems to be configured there. Would I have to reconfigure both printers again in that area? Anyone did this sort of thing before, and did you use HPDPS? Another option I was thinking of was to use lpmove. I believe that would work as well. Ideas, feedback, comments? Thanks!
-Hazem Mahmoud
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 02:08 AM
03-02-2004 02:08 AM
Re: Failover print queue...
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 02:12 AM
03-02-2004 02:12 AM
SolutionWell you *could* use a printer class, but that won't be a failover per se. But it would allow jobs to print on ptrB when ptrA is unavailable.
lpadmin -pptrA -cclass_name
lpadmin -pptrB -cclass_name
will add them both to the same class w/o having to recreate.
Then one sends the print jobs to the class..
lp -dclass_name file_to_print
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 02:19 AM
03-02-2004 02:19 AM
Re: Failover print queue...
So what you're saying is if I have all my jobs set to "lp -d
If that's the case, then that probably won't be an option. We have hundreds of jobs that are set up to print to lp -d
Thanks!
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 12:31 AM
07-06-2006 12:31 AM
Re: Failover print queue...
There are another possibility. You could change the name of the printer queue to a new name, from PtrA to PtrC, and after that change the Class name to PtrA, so you don't need to change anything an your current configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 02:07 AM
07-06-2006 02:07 AM
Re: Failover print queue...
While that should work OK, the lp spooler is very primitive when it comes to monitoring. The hpnpf program is the actual code that talks to the printer so you'll have to test whether that program will detect a paper jam or out of paper on non-responsive printer and returns a non-zero return code. If it does, then the prna queue will be disabled and the class will choose the next printer. NOTE: If two or more jobs are sent to the class at the same time, both printers will be printing since a print class is designed as a load sharing feature.
If hpnpf doesn't disable the printer, you'll need to edit the generic interface script to run hpnpadmin to check on the printer, perhaps every minute and then issue a disable for the problem printer. If the load sharing feature of the class is not desirable, you can write code into the interface script that changes the IP address in the script once it becomes disabled, then re-enable the same printer, but now with a new IP address.
The script would have to use mailx to notify sys admins that a switch has occurred, then allow for a special lp -o option to trigger the printer script to finish the current job, disable the printer queue, change the address back to the old printer and re-enable again.
I woulod not try to use HPDPS for this task.
Bill Hassell, sysadmin