Operating System - HP-UX
1851433 Members
4864 Online
104058 Solutions
New Discussion

Re: printer changing ip address

 
SOLVED
Go to solution
Unix Administrator_5
Frequent Advisor

printer changing ip address

We use hppi to install and remove printer drivers for jetdirect printers.

We need to change the ip of an existing jetdirect printer.

In the past, I have always deleted the printer with jetadmin/hppi then re-added it after the ip changed. (DNS name remains unchanged).

Is this necessary. Can we just change the ip address in DNS without having to do anything with the drivers?

We are running hpux 11.00
5 REPLIES 5
Jeff Schussele
Honored Contributor
Solution

Re: printer changing ip address

Hi,

It all depends on just how you defined it to HPPI.

IF you defined it using it's hostname AND you change the DNS entry for it - then NO, you shouldn't have to remove it & re-add it.

IF you defined it to HPPI using the IP then - YES, you'll have to remove it & re-add it to HPPI.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: printer changing ip address

That should be all that is necessary (assuming DNS is used for hostname resolution). The interface scripts reference the printers via hostname rather than IP address unless someone has specifically modified/improved the interface files.
If it ain't broke, I can fix that.
fg_1
Trusted Contributor

Re: printer changing ip address

We use DNS aliases for all of our printer names and anytime a printer moves it's IP has to change, all we do is change the alias to point to that new IP address in the DNS setup.

If you change the alias as well then you have to delete it and recreate the printer in hppi.

Gl

Frank G.
Bill Hassell
Honored Contributor

Re: printer changing ip address

When you create a printer in hppi (or the old jetadmin), the hostname of IP address you use is stored inside the printer's script located in /var/spool/lp/interface/

If you used the hostname when adding the printer, then JetDirect software will follow HP-UX rules to find the printer (hint: nslookup printer_name). If you used the IP address then that lookup is bypassed and you'll have too edit the file or delete and add again. Big hint: loook at addqueue and removequeue to save a lot of time.


Bill Hassell, sysadmin
Scott McCort
Advisor

Re: printer changing ip address

Recently have done this. Follow Bill Hassel's advice. vi the /var/spool/lp/interface/. There is a line PERIPH=x.x.x.x
I would recommend adding an entry in /etc/hosts and set PERIPH= to that name. It will make future changes easier.