?
Solved

checking printer ip address

Posted on 2002-04-01
6
Medium Priority
?
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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.

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

800 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