Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the Printer status? [closed]

Is there any way I can get the printer status, like paper jam or out of paper, from a Network Printer?

I'm working on a project to print from a Point of Sales into a A4 Network Printer, I'm planning to use the LPR native application but I can't get the paper jam or out of paper errors using that application.

Is possible to get those status from a Lexmark Network Printer?

Does exist any C/C++ Open Source library that allow me to get those status?

Thank you in advance

like image 818
gcmmemo Avatar asked Apr 05 '14 04:04

gcmmemo


1 Answers

It depends on the printer. Most of the LAN enabled boxes do have a web-interface which is an easy catch. I did the same for some ricoh printers using curl to download status pages and parsed those...

Another possibility would be using snmp traps as printers tend to have events for 'paper jam' or 'low on ink/toner'...

like image 56
Rei Avatar answered Nov 07 '22 17:11

Rei