Sponsored Content
Operating Systems Linux Red Hat Print Spooling using raw port 9100 Post 302368694 by ZekesGarage on Thursday 5th of November 2009 10:52:04 AM
Old 11-05-2009
Print Spooling using raw port 9100

Hello all,
I need to setup a print server that listens on three separate network interfaces, and sends jobs to the corresponding print queue. Example:

192.168.69.100 - printer1 -> Out to 139.177.69.100:9100
192.168.69.101 - printer2 -> Out to 139.177.69.101:9100
192.168.69.102 - printer2 -> Out to 139.177.69 102:9100

Is there a way to have the printing system listen on a specific interface for a queue?

Also can I have the queue listen on port 9100 and just spool the raw data to be sent on to the printer?

The system I'm going to use is a RHEL5 system, but I can make it anything if I so desire.

The issue deals with a client application that can't be touched and currently prints directly to an HP jetdirect server. We are moving some infrastructure and due to some security directives, I'm required to build this intermediate box to spool the data, rather than just routing these jobs through the firewalls. (I've already fought the logic on this and lost, so don't get me started again :-))

Any insight is appreciated.

Shawn
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

HP-UX lp spooling places

Does anybody know if HP-UX uses any other directories besides /var/spool/lp/request to spool print jobs? I checked the man pages, and it only mentions /var/spool/lp in general. I was just wondering if anyone knew of some other place it might possibly use. thanks in advance for any help! (2 Replies)
Discussion started by: doeboy
2 Replies

2. UNIX for Dummies Questions & Answers

Any way to direct print job to a non-standard port?

Hello. I've been asked to add a few network print queues to our HP-UX box but they're not really destined for a printer. They're going to an Interface Engine queue (also Unix based I believe...) listening on ports in the 7000 range not the standard 9100, 9101, etc... printer ports. Couldn't find a... (0 Replies)
Discussion started by: HVHS_CJR
0 Replies

3. Shell Programming and Scripting

spooling

hi, can anyone help me with spool command.. i want to spool a file.. i am getting the output of an sql query into a file in the unix environment.. i want to spool the contents of this file to create a .lst file.. as of now, i am giving it like - sql.sql : spool on select... (4 Replies)
Discussion started by: kripssmart
4 Replies

4. Shell Programming and Scripting

spooling through shell script

Hi, I want to spool the output from a .sql file to a .txt file through shell script. the contents of .sql are: spool /arboru02/scripts/customer_profile_def.txt select profile_id ||','|| account_no from customer_profile_def; spool off exit and shell scrip is like: #!/bin/sh... (9 Replies)
Discussion started by: ss_ss
9 Replies

5. IP Networking

Creating a printer emulator to capture PDL/PCL data coming in on port 9100.

I have a number of Windows CE operator terminals. They have facility to print alarms/messages to ... aser or Inkjet (so they're using PCL). USB or IP. IP connection takes just the IP address. Question How could I create a service or daemon on a server to capture all this data?... (7 Replies)
Discussion started by: transistor
7 Replies

6. Shell Programming and Scripting

Spooling file to excel

Hi , Im spooling file from oracle to csv using shell script. Below is the code im using.. The o/p is not coming in right format.. Please help me out in this.. O/p is coming as header till batch id ,im not able to see date_stored,type,type1.. Please any one can give me some suggestion ... (1 Reply)
Discussion started by: jkumsi
1 Replies

7. Shell Programming and Scripting

Error during spooling

Hi, I am extracting the records of a table from oracle into a csv file using spool command in unix script. I retrieve the error message as msgcnt 18512 vxfs: mesg 001: vx_nospace - /dev/vg02/lvol12 file system full (1 block extent) How to resolve it ? (4 Replies)
Discussion started by: sabural
4 Replies

8. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
rlprrc(5)						       UNIX Reference Manual							 rlprrc(5)

NAME
rlprrc - remote printing resource file DESCRIPTION
The rlprrc configuration file is consulted by the remote printing commands (rlpr(1), rlpq(1), and rlprm(1)) to resolve a printqueue or a hostname. It can be used to either lookup a printqueue (printer) for a given host, or a host for a given printqueue. If both the printer and the printhost are known, this file is never consulted. Initially, the remote printing commands look for the file .rlprrc in the user's home directory. If that file cannot be found or does not provide the information necessary to resolve the query, then the system-wide /etc/rlprrc is consulted (if present). If resolution is still unsuccessful, the command fails. There is one entry per line - each line has the format: hostname: printer1 printer2 ... printerN Which indicates that host hostname has printers printer1 printer2 ... printerN available. In the case where the remote printing command knows the host to print to but does not know which printer to use on that host, the first one (printer1 here) will be used. In the case where the remote printing command knows the printqueue (printer) to print to but does not know what host has that queue, the last host which has the specified printqueue is used. If this behavior is not acceptable, you can force a certain host to always be used for a certain printqueue by putting a ! after the printqueue name. For example, an .rlprrc file containing: foo.baz.org: litho laserjet4! foo.bar.org: laserjet4 lineprinter will always resolve the printqueue laserjet4 to foo.baz.org no matter what other hosts have a printqueue named laserjet4. The rlprrc file is only consulted in situations where a printqueue or hostname needs to be resolved. It is provided only for convenience and is not required. SEE ALSO
rlpr(1), rlpq(1), rlprm(1), rlprd(8) AUTHOR
meem <meem@gnu.org> rlpr 2.04 1999/10/28 rlprrc(5)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy