(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Sat, 2 Feb 2019 13:04:53 +0000 (14:04 +0100)
committerwww-cweiske <www-cweiske@cweiske.de>
Sat, 2 Feb 2019 13:04:53 +0000 (14:04 +0100)
0-readme.rst [new file with mode: 0644]
hp-color-laserjet-info_device_status.xml [new file with mode: 0644]
hp-color-laserjet-info_ssp.xml [new file with mode: 0644]

diff --git a/0-readme.rst b/0-readme.rst
new file mode 100644 (file)
index 0000000..1436444
--- /dev/null
@@ -0,0 +1,30 @@
+hp-toolbox uses HTTP to fetch toner levels:\r
+\r
+- http://192.168.3.98/hp/device/info_device_status.xml\r
+- http://192.168.3.98/hp/device/info_ssp.xml\r
+\r
+Printer has SNMP activated, and we can fetch the toner status::\r
+\r
+    $ snmpwalk -c public -v 1 -On 192.168.3.98\r
+    .1.3.6.1.2.1.43.11.1.1.8.1.1 = INTEGER: 590\r
+    .1.3.6.1.2.1.43.11.1.1.8.1.2 = INTEGER: 470\r
+    .1.3.6.1.2.1.43.11.1.1.8.1.3 = INTEGER: 470\r
+    .1.3.6.1.2.1.43.11.1.1.8.1.4 = INTEGER: 470\r
+    .1.3.6.1.2.1.43.11.1.1.9.1.1 = INTEGER: 45\r
+    .1.3.6.1.2.1.43.11.1.1.9.1.2 = INTEGER: 0\r
+    .1.3.6.1.2.1.43.11.1.1.9.1.3 = INTEGER: 85\r
+    .1.3.6.1.2.1.43.11.1.1.9.1.4 = INTEGER: 57\r
+\r
+With readable names (from Printer-MIB that I got by executing "download-mibs")::\r
+\r
+    $ snmpwalk -c public -v 1 -m Printer-MIB 192.168.3.98\r
+    Printer-MIB::prtMarkerSuppliesMaxCapacity.1.1 = INTEGER: 590\r
+    Printer-MIB::prtMarkerSuppliesMaxCapacity.1.2 = INTEGER: 470\r
+    Printer-MIB::prtMarkerSuppliesMaxCapacity.1.3 = INTEGER: 470\r
+    Printer-MIB::prtMarkerSuppliesMaxCapacity.1.4 = INTEGER: 470\r
+    Printer-MIB::prtMarkerSuppliesLevel.1.1 = INTEGER: 45\r
+    Printer-MIB::prtMarkerSuppliesLevel.1.2 = INTEGER: 0\r
+    Printer-MIB::prtMarkerSuppliesLevel.1.3 = INTEGER: 85\r
+    Printer-MIB::prtMarkerSuppliesLevel.1.4 = INTEGER: 57\r
+\r
+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 (file)
index 0000000..4c79d41
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+
+<DeviceStatusPage xmlns="http://www.hp.com/schemas/imaging/pls/dev/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/pls/dev/1.0 DeviceStatusPage.xsd">
+     <DeviceStatus>
+       <StatusList>
+               
+                <Status>
+                  <Priority>1</Priority>
+                 <Code>-19928</Code>
+                </Status>
+               
+                <Status>
+                  <Priority>2</Priority>
+                 <Code>-19752</Code>
+                </Status>
+               
+                <Status>
+                  <Priority>3</Priority>
+                 <Code>0</Code>
+                </Status>
+               
+         </StatusList>    
+      </DeviceStatus>
+        
+                    <SuppliesStatus>
+               <BlackSupply>
+              <Status>0</Status>
+                 
+                 <PercentRemaining>8</PercentRemaining>
+                  <PagesRemaining>66</PagesRemaining>
+                 
+               </BlackSupply>
+             
+                             <CyanSupply>
+              <Status>6</Status>
+               
+                 <CartridgeOutOverrideActive>0</CartridgeOutOverrideActive>
+               
+              </CyanSupply>
+              <MagentaSupply>
+              <Status>0</Status>
+               
+               <PercentRemaining>18</PercentRemaining>
+                <PagesRemaining>152</PagesRemaining>
+               
+              </MagentaSupply>
+              <YellowSupply>
+              <Status>0</Status>
+               
+               <PercentRemaining>12</PercentRemaining>
+                <PagesRemaining>183</PagesRemaining>
+               
+              </YellowSupply>
+              
+
+
+             
+             </SuppliesStatus>
+
+        
+   </DeviceStatusPage>    
+
diff --git a/hp-color-laserjet-info_ssp.xml b/hp-color-laserjet-info_ssp.xml
new file mode 100644 (file)
index 0000000..87052b9
--- /dev/null
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+
+
+
+<SuppliesStatusPage xmlns="http://www.hp.com/schemas/imaging/pls/dev/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/pls/dev/1.0 SuppliesStatusPage.xsd">
+  <BlackSupply>
+    <SuppliesStatus>0</SuppliesStatus>
+    
+   
+      <PartNumber>Q6000A</PartNumber>
+      <PercentRemaining>8</PercentRemaining>
+      <PagesRemaining>66</PagesRemaining>
+      <HistoricalCoverage>142</HistoricalCoverage>
+      <LowReached>1</LowReached>
+      <SerialNumber>2178876682</SerialNumber>
+      <PageCount>809</PageCount>
+      <InstallDate></InstallDate> 
+      <LastUseDate></LastUseDate>
+      <Manufacture_Date>20140703</Manufacture_Date>
+      <Capacity_Units>3</Capacity_Units>
+      <Total_Capacity>25</Total_Capacity>
+  
+  </BlackSupply>
+  
+       <CyanSupply>
+    <SuppliesStatus>6</SuppliesStatus>
+    
+    
+      <PartNumber>Q6001A</PartNumber>
+      
+        <CartridgeOutOverrideActive>0</CartridgeOutOverrideActive>
+      
+  
+  </CyanSupply>
+  <MagentaSupply>
+    <SuppliesStatus>0</SuppliesStatus>
+    
+    
+      <PartNumber>Q6003A</PartNumber>
+      <PercentRemaining>18</PercentRemaining>
+      <PagesRemaining>152</PagesRemaining>
+      <HistoricalCoverage>111</HistoricalCoverage>
+      <LowReached>0</LowReached>
+      <SerialNumber>2364474627</SerialNumber>
+      <PageCount>734</PageCount>
+      <InstallDate></InstallDate> 
+      <LastUseDate></LastUseDate>
+      <Manufacture_Date>20061110</Manufacture_Date>
+      <Capacity_Units>3</Capacity_Units>
+      <Total_Capacity>20</Total_Capacity>
+  
+  </MagentaSupply>
+  <YellowSupply>
+    <SuppliesStatus>0</SuppliesStatus>
+    
+    
+      <PartNumber>Q6002A</PartNumber>
+      <PercentRemaining>12</PercentRemaining>
+      <PagesRemaining>183</PagesRemaining>
+      <HistoricalCoverage>64</HistoricalCoverage>
+      <LowReached>0</LowReached>
+      <SerialNumber>2230453519</SerialNumber>
+      <PageCount>1355</PageCount>
+      <InstallDate></InstallDate> 
+      <LastUseDate></LastUseDate>
+      <Manufacture_Date>20061110</Manufacture_Date>
+      <Capacity_Units>3</Capacity_Units>
+      <Total_Capacity>20</Total_Capacity>
+  
+  </YellowSupply>
+
+
+
+  
+</SuppliesStatusPage>