Link to home
Start Free TrialLog in
Avatar of maliksl4141
maliksl4141

asked on

checking printer ip address

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
Avatar of Otetelisanu
Otetelisanu

Use
ping printer
Make man ping
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
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
Avatar of maliksl4141

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Nisus091197
Nisus091197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tq it helps