lpstat -o for ipp-printers
Helge Blischke
h.blischke at srz.de
Mon Jan 22 08:57:08 PST 2007
Christoph Litauer wrote:
> Dear admins,
>
> I wonder if it's possible to get the printer status of remote ipp
> printers, served by a cups service and used by another cups daemon
> running on another machine, e.g.:
>
> - cups 1.1.23 running on 'printhost' offers 50 printers
> - cups 1.1.23 running on 'somehost' learned these printers
>
> somehost $ lpstat -v | grep myprinter
> device for pdfmail: ipp://printhost:631/printers/myprinter
>
> somehost $ lpstat -o myprinter
> somehost $
>
> somehost $ env CUPS_SERVER=printhost lpstat -o myprinter
> myprinter-14648 user1 12959744 Mon Jan 22 15:58:01 2007
> myprinter-14658 user2 524288 Mon Jan 22 16:00:27 2007
>
I think you might take the ipptest (or testipp, whatever it is named)
from the CUPS source distribution as a basis for such an utility.
Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
More information about the cups
mailing list