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
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
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
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-nam e/configur ation. For example:
asgard> cat /etc/lp/printers/hq-x-110/ configurat ion
Banner: optional
Content types: postscript
Device: /dev/null
Interface: /usr/lib/lp/model/netstand ard
Printer type: PS
Modules:
Options: dest=hq-x-110.domain.tld:l p0,protoco l=bsd
tells me that the printer hq-x-110 is using a printer with a hostname of hq-x-110.domain.tld
asgard> cat /etc/lp/printers/hq-x-110/
Banner: optional
Content types: postscript
Device: /dev/null
Interface: /usr/lib/lp/model/netstand
Printer type: PS
Modules:
Options: dest=hq-x-110.domain.tld:l
tells me that the printer hq-x-110 is using a printer with a hostname of hq-x-110.domain.tld
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tq it helps
ping printer
Make man ping