Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. Red Hat newbie here. We're running Red Hat Enterprise Linux Server release 6.1 (Santiago).
In HP-UX there is the rlp command which allows for the submission of print jobs to its lp(cups) spooler from remote servers.
We are setting up a 5-box system with two database servers (H/A cluster) and three application servers. I want to submit print jobs from any of the App servers to the active DB server. This will make administration of CUPS easier and prevent contention when two App servers want to print on the same printer at the same time.
Basically you configure cups on the DB server for sharing. The shared printer can then be selected when you add a printer via cups on the other computers. With cups you can also setup classes where jobs are forwarded to the first available printer.
Thanks for the help. I've done some digging and modified the client.conf to contain the IP of the server running cups. At first I was using the name (e.g. dbs.fotokem.local) and consistantly got 'Connection Refused' errors. I then changed the entry to use the IP address instead of the server's name and the 'Connection Refused' error went away, but now a 'Connection timed out' error occurs. These two servers are already talking with one another, so I don't quite understand what could be causing this.
Any help will be greatly appreciated.
-Brad
I found that I had put an incorrect IP address in client.conf.
With the correct IP I'm back to the 'Connection refused' error.
I've checked with our network admin and there are no firewalls between these two servers.
I have also tweaked the CUPS settings as suggested yesterday by inoculos.
I have this question posted with my hardware / OS vendor but, frankly, thought I'd have more luck here.
Thanks for all the help,
Brad
You still have to open the port on the computer with the printer, In fedora its something like applications>admin>firewall. Enable all port 631 services
Dang! So close, yet so far away.
I found the firewall settings and when I'm about to save, I'm warned about how I might be overriding (and losing) any previously made manual firewall settings.
How do I verify that no manual firewall settings have been made?
Thanks very much for your help. I think I'm only inches away from a solution!
-Brad
your also gonna need the correct driver for that model of printer on the machine than has the printer, but worry about that after you get the connection open.
I've got the printer defined on the DB server already and I'm able to print to it (I got the driver from Brother's website - it's a Brother HL-5370DW if that makes any difference).
Okay; so I checked "Network Printing Server (IPP)", and clicked Apply. When I try an "lpstat" from the App server, I still get the "Connection refused" error. I checked "Network Printing Client", too. Do I need to restart a daemon on either server, or something?
So close I can smell it!
-Brad
I'm not adding a printer to the client (app server). I only added a printer to the server (DB server).
On the DB server:
[root@db1 /]# lpstat -ta
scheduler is running
no system default destination
device for bam: socket://139.64.101.21
bam accepting requests since Fri 02 Sep 2011 10:21:13 AM PDT
printer bam is idle. enabled since Fri 02 Sep 2011 10:21:13 AM PDT
[root@db1 /]#
On the App server:
[root@app1 cfg]# lpstat -ta
scheduler is not running
no system default destination
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
[root@app1 cfg]#
Oh no, does this mean that I have to add all 121 printers to all of the App servers? I thought CUPS would allow me do have the printers on my DB server and be able to submit jobs to them from my App servers. No? If not, then what's the point of client/server?
What am I missing here? Apparently something pretty big!
Two silly questions for you. Did you open the ports on the "client" machines as well? Also, if you haven't already restarted the iptables service(s) via the gui, the command is quick and easy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.