LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 01-07-2014, 01:11 PM   #1
AWSmith
LQ Newbie
 
Registered: Jun 2012
Posts: 25

Rep: Reputation: Disabled
How do I load balance 2 printers?


So I have 2 printers. Each has its own ip address assigned to them. Windows prints to them. Great.

Then, user wants to put the 2 printers into AIX. No problem. I create 2 queues.

Now user wants to LOAD BALANCE the 2 printers. As in User1 prints a job, it comes out of printer A. Next, user2 prints a job and it comes out of printer B. Then, user3 prints and it comes out of printer A.

Every other OS since 1995 (except for possibly microsoft products) has had a way to do this. Even Netware has a way to do it and has had it since about 1995.

Googling this has resulted in 50 different developers who wrote code to do this trying to sell me their code. Appreciated, but not what I'm looking for.

Is there a way to do this with IBM supplied programs?
 
Old 01-07-2014, 01:22 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
man lpr:
Code:
       -P Printer
            Forces output to the Printer variable. If this flag is not specified, the following conditions occur:
              *    If a default exists, the lpr command uses the default printer.
              *    If the LPDEST environment variable is set, then lpr uses the value specified by the LPDEST variable. If set, this value is always used, even if the PRINTER variable is also set.
              *    If the PRINTER variable is set and no LPDEST variable is set, then lpr uses the value specified by the PRINTER environment
                   variable. Note: Any destination command line options override both the LPDEST and the PRINTER environment variables.
 
Old 01-13-2014, 05:13 PM   #3
AWSmith
LQ Newbie
 
Registered: Jun 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
man lpr:
How does LPR integrate with say the 'drivers' (think smit print, add printer, choose model, specify name of the queue, the ip, whether or not ascii or post script)?

Is there a way to set it up so that the job submitter (be it a user or daemon) doesn't have to specify the flag to get it to balance?
 
Old 01-13-2014, 05:31 PM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 6.5
Posts: 482

Rep: Reputation: 85
If they are assigned ip adresses, is it possible to use iptables to do a round robin like with web servers?
 
Old 01-16-2014, 11:42 AM   #5
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
this link has some helpful hax about printing to multiple printers:
http://aplawrence.com/Unixart/dual_print.html
 
Old 01-17-2014, 03:25 AM   #6
anhlavodoi
LQ Newbie
 
Registered: Jan 2014
Posts: 1

Rep: Reputation: Disabled
How do I load balance 2 printers?

Quote:
Originally Posted by schneidz View Post
this link has some helpful hax about printing to multiple printers:
I'm under stand !! I help ???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Load balance ust Linux - Software 2 07-31-2013 08:38 AM
Need Help with load balance on server. waypc Ubuntu 2 09-12-2012 10:15 AM
load balance with 2 cpu hosler Linux - General 1 10-13-2009 03:01 PM
Load Balance please Linux - Networking 4 10-28-2008 12:26 AM
CPU Load Balance - Who knows? davi_cabral Linux - General 3 01-02-2006 03:07 PM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration