{"id":114,"date":"2009-05-27T18:52:11","date_gmt":"2009-05-27T22:52:11","guid":{"rendered":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/?p=114"},"modified":"2009-05-27T18:52:11","modified_gmt":"2009-05-27T22:52:11","slug":"work-around-for-retreiving-snmp-info-from-phaser-6250-using-windows-2003-ipp-printing","status":"publish","type":"post","link":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/?p=114","title":{"rendered":"Work-around for retreiving SNMP info from Phaser 6250 using Windows 2003 IPP printing"},"content":{"rendered":"<p>There&#8217;s seems to be a problem with the way the Err object in asp handles some of the data it receives from Xerox Phaser 6250 printers.\u00a0 This prevents it from being able to display snmp information using the &#8220;Device Status&#8221; page in windows IPP .\u00a0 I found a work around by editing the ipp_0000.inc file in c:\\windows\\web\\printers .\u00a0 Here&#8217;s the original code:<\/p>\n<p><strong>\u00a0\u00a0 hrPrintDetectedState = objSNMP.GetAsByte (&#8220;25.3.5.1.2.&#8221; &amp; StrDevice)<br \/>\n\u00a0\u00a0\u00a0 If Err Then Exit Function<\/strong><\/p>\n<p>This works fine for an hp2430 printer, but gives an invalid argument error when run against a xerox phaser 6250 without any error conditions.\u00a0 Using an MIB browser, I checked 1.3.6.1.2.1.25.3.5.1.2.1 to see what each return for the hrPrinterDetectedErrorState.1 when there wasn&#8217;t an error.\u00a0 The hp printer returns nothing, but the Xerox Phaser returned an octet string of 00-0x00-0x00-0x00 which possibly caused some time of error for the GetAsByte function.<\/p>\n<p>As a work around, I did this:<\/p>\n<p><strong>hrPrintDetectedState = objSNMP.GetAsByte (&#8220;25.3.5.1.2.&#8221; &amp; StrDevice)<br \/>\n\u00a0\u00a0\u00a0 If Err Then Err.Clear<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s seems to be a problem with the way the Err object in asp handles some of the data it receives from Xerox Phaser 6250 printers.\u00a0 This prevents it from being able to display snmp information using the &#8220;Device Status&#8221; page in windows IPP .\u00a0 I found a work around by editing the ipp_0000.inc file [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[39,40,41],"_links":{"self":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/114"}],"collection":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":1,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":115,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/115"}],"wp:attachment":[{"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cs.toronto.edu\/~jhancock\/wlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}