RE: [PMP] Printer MIB question

"Christian Christiansen" <cc@euroform.dk> Mon, 14 September 2009 17:54 UTC

Return-Path: <pmp-bounces@pwg.org>
X-Original-To: ietfarch-printmib-archive@core3.amsl.com
Delivered-To: ietfarch-printmib-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 362E83A68D8 for <ietfarch-printmib-archive@core3.amsl.com>; Mon, 14 Sep 2009 10:54:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.597
X-Spam-Level:
X-Spam-Status: No, score=-2.597 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_HTML_MOSTLY=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cm-1kGFrcWQp for <ietfarch-printmib-archive@core3.amsl.com>; Mon, 14 Sep 2009 10:54:36 -0700 (PDT)
Received: from pwg.org (www.pwg.org [192.146.101.49]) by core3.amsl.com (Postfix) with ESMTP id 956403A6805 for <printmib-archive@lists.ietf.org>; Mon, 14 Sep 2009 10:54:36 -0700 (PDT)
Received: from pwg.org (localhost.localdomain [127.0.0.1]) by pwg.org (Postfix) with ESMTP id 6163579F9B; Mon, 14 Sep 2009 13:55:07 -0400 (EDT)
X-Original-To: pmp@pwg.org
Delivered-To: pmp@pwg.org
Received: from mail.euroform.com (mail.euroform.com [80.164.151.66]) by pwg.org (Postfix) with ESMTP id 0CF0279F99 for <pmp@pwg.org>; Mon, 14 Sep 2009 13:54:50 -0400 (EDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: [PMP] Printer MIB question
Date: Mon, 14 Sep 2009 19:55:35 +0200
Message-ID: <89C42F572C9E5341890080C057ED44F1013D1D0A@ef-srv-01.euroform.local>
In-Reply-To: <002e01ca355e$db4c7760$91e56620$@net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [PMP] Printer MIB question
thread-index: Aco1XtsAnZf3z1/VQo64dz3bgcY4jQABCCwg
References: <002e01ca355e$db4c7760$91e56620$@net>
From: Christian Christiansen <cc@euroform.dk>
To: William Wagner <wamwagner@comcast.net>, farouk.boujnah@gmail.com
X-pwg-MailScanner: Found to be clean, Found to be clean
Cc: pmp@pwg.org, Christian Christiansen <cc@euroform.dk>
X-BeenThere: pmp@pwg.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Printer MIB <pmp.pwg.org>
List-Unsubscribe: <https://www.pwg.org/mailman/listinfo/pmp>, <mailto:pmp-request@pwg.org?subject=unsubscribe>
List-Archive: <http://www.pwg.org/archives/pmp>
List-Post: <mailto:pmp@pwg.org>
List-Help: <mailto:pmp-request@pwg.org?subject=help>
List-Subscribe: <https://www.pwg.org/mailman/listinfo/pmp>, <mailto:pmp-request@pwg.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0950862298=="
Sender: pmp-bounces@pwg.org
Errors-To: pmp-bounces@pwg.org
X-pwg-MailScanner-Information: Please contact the ISP for more information
X-pwg-MailScanner-ID: 6163579F9B.09F47
X-pwg-MailScanner-From: pmp-bounces@pwg.org

If the endian is correct then, the value 8004 has a binary
representation as follows:

1000 0000 0000 0100

That means to me that bit 15 is on and bit 2 is on. However bit 15 is
NOT defined in RFC2790

So the interpretation would be

"LowToner"

 

If the endian is wrong the the value is 0480 and it has a binary
representation as follows:

0000 0100 1000 0000

That means to me that bit 10 is on and bit 7 is on.

In this case the interpretation would be

"serviceRequested"

"markerSupplyMissing"

 

Christian Christiansen

 

 

________________________________

From: pmp-bounces@pwg.org [mailto:pmp-bounces@pwg.org] On Behalf Of
William Wagner
Sent: 14. september 2009 19:15
To: farouk.boujnah@gmail.com
Cc: pmp@pwg.org
Subject: [PMP] Printer MIB question

 

With regard to the question that you sent to hastings@cp10.es.xerox.com,
szilles@mv.us.adobe.com, don@lexmark.com, jgyllens@hpdmd48.boi.hp.com,
it has been forwarded to the Printer Working Group "PMP" mail list,
which deals with printer MIB issues. You may well have responses from
other members, but if I understand your question, it is how to interpret
the response to  OID [.iso.3.6.1.2.1.25.3.5.1.2.1]. This appears to be
the hrPrinterDetectedErrorState object in the host resources MIB
(RFC2790.) The object value is "bit coded" as follows, and your program
is interpreting the response in hexadecimal.

   lowPaper              0

   noPaper               1

                lowToner              2

                noToner               3

                doorOpen              4

                jammed                5

                offline               6

                serviceRequested      7

                inputTrayMissing      8

                outputTrayMissing     9

                markerSupplyMissing  10

                outputNearFull       11

                outputFull           12

                inputTrayEmpty       13

                overduePreventMaint  14

 

But remember that, in the MIB, bits are numbered starting with the most
significant bit of the first byte being bit 0,

 

To interpret 80 04, it may be easiest conceptually to covert the value
to binary 1000 0000 0000 0100. The value read therefore corresponds to
bits 0 and bit 13, low paper and input tray empty.

 

Hope this helps. Note also that the current Printer MIB is RFC3805,
although some printers still support only the earlier verson.

 

Bill Wagner/ Chair, Printer Working Group WIMS/PMP 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
pmp mailing list
pmp@pwg.org
https://www.pwg.org/mailman/listinfo/pmp