System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX Printer IP Address Change

NIGEL WHITE_2
Frequent Advisor

HP-UX Printer IP Address Change

Hello,

Just been advised one of my Network Printers needs to move to another floor in the building. Its moving to a floor point on the same same subnet, so I guess it's just a case of changing the address in SAM and Stop/Start the scheduler???

Or are there other thing to do before the Printer knows the new IP?

This is what I plan to do:

#lpshut
SAM
Change Printer IP Address
EXIT SAM
#lpshed

Go to lunch.

Can someone please advise.

Regards
Nigel
11 REPLIES
Steven E. Protter
Exalted Contributor

Re: HP-UX Printer IP Address Change

Shalom,

No, I think you have a good plan.

Just make sure any routers or switches between the server and the printer don't block the ports you need to print.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
NIGEL WHITE_2
Frequent Advisor

Re: HP-UX Printer IP Address Change

Thanks.

Are there any options with lpshut I need to use?

R.
Nigel
NIGEL WHITE_2
Frequent Advisor

Re: HP-UX Printer IP Address Change

Hi,

If I need to change the IP address of a Physical Printer, where do I make the change? Just looked in SAM and there's no options for the printer IP address. Do I just make the change in /etc/hosts??? Thats the only place I can see the IP address for my printer.

BTW, I've never setup a printer in HP-UX, so I could be looking in the wrong place.

HELP.

R.
Nigel
Aneesh Mohan
Honored Contributor

Re: HP-UX Printer IP Address Change

Hi Nigel,

I hope JetDirect has there in your box ,please do the below steps for changing the IP address of the existing network printer.


/opt/hpnpl/admin/hppi

Select option 1

Select Option 3

select Option 3---Change IP address

Select 0 --to save



Thanks ,
Aneesh
NIGEL WHITE_2
Frequent Advisor

Re: HP-UX Printer IP Address Change

Well you learn somrthing new every day with HP-UX.

Is this a printer tool? I thought SAM was the one and only?

Never setup a printer in HPUX. Do I have to stop the scheduler before I run this ?

R.
Nigel
Aneesh Mohan
Honored Contributor

Re: HP-UX Printer IP Address Change

Hi Nigel ,

I use to do directly without lpshut .:) ..but better if you can use lpshut before this and lpsched after the changes.

/Aneesh
NIGEL WHITE_2
Frequent Advisor

Re: HP-UX Printer IP Address Change

Thanks dude, I think the move has taken place as I have just received an email saying "Paper JAM" for the printer.

Better make that change.

Thanks again.

Regards
Nigel
NIGEL WHITE_2
Frequent Advisor

Re: HP-UX Printer IP Address Change

Hi,

I see the Printer when I choose option3 - but no further options to change IP address???

Here's my output:

I N V E N T
****************************************************************

1) Spooler Administration (super-user only)


2) JetDirect Configuration (super-user only)
- TCP/IP configurable parameters

3) Diagnostics:
- diagnose printing problems


?) Help q) Quit

Please enter a selection (q - quit): 1

****************************************************************
*****] ****
**** ] **** JetDirect Printer Installer for UNIX
**** ]]]]] ]]]]] **** Version E.10.18
**** ] ] ] ] ****
**** ] ] ]]]]] **** Spooler Administration
***** ] ****
****** ] **** User: (root) OS: (HP-UX B.11.11)
I N V E N T
****************************************************************

Spooler:
1) Add printer to local spooler
2) Delete printer from local spooler
3) Modify existing spooler queue(s)
4) Install New Model Script
5) Remove Model Script

?) Help q) Quit

Please enter selection: 3

Currently configured HP network print queues:
-----------------------------------------------
pt180 pt205 pt205 pt231
pt183


Enter the lp destination name (q - quit):

pt205 is what I need to change, so what do I do now? I typed pt205 and no further options appeared???

QUESTION: Should I have used option2 first (TCP IP Settings) rather than option 1?

Regards
Nigel
Aneesh Mohan
Honored Contributor

Re: HP-UX Printer IP Address Change

Hi Nigel,


Can u check if there any requests pending on that printer and if yes the clear it and try again .

do "cancel -e printername" for clearing all pending request and do "lpstat printername " for checking

Please take care to assign points ,if my info helped u to rectify the issue :)
Bill Hassell
Honored Contributor

Re: HP-UX Printer IP Address Change

hppi only works for HP network printers using an HP JetDirect LAN card. If this is the case, then changing the IP address is much, much simpler than using hppi or SAM (which runs hppi). But if your printer is not using an HP network card or is served by some other computer (linux, Windows, etc), then your printer is a "remote" printer and the fastest way to change it is to use SAM to delete it and add it back with the new address.

For HP JetDirect network cards, just run these two commands:

removequeue -q
addqueue -q -h 12.34.56.78

where 12.34.56.78 is the new IP address. If you see: command not found, your /etc/PATH file must be updated with the path: /opt/hpnpl/bin

If you need to modify the default printer settings, see the man page for modifyqueue. You may not have seen the printer option list for HP network printers: man net_ljx000


Bill Hassell, sysadmin
Alzhy
Honored Contributor

Re: HP-UX Printer IP Address Change

But for NON-JetDirect Printers -- WHERE are the IP addy/hostname of the printer stored? Is it in a binary file somewhere? I checked /etc/lp and none there....

we have a pressing issue to change IPs on hundreds of printers on about a dozen servers each with ~ 3,000 print queue definitions!

Hakuna Matata.