Work-around for retreiving SNMP info from Phaser 6250 using Windows 2003 IPP printing

There’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.  This prevents it from being able to display snmp information using the “Device Status” page in windows IPP .  I found a work around by editing the ipp_0000.inc file in c:\windows\web\printers .  Here’s the original code:

   hrPrintDetectedState = objSNMP.GetAsByte (“25.3.5.1.2.” & StrDevice)
    If Err Then Exit Function

This works fine for an hp2430 printer, but gives an invalid argument error when run against a xerox phaser 6250 without any error conditions.  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’t an error.  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.

As a work around, I did this:

hrPrintDetectedState = objSNMP.GetAsByte (“25.3.5.1.2.” & StrDevice)
    If Err Then Err.Clear

Tags: , ,

Comments are closed.