Operating System - HP-UX
1756502 Members
2530 Online
108848 Solutions
New Discussion юеВ

Regarding installing a remote printer on a HP-UX server

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Regarding installing a remote printer on a HP-UX server

Hello folks !

Can anyone please help me in installing a remote printer named tsx1 on a HP-UX server by giving me the whole procedure and what commands to be used.

Thanks a lot for your help !
17 REPLIES 17
Ramesh S
Esteemed Contributor

Re: Regarding installing a remote printer on a HP-UX server

Hi

Try this,

1)Make sure that the printer connected to remote system is pingable.

2)rlpdaemon must be running on both systems.To start rlpdaemon,invoke the command:

#/usr/sbin/rlpdaemon

To start rlpdaemon from inetd, the following line should be included in the file /etc/inetd.conf:

printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i

3)When you configure your printer into the LP spooler, you must identify the printer interface script to be used. The /usr/lib/lp/model directory lists printer interface scripts from which to choose. If you do not find the exact model, you could use "dumb".

3)sam ->
Printers and Plotters ->
LP Spooler ->
Printers and Plotters ->
(Actions Menu)
Add Remote Printer/Plotter ->
< printername > ->
Remote System Name ->
Remote Printer Name ->


Best Regards,
Ramesh
Kavita Poonia
Regular Advisor

Re: Regarding installing a remote printer on a HP-UX server

Hi Ramesh,

Thanks a lot for your reply. Is it necessary to use SAM, can't this be done by issuing UNIX commands.


Again thanking you.

Ramesh S
Esteemed Contributor

Re: Regarding installing a remote printer on a HP-UX server

Hi

You can use "lpadmin" command also. But, not sure about the syntax.

I used to configure printer thru SAM.

Best Regards,
Ramesh
Safarali
Valued Contributor

Re: Regarding installing a remote printer on a HP-UX server

Kavita

adding remote printer via sam is easy

from printer menu add remote printer put your ip there and and give any printer name if you have any doubt please inform me
you can also add the printer on command line
I can send command line

Regards
Safar
Yogeeraj_1
Honored Contributor
Solution

Re: Regarding installing a remote printer on a HP-UX server

hi Kavita,

If you want to do it using the command line, you would proceed as follows:

1. Setup Name/address resolution for the queue.
e.g. edit /etc/hosts and add IP address of host which will be accepting print requests and which will have the configured printer queue.

192.168.122.8 YDHOST


2. Login as root on the hp-ux server.

3. Stop the lp spooler:
# /usr/sbin/lpshut

SRV2:>/usr/sbin/lpshut
scheduler stopped
SRV2:>


4. Add the printer:
# /usr/sbin/lpadmin -pYDPRN -v/dev/null -mrmodel -ob3 -ocmrcmodel -osmrsmodel -orc -ormYDHOST -orpYDPRN
-pYDPRN YDPRN is the name of the printer as you want to call it on your system.
-ormYDHOST YDHOST is the name of the host (printer) as it appears in your name/address resolution
-orpYDPRN YDPRN is the queue name to the RIP.

5. Accept and enable the new printer:
# /usr/sbin/accept YDPRN
# /usr/bin/enable YDPRN

6. Restart the spooler:
# /usr/sbin/lpsched


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: Regarding installing a remote printer on a HP-UX server

hi again,

to test it your would of course do the following:

7. now test your setup
e.g.
# lp -dYDPRN /home/yogeeraj/.profile


hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Kavita Poonia
Regular Advisor

Re: Regarding installing a remote printer on a HP-UX server

Thanks Ramesh.

Thanks to Safarali too Can you please send some document or command line about which you are talking so that I can have more clear idea about adding printers.

Thanks Yogeeraj for you reply. It was really very helpful. I think this is what I wanted but I have some queries.
Kavita Poonia
Regular Advisor

Re: Regarding installing a remote printer on a HP-UX server

I just wanted to know what entry should I make in /etc/hosts. I mean I have given a task to install printer on HP-UX server named ncsqas02.na.jnj.com but they have mentioned a host name in lpadmin command too which is jnjthbafps01.ap.jnj.com as per the below command line

/usr/sbin/lpadmin -ptsx1 -ormjnjthbafps01.ap.jnj.com -orpauto -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel

What the hostname jnjthbafps01.ap.jnj.com is for ? Is this my printer's hostname as per Yogeeraj's description in one of his reply which is different from hostname on which I have to install printer.

Once again thank you all for your help.
James R. Ferguson
Acclaimed Contributor

Re: Regarding installing a remote printer on a HP-UX server

Hi Kavita:

> What the hostname jnjthbafps01.ap.jnj.com is for ? Is this my printer's hostname as per Yogeeraj's description in one of his reply which is different from hostname on which I have to install printer.

There are three main components to define for remote printers. The first is the *hostname* of the device on the network that will receive the output of your server. This can be another server, a printer with an inbuilt NIC (LAN) or a "netport" card which connects to a physical printer.