Operating System - HP-UX
1829636 Members
4076 Online
109992 Solutions
New Discussion

Re: How to find out the IP add of the configured Network Printer?

 
SOLVED
Go to solution
Sandip Ghosh
Honored Contributor

How to find out the IP add of the configured Network Printer?

HP-UX 10.20
Jet direct Version E.10.18

How to find out the IP address of the configured network priter if it is not in the DNS?

Thanks in advance.
Sandip
Good Luck!!!
31 REPLIES 31
harry d brown jr
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

I'd go to the printer itself.

live free or die
harry
Live Free or Die
Mark Greene_1
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

if you can get to the printer, or call someone who can, print a test page from the control pannel on the printer, it will be on there.

HTH
mark
the future will be a lot like now, only later
Rita C Workman
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

You can:
check your hostfile for the printer.

run nslookup for name of printer

run jetadmin and go into
#3 Administration
#2 JetDirect Card Configuration
#4 JetDirect Information
...and it should print it out there too..

Just a thought,
Rita
David Burgess
Esteemed Contributor

Re: How to find out the IP add of the configured Network Printer?

Can you do a test print from the printers control panel menus?

If the jet admin box is separate to the printer you can hold done the test button for 5 seconds to get a configuration printout.

Somewhere in the menus you will find a configuration menu option to show the ip address.

HTH,

Dave.
Sandip Ghosh
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Is there anyother way to find out from the system?

Because we are having around 250 to 300 printer located in 4 states.

Sandip
Good Luck!!!
S.K. Chan
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Print out test page or from the printer's control panel.
Mark Greene_1
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

get a copy of the pc-based jet admin software, you can use it to "discover" the jetdirect servers out there.

mark
the future will be a lot like now, only later
David Burgess
Esteemed Contributor

Re: How to find out the IP add of the configured Network Printer?

If print queues exist on the servers then you should be able to get the names from lpstat -t and /etc/hosts.

If they are not set up yet then get someone at each loaction to print test pages and email you the results.

Do they bootp off any servers? If so the /etc/bootptab may help you.

HTH,

Dave.
Steve Steel
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Hi

testpage is best or

1)Look in /etc/bootptab or /etc/dhcptab

2)look in /etc/hosts

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Sandip,

If you know the subnet, and have a similarly configured printer, then do this:

ping X.X.X.255 2
arp -a | grep X.X.X
look for the MAC Address that is similar (in the first few octet's) to an existing printer.

# ping 141.123.239.255 2
PING 141.123.239.153: 64 byte packets
64 bytes from 141.123.239.153: icmp_seq=0. time=4. ms
....
....

# arp -a|grep 141.123.239
jd010c9.paychex.com (141.123.239.153) at 0:60:b0:99:ea:e1 ether
#


live free or die
harry
Live Free or Die
Elizabeth Gibson
Occasional Contributor

Re: How to find out the IP add of the configured Network Printer?

Take a look at the files in /etc/lp/interface. There is probably a line in each printer file that contains the string PERIPH= which has the IP address. If this is the case for your system, you can do something like "grep PERIPH= *" and then clean up the output as needed to get a list of all the IP address, with the printer name.
Sandip Ghosh
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Mark,

Can you please let me know from where I can get the jetadmin on PC? I am downloading the web jet admin. After the installation I will see whether it can discover or not.

Rita,

In which version of JetAdmin you are looking at? Because I have not seen any option like that in my jetadmin ver.

Harry,

I had looked through arp -a, it is only giving the major Server addresses.

Doesn't it (JetAdmin) keep the details of the printer anywhere??? Its weired.

Sandip
Good Luck!!!
Carlos Fernandez Riera
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

I agree with Elizabeth...


It is usual that PERIPH=${MODEL} in /etc/lp/interface/pr_texas ?


so if your printer is like pr_texas just pinging pr_texas will show its addr.
unsupported
Sandip Ghosh
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Elizabeth,

For some printers I have got the IP Address and the Printer Names. But Some cases I am not getting the IP Add.

Sandip
Good Luck!!!
harry d brown jr
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Sandip,

When you say "configured network printer" does that mean you can print to the printer, and you just down't know the IP, or are you saying that you can't print to it and need the IP to configure it properly?

And how do you print to these printers? From Hpux or M$ stuff?

live free or die
harry
Live Free or Die
Sandip Ghosh
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Harry,

Configured Printers mean I can print to the Printer. Before me somebody had configured the Printer and it is working fine.

I am printing from HP-UX 10.20.

Now the problem is that no one knows what the IP address of a specific printer and they are not in the DNS table also. The problem we are facing during any breakdown. Suppose the external jetadmin box are not working. Then you have to replace the jet admin box and you don't know what was the earlier IP address of the deffective box. Same is for the printers also.

Sandip
Good Luck!!!
MANOJ SRIVASTAVA
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Hi Sandip


/usr/spool/interface/printername should have the IP addres if it was configured using the IP Adress , also in case it was configured using a name then /etc/hosts should have an entry because the system ie jetadmin looks either for these two and if it was configured using the IP address then check that file .

Or try doing a telent to the printer name from the server , bcoz the server has definaltety a way to see that printer.

You may try nslookup printer name

Manoj Srivastav
Elizabeth Gibson
Occasional Contributor

Re: How to find out the IP add of the configured Network Printer?

Sandip,
If the IP address is not in the /etc/lp/interface file, I'm stumped. I always configure my printers by running JetADmin on the Unix box, and all of my printer interface files have the IP address. I'm not sure if this would be true if the printer was configured running JetAdmin from a PC. However, Manoj's comments sound right to me.

Best Regards,
Elizabeth
D. Jackson_1
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Have you tried doing an nslookup on the printer name? Maybe it was configured within NIS?

Good Luck.
D. Jackson_1
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

You could also try this:
telnet printer_name (look for ip address)

hpnpadmin -v printer_name (look for ip address)

HTH
Sachin Patel
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Thanks Jackson,
That works if I have printer queue's name same as printer's(jetdirect card) dns name.

If I have dns(or host) entry for hp-4050-1 but if my queue name is hp_4050_1 then how do I know the ip. Because now when I run lpstat -a it is going to show me hp_4050_1 not a hp-4050-1.

Sachin
Is photography a hobby or another way to spend $
Sanjay_6
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Hi Sandip,

Go to the /var/spool/lp/interface directory on the system where this printer is connected. View the printer file, say the printer name is test, view this file /var/spool/lp/interface/test and look for the keyword "PERIPH", you should see the ip address of the printer over there.

Hope this helps.

Regds
Deshpande Prashant
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

Hi Sandeep
As suggested by others,
The printer names/ip address will be defined in /etc/lp/interface/ file
with variable {PERIPH}.
If you are able to print to that printer from a system, you will be able to resolve the printer name (defined as PERIPH variable) using nslookup.

Thanks.
Prashant Deshpande.
Take it as it comes.
Sandip Ghosh
Honored Contributor

Re: How to find out the IP add of the configured Network Printer?

As everyone described I could get some IP address by doing "grep PERIPH= *" from the following directories.

/etc/lp/interface
/var/spool/lp/interface
/usr/spool/lp/interface

Truly speaking I got around 30 IP addresses out of 300 printer queue configured.

Rather, it is very useful to download the WebJetadmin on a PC and give the IP address range and it will discover all the printers in that subnet. WebJetadmin is really very good product. If anyone facing the same problem like me it is worth to look at this product. It is available free on the Web.

Anyway many many thanks guys for taking part in the discussion.


Sandip
Good Luck!!!