Changeset 3160 for pykota/trunk
- Timestamp:
- 04/05/07 17:53:23 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/snmp.py
r3145 r3160 246 246 def retrieveSNMPValues(self) : 247 247 """Retrieves a printer's internal page counter and status via SNMP.""" 248 errorIndication, errorStatus, errorIndex, varBinds = \ 248 try : 249 errorIndication, errorStatus, errorIndex, varBinds = \ 249 250 cmdgen.CommandGenerator().getCmd(cmdgen.CommunityData("pykota", self.community, 0), \ 250 251 cmdgen.UdpTransportTarget((self.printerHostname, self.port)), \ … … 253 254 tuple([int(i) for i in hrDeviceStatusOID.split('.')]), \ 254 255 tuple([int(i) for i in hrPrinterDetectedErrorStateOID.split('.')])) 256 except : 257 errorIndication = "Unknown SNMP/Network error. Check your wires." 255 258 if errorIndication : 256 259 self.parent.filter.printInfo("SNMP Error : %s" % errorIndication, "error")