Ticket #59 (new enhancement) — at Initial Version

Opened 14 years ago

Last modified 14 years ago

Lots of printers report incorrect status via SNMP

Reported by: jerome Owned by: jerome
Priority: minor Milestone: 1.27 final
Component: pykota Version: development
Keywords: Cc:

Description

I've now received sufficient crash reports about this problem to handle it in PyKota's code. I suppose the printers are at fault, but that's many of them. Here's the traceback :

ERROR:     return snmp.Handler(self, printer, skipinitialwait).retrieveInternalPageCounter()                                                                                               
ERROR:   File "/usr/local/lib/python2.6/dist-packages/pykota/accounters/snmp.py", line 255, in retrieveInternalPageCounter                                                                 
ERROR:     self.waitIdle()                                                                                                                                                                 
ERROR:   File "/usr/local/lib/python2.6/dist-packages/pykota/accounters/snmp.py", line 223, in waitIdle                                                                                    
ERROR:     self.retrieveSNMPValues()                                                                                                                                                       
ERROR:   File "/usr/local/lib/python2.6/dist-packages/pykota/accounters/snmp.py", line 288, in retrieveSNMPValues                                                                          
ERROR:     self.printerStatus = int(varBinds[1][1].prettyPrint())                                                                                                                          
ERROR: ValueError: invalid literal for int() with base 10: ''     
Note: See TracTickets for help on using tickets.