Operating System - HP-UX
1821587 Members
3614 Online
109633 Solutions
New Discussion юеВ

How to change a Network Printer's name in HPUX 11.11

 
SOLVED
Go to solution
UnixT
Frequent Advisor

How to change a Network Printer's name in HPUX 11.11

I have a Network printer added in a HPUX 11.11 machine .. The Printers name & IP adress has been changed. Can anyone help me on how to change the Printer's name / IP adress in the Unix host side ..?
I tried through SAM .... but it doesn't provide me with any option for changing the printer name ...

The printer is not configured for BOOTP/TFTP in this Machine .. it just connects to it on network for printing ...

Thanks in advance ...
4 REPLIES 4
Tim Nelson
Honored Contributor
Solution

Re: How to change a Network Printer's name in HPUX 11.11

If you only need the relevant IP address to Hostname changed then edit /etc/passwd.

e.g.
before
remote_printer1 10.10.1.2

after
remote_printer1 10.10.2.55

Now..
If the IP address was used to configure the printer then you need to edit the printer interface file.

vi /etc/lp/interface/remote_printer1
(edit the line PERIPH=xx.xx.xx.xx )

All done :)


If you want while you are at it you can use a hostname instead of IP address to make things easier.
create entry like above in /etc/hosts
then edit printer interface file like above to use the hostname instead of IP.

Your choice.


Tim Nelson
Honored Contributor

Re: How to change a Network Printer's name in HPUX 11.11

BTW,

You have assigned points to 4 of 33 responses to your questions.

It would be great to assign people points to thank them for their time and assistance. It is easy, select a number from the pull down next to each response. Pick a number of relevance and then click submit.

You never know, it might even get you quicker or more responses to your questions in the future ;)


You can even find quicklinks to all your previous posts by simply clicking on your name.

Cheers ..
Dennis Handly
Acclaimed Contributor

Re: How to change a Network Printer's name in HPUX 11.11

>Tim: If you only need the relevant IP address to Hostname changed then edit /etc/passwd.

Did you mean /etc/hosts as you mentioned later?
UnixT
Frequent Advisor

Re: How to change a Network Printer's name in HPUX 11.11

was very useful