Operating System - HP-UX
1832644 Members
2909 Online
110043 Solutions
New Discussion

IP address of the Printronix (Network printer) in hp-ux

 
lo wai ling
Occasional Contributor

IP address of the Printronix (Network printer) in hp-ux

Hi ,
can any one advise me on how could i find the ip address for that printer installed in hp-ux.

Thanks.
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

Hi,

Go to /var/spool/lp/interface. You will find a file with the printer name. View the file and search for PERIPH. It will contain either the IP or the hostname. If it is hostname, you can find the IP by doing 'nslookup printer_hostname'.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

Look in /etc/lp/interface directory.
View the printer, it should contain either the DNS name or IP address where is states "PERIPH"
If it does not utilise nslookup. If you use other than a jetdirect card, nslookup is the way to do it.

# nslookup printername
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

You can also use this to get printer information. It contains, name, port on a the network printer server etc.

# /usr/sam/lbin/lpmgr -l xcols=1
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

One further method. If you have jetdirect installed, this should also help. It shows an abundance of information, including the IP address. This may only work on print servers where a jet direct card is installed.

# /opt/hpnpl/bin/hpnpadmin -v printername
Anyone for a Mutiny ?
lo wai ling
Occasional Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

The printer which installed is remote type ? anyone can advise on the what are the configuration of that printer ?

I have try the command nslookup printername and the result show as below. anyone can advise ?

sapdev1:root:/etc/lp/interface:133:$ nslookup p5212
Using /etc/hosts on: sapdev1

looking up FILES
*** No address information is available for "p5212"

regards,
wai ling
Jeff Schussele
Honored Contributor

Re: IP address of the Printronix (Network printer) in hp-ux

Hi wai ling,

Check your /etc/nsswitch.conf file - what does the line that start with hosts: say?

If it's just

hosts: files

and you use DNS then you need to add that search component. Change it to:

hosts: files [NOTFOUND=continue] dns [NOTFOUND=return UNAVAIL=return]

This way the DNS server will be queried & if it's not found there or the server(s) is(are) down then you'll get an error.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!