HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printer Class...
Operating System - HP-UX
1825800
Members
2469
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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 07:18 AM
03-02-2004 07:18 AM
I have decided to create a printer class for two of our printers. I've created the class, then added the two printers to the class without problems.
The only problem is that when printing to the class (ie: "lp -d "), it always goes to our backup printer. How can I define the primary printer as the first printer the class should try to print to, and then if that's not available to print to the second printer? A rabbit for the person who helps me out:) Thanks!
-Hazem Mahmoud
The only problem is that when printing to the class (ie: "lp -d
-Hazem Mahmoud
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 07:31 AM
03-02-2004 07:31 AM
Solution
Assuming all printers in the class are enabled, idle, and accepting jobs, the jobs go to the first printer defined in the class. That is actually a good thing because it allows you to define the newer, faster printers first in the class and the slower, older units later. One of the nice features of a printer class is that all the printers within a class don't have to be the same model.
I would remove the class and then add make the class adding the secondary printer as the last step.
lpadmin -x myclass # remove class myclass
lpadmin -p primary_printer -c myclass # recreate myclass using primary_printer as the first printer
lpadmin -p myclass secondary_printer # add the next printer
accept myclass
enable myclass # this step may not be required
I would remove the class and then add make the class adding the secondary printer as the last step.
lpadmin -x myclass # remove class myclass
lpadmin -p primary_printer -c myclass # recreate myclass using primary_printer as the first printer
lpadmin -p myclass secondary_printer # add the next printer
accept myclass
enable myclass # this step may not be required
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 07:42 AM
03-02-2004 07:42 AM
Re: Printer Class...
Unfortunately that did not work, but I figured it out. I modified /var/spool/lp/class/Main_Class by switching the order of the entries in the file:
as opposed to how I set it up where it put it as:
So it looks like the primary printer needs to be defined in that file as the last entry and that should do it. Thanks for your help Clay!
as opposed to how I set it up where it put it as:
So it looks like the primary printer needs to be defined in that file as the last entry and that should do it. Thanks for your help Clay!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP