From 72340fee64adbca76fa4ed9d3879e95a3f6b059e Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 2 Feb 2019 14:04:53 +0100 Subject: [PATCH] --- 0-readme.rst | 30 ++++++++++ hp-color-laserjet-info_device_status.xml | 63 ++++++++++++++++++++ hp-color-laserjet-info_ssp.xml | 75 ++++++++++++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 0-readme.rst create mode 100644 hp-color-laserjet-info_device_status.xml create mode 100644 hp-color-laserjet-info_ssp.xml diff --git a/0-readme.rst b/0-readme.rst new file mode 100644 index 0000000..1436444 --- /dev/null +++ b/0-readme.rst @@ -0,0 +1,30 @@ +hp-toolbox uses HTTP to fetch toner levels: + +- http://192.168.3.98/hp/device/info_device_status.xml +- http://192.168.3.98/hp/device/info_ssp.xml + +Printer has SNMP activated, and we can fetch the toner status:: + + $ snmpwalk -c public -v 1 -On 192.168.3.98 + .1.3.6.1.2.1.43.11.1.1.8.1.1 = INTEGER: 590 + .1.3.6.1.2.1.43.11.1.1.8.1.2 = INTEGER: 470 + .1.3.6.1.2.1.43.11.1.1.8.1.3 = INTEGER: 470 + .1.3.6.1.2.1.43.11.1.1.8.1.4 = INTEGER: 470 + .1.3.6.1.2.1.43.11.1.1.9.1.1 = INTEGER: 45 + .1.3.6.1.2.1.43.11.1.1.9.1.2 = INTEGER: 0 + .1.3.6.1.2.1.43.11.1.1.9.1.3 = INTEGER: 85 + .1.3.6.1.2.1.43.11.1.1.9.1.4 = INTEGER: 57 + +With readable names (from Printer-MIB that I got by executing "download-mibs"):: + + $ snmpwalk -c public -v 1 -m Printer-MIB 192.168.3.98 + Printer-MIB::prtMarkerSuppliesMaxCapacity.1.1 = INTEGER: 590 + Printer-MIB::prtMarkerSuppliesMaxCapacity.1.2 = INTEGER: 470 + Printer-MIB::prtMarkerSuppliesMaxCapacity.1.3 = INTEGER: 470 + Printer-MIB::prtMarkerSuppliesMaxCapacity.1.4 = INTEGER: 470 + Printer-MIB::prtMarkerSuppliesLevel.1.1 = INTEGER: 45 + Printer-MIB::prtMarkerSuppliesLevel.1.2 = INTEGER: 0 + Printer-MIB::prtMarkerSuppliesLevel.1.3 = INTEGER: 85 + Printer-MIB::prtMarkerSuppliesLevel.1.4 = INTEGER: 57 + +Still CUPS does not show the ink level, only says that the printer does not provide information. \ No newline at end of file diff --git a/hp-color-laserjet-info_device_status.xml b/hp-color-laserjet-info_device_status.xml new file mode 100644 index 0000000..4c79d41 --- /dev/null +++ b/hp-color-laserjet-info_device_status.xml @@ -0,0 +1,63 @@ + + + + + + + + + 1 + -19928 + + + + 2 + -19752 + + + + 3 + 0 + + + + + + + + 0 + + 8 + 66 + + + + + 6 + + 0 + + + + 0 + + 18 + 152 + + + + 0 + + 12 + 183 + + + + + + + + + + + diff --git a/hp-color-laserjet-info_ssp.xml b/hp-color-laserjet-info_ssp.xml new file mode 100644 index 0000000..87052b9 --- /dev/null +++ b/hp-color-laserjet-info_ssp.xml @@ -0,0 +1,75 @@ + + + + + + + 0 + + + Q6000A + 8 + 66 + 142 + 1 + 2178876682 + 809 + + + 20140703 + 3 + 25 + + + + + 6 + + + Q6001A + + 0 + + + + + 0 + + + Q6003A + 18 + 152 + 111 + 0 + 2364474627 + 734 + + + 20061110 + 3 + 20 + + + + 0 + + + Q6002A + 12 + 183 + 64 + 0 + 2230453519 + 1355 + + + 20061110 + 3 + 20 + + + + + + + -- 2.30.2