?
Solved

checking printer ip address

Posted on 2002-04-01
6
Medium Priority
?
286 Views
Last Modified: 2013-12-27
Hi.

  in my Sun 8 server , i have many printer
   connected to it.

    How to check the printers ip address of each printer.
    i cannot use admintool(GUI) as i use
     telnet.

    tq
    Sun newbie
0
Comment
Question by:maliksl4141
6 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6912130
Use
ping printer
Make man ping
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6915663
Hi there,

Use 'lpstat' to display information about your printers, e.g. lpstat -v

Each printer name should have a corresponding entry in your /etc/hosts file.

Something like this should help:

for i in `/usr/bin/lpstat -v | awk '{print $1}' `; do
    getent hosts $i
done

I can't check it now but let me know how you get on.

Regards, Nisus
http://www.omnimodo.com
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6925540
If you want to see what IP (or hostname) is associated with a printer you can look at /etc/lp/printers/spool-name/configuration. For example:

asgard> cat /etc/lp/printers/hq-x-110/configuration
Banner: optional
Content types: postscript
Device: /dev/null
Interface: /usr/lib/lp/model/netstandard
Printer type: PS
Modules:
Options: dest=hq-x-110.domain.tld:lp0,protocol=bsd

tells me that the printer hq-x-110 is using a printer with a hostname of hq-x-110.domain.tld
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:maliksl4141
ID: 6927466
is there anyway i can get the ip address
of the printer directly .(192.254.x.xx)

appreciate above answers but
i don't see the ip address in
configuration file.

 newbie
0
 
LVL 5

Accepted Solution

by:
Nisus091197 earned 30 total points
ID: 6927564
if it is not in the /etc/hosts file it could be in DNS or NIS.

run this:

getent hosts | grep hq-x-110

or

ypmatch hosts | grep hq-x-110

Are you the mail server's administrator?
0
 

Author Comment

by:maliksl4141
ID: 7106343
tq it helps
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question