[cups.development] How to get printer status via CUPS API?
Toni Heimala
snildspam at gmail.com
Wed Jun 18 03:33:41 PDT 2008
Jerome Alet wrote:
>
> The easiesy way for this is to use the snmpget command line tool
> from net-snmp, and retrieve the 'hrPrinterDetectedErrorState' value :
>
> snmpget -v 1 -c public 192.168.12.34 1.3.6.1.2.1.25.3.5.1.2.1
>
> (where 192.168.12.34 is your printer's IP address)
>
> This will return either an empty string, or two bytes string
> containing an error mask with the informations you want, as
> described in RFC3805.
>
> Other SNMP values might also be of interest, like hrDeviceStatus and
> hrPrinterStatus, look at the RFC for details.
>
Thanks for your quick response.
Indeed I was able to get the printer status via this method! How ever I
was hoping there was a direct method for getting this information
through the CUPS API as well.
More information about the cups
mailing list