LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-20-2013, 04:05 PM   #1
DonaS
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
CUPS...receiving text data files from mainframe on port 515


I have CUPS loaded on my test lab server. Trying to allow text only prints fro mainframe via port 515. The printer definition on the Linux server will be a virtual printer. I have added the printer definition and my interface script with just a few variables like job name, file name, etc. I have updated cupsd.conf showing allow from only the mainframe ip. Listen to port 515. And default encryption never. However, in the error log, I keep getting unable to encrypt connection to (mainframe ip). Is there anything else I need to do to "not encrypt" the connection from the mainframe to the Linux server running cups ? Any help is greatly appreciated!

Last edited by DonaS; 11-20-2013 at 04:08 PM. Reason: Typo
 
Old 11-21-2013, 10:30 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
I would try using cups-lpd daemon. The cups protocol is not the same as lpr and I would not expect printing to work by just changing port numbers.

http://www.cups.org/documentation.ph...-cups-lpd.html
 
1 members found this post helpful.
Old 11-21-2013, 11:20 AM   #3
DonaS
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
cups-lpd

i already had a cups-lpd file under /etc/xinetd.d ; so copied it to cups.
# cat cups
service printer
port = 515
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
passenv =
group = sys
server_args = -o /document-format=application/octet-stream

i then did

# /etc/rc.d/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
#

what is my next step ?
 
Old 11-22-2013, 09:03 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The firewall if running should allow incoming traffic on port 515 and I assume that you already have a printer configured on linux machine. So I assume that to print from the mainframe is:

lpd://server/printer
 
Old 11-22-2013, 11:43 AM   #5
DonaS
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes, port 515 is open on mainframe, which adheres to rfc1179. Keep in mind, I need to emulate same lp process on the Linux server as currently on our sun and hp unix servers. I have a printer iD defined on the Linux server with a very basic interface script attached. There is no real printer. I want the data received to be saved as a flat text file on the server. In hp unix, I would have defined the printer as : lpadmin -p (printer ID) -v/dev/null -m(custom script name). Will lpd work same on Linux as lp/lpr on hp unix?
 
Old 11-22-2013, 02:09 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
In a similar fashion.
lpadmin -p test -E -v file:/dev/null

You might have to set DeviceFile yes in the cupsd.conf file.

Your custom script would be a custom backend filter. There might be other ways to accomplish the same thing.
 
  


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
CUPS unknown host - can ping and telnet to port 515 ok jemcfee Linux - Server 1 07-30-2008 05:53 AM
Sending and receiving data to through Serial Port kalyan.penujeevi Programming 1 08-07-2006 07:55 AM
Cups defaults to on during boot / lpd can't bind port 515 ehdwuld Linux - Software 2 09-29-2003 07:39 PM
trouble receiving serial port data mtPete Linux - General 1 08-20-2003 04:27 PM
port 515 illtbagu Linux - General 19 06-21-2003 02:21 PM

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

All times are GMT -5. The time now is 04:49 AM.

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