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

IP address for HP printer server?

SOLVED
Go to solution
Michael Sillers
Trusted Contributor

IP address for HP printer server?

How could I find out the ip address for one of the HP printer in HP-UX system. When I use the SAM, I see the printer type is "network" but I can't find the ip address.

Thank you in advanced for answers.
6 REPLIES
Jeff Schussele
Honored Contributor

Re: IP address for HP printer server?

Hi Michael,

Simply use

lpstat -v

If it gives you a hostname then run nslookup on it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Rick Garland
Honored Contributor

Re: IP address for HP printer server?

An HP printer?

Does it have an LCD display? You go go through the menu of the printer via the LCD display and print the config from there.

Via the OS, do you know the printer name? If in DNS use nslookup. No DNS, go to /etc/lp/interface and look into the file that matches the printer name. In that file will be a line PERIPH=. This will have IP address if no DNS.

RAC_1
Honored Contributor
Solution

Re: IP address for HP printer server?

grep -i peri /etc/lp/interface/print_queue_name

Anil
There is no substitute to HARDWORK
D Block 2
Respected Contributor

Re: IP address for HP printer server?

Michael,
for me, I agree w/ Rick above. the command:

grep PERIPH /etc/lp/interface/*
finds the ip's.

the software installed on the server is the HP JetDirect Printer file installer: hp11e134

which installs into: /opt/hpnpl/bin/hppi
Golf is a Good Walk Spoiled, Mark Twain.
vinod_25
Valued Contributor

Re: IP address for HP printer server?

hi mike

The printer information can be found in the /etc/lp/interface directory.

1. To get the printer queue name, look for queue file in the /etc/lp/interface
directory.

2. To get the ip address or hostname of the printer, run:
# grep "^PERIPH=" /etc/lp/interface/(queue)

regards

Vinod K
Michael Sillers
Trusted Contributor

Re: IP address for HP printer server?

Depending on how the printer is set up, the IP address can be found in several places. In this case, it was in the interface file.