SUMMARY: jetadmin and changing ip printer's

From: Gerard Henry (ghenry@cmi.univ-mrs.fr)
Date: Mon Jan 12 2004 - 03:17:32 EST


sorry for this late summary, i need to do some tests and i finish to find the matter:
IP adress was into my local DNS, and i forgot to change it, so even Ip adress is not hard coded into /etc/lp/interfaces/printerName, my print requests continued to try to access old IP and not the new one.

Thanks to all people, here is their helps:
joe_fletcher:
------------

Take a look in /etc/lp/printers/QUEUENAME/configuration

If you add the printers without using webjetadmin (works for jetdirects
anyway) you end
up with a line in the file like
                                                                                
Options: dest=10.xx.xx.189:9100,protocol=tcp,timeout=5
                                                                                
                                                                                
which you can then edit or modify using the lpadmin utility.

Thomas Stoffa:
-------------
In /etc/lp/interfaces/<queue name> there is a reference to
                                                                                
PERIPH=###.###.###.### (IP of printer)
                                                                                
Whereas I never really tried this (I've also deleted and recreated the queue),
+it would be interesting to see if changing that entry and re-enabling the queue
+would work.

Cain, Allen:
-----------
We have had the same issues. We change the IP address / hostname by
modifying the PERIPH= line in the /etc/lp/interfaces file for the
printer. For instance, for a printer called test with an IP address of
10.10.0.2, edit /etc/lp/interfaces/test, search for the
"PERIPH=10.10.0.2" and change the address there. After you are
finished, save the file, then run 'disable test' and 'enable test' at
the command line, and that should solve your problem.
                                                                                
If I'm not mistaken, some of the newer versions of hppi have the option
to change the network device, but I'm not 100% sure.

Jaehne, Richard S:
-----------------
I'ts been a long time since I had to do this, but I know jetadmin has a move
queue functionality. I would look fot that in the documentation.

Jason.Shatzkamer:
----------------
All I do when I change a printer's IP is issue:
                                                                                
/usr/ucb/lpc restart prntXX
                                                                                
Sometimes, in rare circumstances, I have to cancel to first job in the
queue....
                                                                                
At this point, the printer should have already resumed printing...

Stan Pietkiewicz :
----------------
Have a look at /etc/lp/interfaces/queue-name and look for a line
"PERIPH=aaa.bbb.ccc.ddd". You should be able to change this to match the new
IP address of the printer.
                                                                                
One other possibility is to change the IP address in the PERIPH= line to a
printer name, and have the name resolved, either local in /etc/hosts, or via
whichever naming service you use.

Eugene Schmidt:
--------------
Quite a while since I did this:
                                                                                
cd /etc/lp/interfaces.
                                                                                
grep <IP> * */*
                                                                                
Edit results
                                                                                
cd /etc/lp
grep <IP> Systems (edit if required)
                                                                                
grep <IP> /etc/hosts (edit if required)
                                                                                
/usr/lib/lpshut
                                                                                
ps -ef|grep hpnpf (?? ) kill if any
                                                                                
/usr/lib/lpsched
                                                                                
Should work

Zaigui Wang:
-----------
It is in /etc/lp/interfaces/printerName file.
IPaddress/Hostname of the printer is hardcoded in that
file. Just modify the file and,possibly, restart the
lpsched.

On Fri, Jan 09, 2004 at 02:35:39PM +0100, Gerard Henry wrote:
> hello all,
> we use hp jetadmin E.0.18
> When we change ip adress of a printer, we can't print on this printer until we remove and re-create queue.
> i think there should be another possibility, i try to restart lpd without result.
> I thought hppi was just an interface to lpadmin, anybody knows where i can change IP without removing queue?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:48 EDT