Changeset 2305
- Timestamp:
- 06/10/05 10:30:43 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r2303 r2305 22 22 PyKota NEWS : 23 23 24 - 1.23alpha9 : 25 26 - Fixed internal SNMP accounter for printers which only have a life time 27 page counter, and not a volatile page counter. 28 24 29 - 1.23alpha8 : 25 30 -
pykota/trunk/pykota/accounters/snmp.py
r2302 r2305 42 42 else : 43 43 pageCounterOID = ".1.3.6.1.2.1.43.10.2.1.4.1.1" # SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 44 pageCounterOID2 = ".1.3.6.1.2.1.43.10.2.1.5.1.1" # SNMPv2-SMI::mib-2.43.10.2.1.5.1.145 44 hrPrinterStatusOID = ".1.3.6.1.2.1.25.3.5.1.1.1" # SNMPv2-SMI::mib-2.25.3.5.1.1.1 46 45 printerStatusValues = { 1 : 'other', … … 69 68 self.printerHostname = printerhostname 70 69 self.printerInternalPageCounter = None 71 self.printerInternalPageCounter2 = None72 70 self.printerStatus = None 73 71 self.deviceStatus = None … … 80 78 req.apiAlphaSetPdu(ver.GetRequestPdu()) 81 79 req.apiAlphaGetPdu().apiAlphaSetVarBindList((pageCounterOID, ver.Null()), \ 82 (pageCounterOID2, ver.Null()), \83 80 (hrPrinterStatusOID, ver.Null()), \ 84 81 (hrDeviceStatusOID, ver.Null())) … … 111 108 # keep maximum value seen for printer's internal page counter 112 109 self.printerInternalPageCounter = max(self.printerInternalPageCounter, self.values[0]) 113 self.printerInternalPageCounter2 = max(self.printerInternalPageCounter2, self.values[1]) 114 self.printerStatus = self.values[2] 115 self.deviceStatus = self.values[3] 116 self.parent.filter.logdebug("SNMP answer is decoded : PageCounters : (%s, %s) PrinterStatus : %s DeviceStatus : %s" % tuple(self.values)) 110 self.printerStatus = self.values[1] 111 self.deviceStatus = self.values[2] 112 self.parent.filter.logdebug("SNMP answer is decoded : PageCounter : %s PrinterStatus : %s DeviceStatus : %s" % tuple(self.values)) 117 113 except IndexError : 118 114 self.parent.filter.logdebug("SNMP answer is incomplete : %s" % str(self.values)) -
pykota/trunk/pykota/version.py
r2302 r2305 22 22 # 23 23 24 __version__ = "1.23alpha 8_unofficial"24 __version__ = "1.23alpha9_unofficial" 25 25 26 26 __doc__ = "PyKota : a complete Printing Quota Solution for CUPS and LPRng."