LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (http://www.linuxquestions.org/questions/aix-43/)
-   -   How do I load balance 2 printers? (http://www.linuxquestions.org/questions/aix-43/how-do-i-load-balance-2-printers-4175490449/)

AWSmith 01-07-2014 01:11 PM

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?

schneidz 01-07-2014 01:22 PM

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.


AWSmith 01-13-2014 05:13 PM

Quote:

Originally Posted by schneidz (Post 5093674)
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?

ericson007 01-13-2014 05:31 PM

If they are assigned ip adresses, is it possible to use iptables to do a round robin like with web servers?

schneidz 01-16-2014 11:42 AM

this link has some helpful hax about printing to multiple printers:
http://aplawrence.com/Unixart/dual_print.html

anhlavodoi 01-17-2014 03:25 AM

How do I load balance 2 printers?
 
Quote:

Originally Posted by schneidz (Post 5099263)
this link has some helpful hax about printing to multiple printers:

I'm under stand !! I help ???


All times are GMT -5. The time now is 04:17 PM.