[SNMP4J] HP LaserJet usage-printer-total-charge

Mitch Raful mitch.raful at gmail.com
Sat Mar 30 14:23:50 CET 2013


Wow, I thought I had it with this.  But it doesn't jive with what the web
interface says

import java.math.*;

public class HexConversion {

    public static void main(String[] args) {
          String hexStr = "479b5400";
          BigInteger bigInt = new BigInteger(hexStr, 16);
          System.out.println(bigInt);// prints 1201361920
        }

}


On Sat, Mar 30, 2013 at 9:08 AM, Константин Лохтин <lokhtin at rambler.ru>wrote:

> I send SNMP reqest to HP LaserJet 3005 with MIB
> "usage-printer-total-charge" (1.3.6.1.4.1.11.2.3.9.4.2.1.1.**16.1.2.0)
> and get the following response:
> ======================
> 1.3.6.1.4.1.11.2.3.9.4.2.1.1.**16.1.2.0 = 47:9b:54:00
> ======================
> Printer WEB interface shows me total count of printed pages = 79528.
> Can anybody tell me how 47:9b:54:00 corresponds with 79528 ?
> I tried any binary representations, forward and backward. I tried ASCII
> codes. But I cannot find any connection!
> ______________________________**_________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/**mailman/listinfo/snmp4j<http://lists.agentpp.org/mailman/listinfo/snmp4j>
>



More information about the SNMP4J mailing list