1827800 Members
2309 Online
109969 Solutions
New Discussion

Print queues

 
SOLVED
Go to solution
Olga_1
Regular Advisor

Print queues

If printer's IP address changed, do I have to re-create the print queue?

Thank you.
6 REPLIES 6
Sachin Patel
Honored Contributor

Re: Print queues

YES
Is photography a hobby or another way to spend $
Stefan Farrelly
Honored Contributor

Re: Print queues


To be safe, Yes. Its easy to do, easier than hunting around trying to change the IP manually (finding the right file and editing it) - but you can do it manually if you really have to.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sanjay_6
Honored Contributor
Solution

Re: Print queues

Hi,

Edit the file /etc/lp/interface/name_of_the_printer and edit this entry,

PERIPH=a.b.c.d

a.b.c.d -> old ip address of the printer

change this to,

PERIPH=a1.b1.c1.d1

a1.b1.c1.d1 -> new ip address of this printer.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: Print queues

As suggested the best way is to re-configure the printer. But if you want you can edit the file /etc/lp/interface/queuename and change the ip address from that. Check the network connectivity, restart scheduler if needed.
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: Print queues

Hi Olga


/etc/lp/* has the files associated wiht the requestss , incase you are changign the printer name then you need to ercreate the queue , the /etc/lp/interface/printer_name has the IP adress if the printer was created using the IP adress . /usr/spool/lp/request is the directory where in the subdirectory wiotht he printer name is created . Also there are links to tempory files like /usr/spool/lp/FIFO and SCDLCK . So the better option is to recreate the queue .


Manoj Srivastava

Bill Hassell
Honored Contributor

Re: Print queues

As mentioned, editing the printer script will effectively change the IP address by changing the PERIPH= line. However, if you're not comfortable with editing these scripts, just use the removequeue and addqueue commands like this:

cd /opt/hpnp/bin (or /opt/hpnpl/bin, whichever is present)

./removequeue -q printer1
./removequeue -q printer2

then

cd /opt/hpnp/bin (or /opt/hpnpl/bin, whichever is present

./addqueue -h IP-of-printer1 -q printer1
./addqueue -h IP-of-printer2 -q printer2

and so on...


Bill Hassell, sysadmin