Solved

checking printer ip address

Posted on 2002-04-01
6
281 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 

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 10 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

688 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