LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-09-2011, 11:07 AM   #1
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Rep: Reputation: Disabled
Remote Printing


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.

How do I accomplish this in Red Hat?
TIA,
Brad
 
Old 11-09-2011, 11:54 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,685

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Remote printing

Using cups.
IT is not only a server, it is it's own best client!
 
Old 11-09-2011, 12:11 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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.
 
Old 11-09-2011, 04:06 PM   #4
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
Question Connection Times Out

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
 
Old 11-09-2011, 04:39 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
If running a firewall make sure it allows TCP traffic port 631
 
Old 11-09-2011, 05:16 PM   #6
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
In addition to the firewall allowing port 631, go to http://127.0.0.1:631/admin make sure these 3 are checked

Show printers shared by other systems
Share printers connected to this system
Allow printing from the Internet

(do this on the box that the printer is attached to)

Last edited by inoculos; 11-09-2011 at 05:17 PM.
 
Old 11-10-2011, 09:29 AM   #7
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
Angry Still

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
 
Old 11-10-2011, 01:35 PM   #8
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
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
 
Old 11-10-2011, 02:02 PM   #9
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-10-2011, 03:17 PM   #10
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
that warning is default, dont worry about it.
 
Old 11-10-2011, 03:20 PM   #11
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
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.
 
Old 11-10-2011, 03:32 PM   #12
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-10-2011, 03:49 PM   #13
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
does the app server actually see the printer? Does it give the correct info about location and printer name when you add a printer to client?
 
Old 11-10-2011, 03:55 PM   #14
BradMarks
LQ Newbie
 
Registered: Jul 2011
Location: Los Angeles, CA
Distribution: rhel6
Posts: 26

Original Poster
Rep: Reputation: Disabled
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!
 
Old 11-10-2011, 03:59 PM   #15
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
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.
Code:
sudo /etc/init.d/iptables restart
Also do that for ip6tables if you use ip v6
 
  


Reply



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
remote printing Ben Cobb Slackware 3 07-20-2008 07:42 PM
remote printing lucky123 Linux - Networking 0 06-04-2005 10:35 AM
Remote printing between 2 computers Johan.Fourie Linux - Networking 1 03-23-2004 03:26 AM
remote printing jeru Linux - Networking 6 03-13-2003 08:50 AM
Remote Printing samgwiz Linux - Networking 1 05-31-2001 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration