Operating System - HP-UX
1753511 Members
5317 Online
108795 Solutions
New Discussion юеВ

Re: Reconfiguring printer on HP-UX machine

 
SOLVED
Go to solution
Subentu
Frequent Advisor

Reconfiguring printer on HP-UX machine

I have a machine running HP-UX, and there is a remote printer connected to the system, which is on a remote system called "wtm-bill-printer"

Recently we changed the ip's of both the printer and the remote machine. Now I have to reconfigure the printer on my system.

I edited the /etc/hosts file and change the ip of the wtm-bill-printer entry there.

But the printer is still not working

Can you guys please help.

Thanks and Regards
9 REPLIES 9
Suraj K Sankari
Honored Contributor

Re: Reconfiguring printer on HP-UX machine

Hi,

after edit in /etc/hosts
go to sam printers delete old printer or edit old printer change old ip with new ip
or
configure from sam
Printers and Plotters
->LP Spooler
--->Printers and Plotters
----->Add Network-Based Printer/Plotter

Suraj
Ganesan R
Honored Contributor
Solution

Re: Reconfiguring printer on HP-UX machine

Hi Subentu,

Modification of /etc/hosts file is not sufficient. This is just only for naming resolution.

You already configured the printer to refer to old ip address. You donot have option to change ip address of the remote printer.

Just add a new remote printer with new ip address and remove the old printer.
Best wishes,

Ganesh.
Sagar Sirdesai
Trusted Contributor

Re: Reconfiguring printer on HP-UX machine

Hi
Do you have the HP JetAdmin Package installed on your server.
hppi command to add , modify print spoolers

Sagar
Subentu
Frequent Advisor

Re: Reconfiguring printer on HP-UX machine

This is not a network printer; it's a remote printer.


Ganeshan, (or anybody)

Can you please give me the details of how to add a remote printer with the new ip address?

Thank you
Sagar Sirdesai
Trusted Contributor

Re: Reconfiguring printer on HP-UX machine

Hi,

Use the lpadmin command

lpadmin -p -or
-orp -v /dev/null

Sagar
Subentu
Frequent Advisor

Re: Reconfiguring printer on HP-UX machine

lpadmin -p -or
-orp -v /dev/null




can I give the new ipaddress here?

Thanks
Ganesan R
Honored Contributor

Re: Reconfiguring printer on HP-UX machine

Hi,

I would suggest you to do it through SAM which is more convenient than command line for printer administration.

Goto SAM --> Printer and plotters --> LP Spooler --> Printer and plotters --> Goto Actions add new remote printer.

here you need to specify the printer name and remote printer ip etc..

If you still want to do it command, this is the command.

# lpadmin -p$printer -orm -orp$printer -mrmodel -v/dev/null -ocmrcmodel ├в osmrsmodel
Best wishes,

Ganesh.
Dennis Handly
Acclaimed Contributor

Re: Reconfiguring printer on HP-UX machine

> can I give the new IP address here?

Any reason you don't just use the name of the machine or FQDN?
Subentu
Frequent Advisor

Re: Reconfiguring printer on HP-UX machine

Thanks guys it worked