Operating System - HP-UX
1823127 Members
3215 Online
109646 Solutions
New Discussion юеВ

Re: Printing to a TCP port 2501 Instead of 9100

 
Bhaskar Luitel
Advisor

Printing to a TCP port 2501 Instead of 9100

Hi all,

I am trying to print to a netq/emulex print server which has a listener at TCP port 2501 instead of standard 9100 (for Jetdirect).

I have tried setting the xPORT parameter in /etc/lp/interface/printer_name file. When I set this parameter , I can see the data and control files created and leaving the 'request' directory , but do not see any outgoing TCP_SOCKET being estalished.

I have also tried setting this xPORT=9100 parameter to 9100 for a Jetdirect printer , which also behaved in the above manner.

May be it was not the right way to use it...

Any suggestions ... anyone ran into this type of situations before ?

Any pointer would be appreciated ...


Thanks in advance ..
Bhaskar
6 REPLIES 6
Laurent Paumier
Trusted Contributor

Re: Printing to a TCP port 2501 Instead of 9100

Try setting xPORT to "-p 2501", the interface script is passing it as is to the hpnpf command line.
A. Clay Stephenson
Acclaimed Contributor

Re: Printing to a TCP port 2501 Instead of 9100

Hi,

Rather than trying to use JetDirect software (hpnpf), I would download and compile the NetQueue utilities from:
http://www.emulex.com/ts/ps/netque.html


Regards, Clay
If it ain't broke, I can fix that.
Bhaskar Luitel
Advisor

Re: Printing to a TCP port 2501 Instead of 9100

Thanks Laurent , after specifying xPORT="-p 2051" , it now opens the tcp socket but keeps resending the first few bytes of the text ( probably TCP/FLOW CNTL). I also played arnd with "TEOJ" and "DEVTYPE" options , but to no avail ...



Thanks CLay , The Emulex web-site unfortunately did not have anything precompiled for HP-UX.


Quest goes on ....
Jordan Bean
Honored Contributor

Re: Printing to a TCP port 2501 Instead of 9100

We currently use both JetDirect and Emulex and have standardized all HPUX queues as remote printers (ie rlp) since both understand LPD natively. Since the rmodel interface script does not offer any basic PCL control, we use the attached script to pass the files through the PCL5 model before handing them over to rlp.
Steve Post
Trusted Contributor

Re: Printing to a TCP port 2501 Instead of 9100

Two guesses for you.

#1 You got the PERIPH right. But what about the other end?
I know I used to have a jetdirect box, and port 9000 was port 0, 9001 was port 1, and 9002 was port 2. Maybe it's hard wired? Maybe you can telnet into it, and change the port the jetdirect card (or box) uses?

#2. IF you are using a jetdirect box, turn the printer on, on-line, and have it plugged into port 0, BEFORE you turn on the jetdirect box. If you don't, everything will look fine. But it will never print.
Bhaskar Luitel
Advisor

Re: Printing to a TCP port 2501 Instead of 9100

Thank you all for your responses. The solution exists in http://www.emulex.com/ts/ps/netque.html ( although it has not mentioned abt HP-UX )

The install script "enstall" actually walks one thru all the steps including the compile.

I have copied the binaries to other server and it works there too. From the lp-interface file it calls the binary called 'rprint'.

Thanks again.