1762873 Members
2098 Online
108909 Solutions
New Discussion юеВ

Re: printers

 
SOLVED
Go to solution
khilari
Regular Advisor

printers

Hi people, well i wanted to know as to how do u view which printers are attached to a unix box. And to view all its configuration and stuff.
Thanks.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: printers

From the command line you can use "lpstat" or you can use SAM > Printers and Plotter > LP Spooler > Printers and Plotters.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: printers

lpstat -t
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor
Solution

Re: printers

And here's a llittle script I wrote to check individual printers:

# cat /opt/hpnpl/bin/lpst
#!/bin/sh
#
# check printer status
# Geoff Wild

if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lpst \"printer\""
echo "Example:"
echo "lpst W052"
exit 1
fi
echo " "
/usr/sbin/ping $1 -n 2
echo " "
lpstat -p$1 -v$1
echo " "
echo "Output Requests"
echo "-----------------------------------------------------------"
lpstat -o$1
echo " "
lpstat -r
echo " "


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.