Operating System - HP-UX
1834609 Members
3139 Online
110069 Solutions
New Discussion

Printing Via Specific Port no

 
susee
Advisor

Printing Via Specific Port no

Hi All

We Have a requirement to print a remote printer ( Cannon Image runner c3100 ) via specific port no 9100

We have the existing printers printing on the port 515 .
cat /etc/services |grep -i print
printer 515/tcp spooler # remote print spooling

adding a new entry in services will affect the other print services , and is there any option that i can specify thru lpadmin command

and right now i planned to use

/opt/hpnpl/bin/addqueue -i 9998 -q TEST -h TEST-jet-laser -b off -p 9100

Will this sort my issue

regards
susee
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Printing Via Specific Port no

Port 515 is used for printers which use the LPR/LPD protocol; in HP-UX speak they are referred to as "Remote" printers. Printers which use ports 9100 (and sometime 9101,9192, & 9103) use HP's JetDirect protocol and are referred to as "Network" printers in HP-UX speak. You add these interactively using the hppi command or via command line using the addqueue command. By default, port 9100 is used. If your documentation specfically states that the JetDirect protocol is supported then you can add the non-HP printer as a Network printer. Otherwise, if you still want to add it as a Network printer, you can use the printer's parallel or serial port to connect to an external JetDirect.
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: Printing Via Specific Port no

Hi Susee ,

Port 515 is used by LPR/LPD .

And for adding remote printers with Jetadmin , that uses port 9100 , by default unless you specifies a different one. And this doens not need entry in /etc/services.

So if you use HP Jetadmin utility to add printer it will be using 9100 port.

Check the -p option , in addqueue for specifying port number.
[ check /opt/hpnp/bin/addqueue ] [for details # man addqueue. ]


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Printing Via Specific Port no

Even for Cannon Image runner c3100 , lj4 model script will work good.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
susee
Advisor

Re: Printing Via Specific Port no

Thanks Rajib Dutta ,

it worked
addqueue -i 9998 -q TEST -h TEST-jet-laser -b off

without sepcifying the port no
susee
Advisor

Re: Printing Via Specific Port no

thanks to all
Raj D.
Honored Contributor

Re: Printing Via Specific Port no

Susee ,

I suggest you go through this two links to know the itrc Etiquette and making your forum response better :


1. http://66.34.90.71/ITRCForumEtiquette/

&

2. http://forums1.itrc.hp.com/services/forums/questionanswer.do?threadId=140137


And assign points when a problem resolves.


Here is your profile detail:
----------------------------------------
"I have assigned points to 2 of 75 responses of my questions "
----------------------------------------

Try to make it 75 of 75.


hth,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "