- Timestamp:
- 09/03/09 08:29:19 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/snmp.py
r3489 r3503 284 284 else : 285 285 self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint() or "0")) 286 self.printerStatus = int(varBinds[1][1].prettyPrint() )287 self.deviceStatus = int(varBinds[2][1].prettyPrint() )286 self.printerStatus = int(varBinds[1][1].prettyPrint() or "2") # or unknown 287 self.deviceStatus = int(varBinds[2][1].prettyPrint() or "1") # or unknown 288 288 self.printerDetectedErrorState = self.extractErrorStates(str(varBinds[3][1])) 289 289 self.parent.filter.logdebug("SNMP answer decoded : PageCounter : %s PrinterStatus : '%s' DeviceStatus : '%s' PrinterErrorState : '%s'" \