Operating System - HP-UX
1835667 Members
2775 Online
110082 Solutions
New Discussion

Re: change network printer IP

 
Sunny Jaisinghani
Trusted Contributor

change network printer IP

Hello All,

I would like to know if we can change the IP address of a network printer without deleting the printer.

If yes how to do it?

one probable way that i found is to edit the file corresponding to the printer name in /etc/lp/interface/

I assigned the IP to "PERIPH" in the above file.

Is there any other way to do the above config change...?

Regards
3 REPLIES 3
Amit Parui
Valued Contributor

Re: change network printer IP

Hi Sunny,

I suppose you've got an entry in the /etc/hosts file for the printer, if yes, change it and hopefully it will work..

Else the only and best option is to delete the printer and create it -

/opt/hpnpl/bin/addqueue -h -q -i

Regards
AP
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
Sunny Jaisinghani
Trusted Contributor

Re: change network printer IP

Hi Amit,

there is no entry in /etc/hosts.

Aneesh Mohan
Honored Contributor

Re: change network printer IP

Hi Sunny,

You can do the below steps for changing the ip of network printer (jetdirect)

#vi /etc/lp/interface/queue name --- change "PERIPH= ipaddress"

Example:

root@hp:/etc/lp/interface# pwd;grep "^PERIPH" zcs
/etc/lp/interface
PERIPH=10.10.10.171
root@hp:/etc/lp/interface#


otherwise,you can use menu based utility.

#/opt/hpnpl/admin/hppi

select option 1

select option 3

type the queue name

select 3 and change the ip address

selcet 0 to save the changes


Thanks,
Aneesh