How to run hp-levels on a cups shared printer?

Asked by Maxime on 2020-02-16

I would like to show the ink level of a CUPS shared printer (network) from a computer of that network which the printer is not plug into like: computerA > server > CUPS > printerB : how to correctly run hp-levels from computerA to see the printerB ink level ? Is it possible?

Otherwise I tried to make a php script that run on the server but I can't get it to print something correct (my php script is like <?php passthru("hp-levels -i 2>&1"); ?>). It says Failed to create /var/www/.hplip and Unable to communicate with device (code=12): hp:/usb/Deskjet_5700?serial=MY4911Z0X7046W.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2020-02-16
Last reply:
2020-02-24
shivani mandora (shivani1708) said : #1

hi,

code 12 error is printer busy error . please restart printer and try again.

Can you help with this problem?

Provide an answer of your own, or ask Maxime for more information if necessary.

To post a message you must log in.