Operating System - HP-UX
1823914 Members
3170 Online
109667 Solutions
New Discussion юеВ

IP address of the printers in a HP-UX system

 
Subentu
Frequent Advisor

IP address of the printers in a HP-UX system

Guys,

I have a HP-UX system, and there is a local printer and a remote printer in the system.

I want to know where can I see and change the ip addresses of those printers.

Please help

Thanks
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: IP address of the printers in a HP-UX system

Shalom,

IP address configuration is usually done in the printer, not the HP-UX system.

Are you using CIFS/Samba to share the printers?

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
Jaime Bolanos Rojas.
Honored Contributor

Re: IP address of the printers in a HP-UX system

Subentu,

Did you already try with hppi?

Regards,

Jaime.
Work hard when the need comes out.
Ganesan R
Honored Contributor

Re: IP address of the printers in a HP-UX system

Hi,

If you have remote printer queue ip's changed and want to update in HP-UX use SAM.

Goto SAM --> Printers and plotters --> LP Spooler --> Printers and plotters --> Add remote printer or select the printer and change the settings
Best wishes,

Ganesh.
Bill Hassell
Honored Contributor

Re: IP address of the printers in a HP-UX system

There are several ways to connect a printer:

- with a cable, Centronics/parallel or serial (RS-232) or SCSI cable,

- shared over the network from another server,

- connected as a remote printer using a print server appliance or I/O card,

- connected as a network printer using an HP JetDirect appliance or I/O card.

So, a local printer has no IP address or LAN connection - it is connected directly.

A remote printer is connected on the network using the RFC 1179 protocol. This printer is made available to other systems by a print server. A print server might be a Windows box, or a Linux or HP-UX or AIX, etc system. Or the print server may be bundled into the LAN interface in the printer. In either case, HP-UX sees this as a "remote" printer and the remote server's IP address can be seen with the command:

lpstat -v

You can't change the IP address in HP-UX for a remote printer because it is imbedded in a binary file called /var/spool/lp/pstatus. You must delete the printer and add it back to change the IP address -- unless the printer was added with a hostname rather than an IP address. In that case, you can change /etc/hosts or your DNS server, depending on your nsswitch.conf file.

However, for HP printers connected to the network with an HP JetDirect LAN card, the IP address (or hostname if setup that way) is found by looking for the string: PERIPH= in the printer control scripts found in /etc/lp/interface:

grep PERIPH= /etc/lp/interface/*

These JetDirect printer scripts can be directly edited and the PERIPH= line changed at anytime. The next print job will go to the new IP address. However, before you change the address, be sure you can talk to the new address: ping the IP, and also run hpnpadmin -v to check the printer's statistics.


Bill Hassell, sysadmin