Ticket #53 (accepted enhancement)
SNMP accounter for HP designjet
Reported by: | bse | Owned by: | jerome |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | pykota | Version: | development |
Keywords: | Cc: |
Description
HP Designjet har the ability to report paper and ink usage.
The attached diff shows how I read the used paper area (in square inch) and convert to A4 pages.
//Bse
diff /usr/lib/python2.4/site-packages/pykota/accounters/snmp.py snmp_designjet.py.work.without_extra_sleepdelay
56a57
pageAreaOID = "1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.12.2.5.1.0 "
94c95,96
< defaultErrorMask = 0x4fcc # [ 'No Paper',
---
#defaultErrorMask = 0x4fcc # [ 'No Paper',
defaultErrorMask = 0x0 # [ 'No Paper',
285c287
< tuple([int(i) for i in pageCounterOID.split('.')]), \
---
tuple([int(i) for i in pageAreaOID.split('.')]), \
320c322
< req.apiAlphaGetPdu().apiAlphaSetVarBindList((pageCounterOID, ver.Null()), \
---
req.apiAlphaGetPdu().apiAlphaSetVarBindList((pageAreaOID, ver.Null()), \
400c402
< return acc.protocolHandler.retrieveInternalPageCounter()
---
return int ( acc.protocolHandler.retrieveInternalPageCounter() / 96.7 )
410c412,413
< print "Internal page counter's value is : %s" % pagecounter
---
#print "Internal page counter's value is : %s" % pagecounter
print "%s" % pagecounter