1833780 Members
2199 Online
110063 Solutions
New Discussion

printer ip change

 
SOLVED
Go to solution
joe_91
Super Advisor

printer ip change

there is a request to change the ip/hostname of a printer. when i try hppi it says the printer has jobs and not allowing. we have permissions to kill the jobs. how shd i do this ?

Thanks

Joe
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: printer ip change

We don't need no stinkin hppi.

I would do this:
0) Update /etc/hosts, DNS, NIS(+) -- whatever you are using for hostname resolution and create the new hostname/IP address tuple.
1) disable myprinter
2) ps -ef | grep hpnpf and see if any job is trying to be printed on myprinter; if so, kill the hpnpf process --- just the one associated with my printer
3) cd /var/spool/lp/interface
vi myprinter
There will be a line:
PERIPH=oldprinter
change it to:
PERIPH=newprinter
and save the file.
4) enable myprinter

If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: printer ip change

Clay:

I followed the instructions. but i need to change my printer name from va9hp21 to va10hp21. the printer name is still va9hp21

Thanks

Joe
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: printer ip change

That was not your request. You said you wanted to change the ip/hostname of the printer. You now want to change the queue name although you should note that the name of the queue and the hostname have nothing to do with each other.

In any event, you will need to remove the existing print queue and add it back using hppi or from the command line using removequeue/addqueue.

I'll assume that you want to use hppi so your first task is to cancel any outstanding jobs.
1) disable myprinter
2) lpstat -omyprinter and note the requestid's
3) use the cancel command to cancel each requestid.
4) You can now remove and add the printer using hppi.
If it ain't broke, I can fix that.