Is 192.168.20.165 a 64-bit machine, by any chance? If so, you may be interested in the attached patch

   $ cd zenossinst
   $ cp patch-from-eric.patch externallibs/pysnmp-3.4.3.patch02
   $ rm -rf build/pysnmp-3.4.3
   $ make pysnmp-install

Some machines appear to be sending out 64-bit IP addresses. The patch accomodates that.

-Eric


Fritz wrote:
WARNING:twsnmp.protocol:Bad response from ('192.168.20.165', 161): '05\x02\x01\x00\x04\x06public\xa2
([EMAIL PROTECTED]'

i keep receiving this error when collecting snmp data. is this a badly setup snmp daemon or is it a parsing bug?

fritz
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users


--- pysnmp/proto/rfc1155.py     2006-08-02 12:28:57.000000000 -0400
+++ pysnmp/proto/rfc1155.py     2006-08-04 15:41:26.000000000 -0400
@@ -90,6 +90,11 @@
         return '%d.%d.%d.%d' % (ord(value[0]), ord(value[1]), \
                                 ord(value[2]), ord(value[3]))
 
+class Bug(IpAddress):
+    sizeConstraint = (4, 8)
+    def _oconv(self, value):
+        return IpAddress._oconv(self, value[:-4])
+    
 class Counter(Unsigned):
     """SNMP Counter object
     """
@@ -146,8 +151,8 @@
 class NetworkAddress(Choice):
     """SMI NetworkAddress
     """
-    choiceNames = [ 'internet' ]
-    choiceComponents = [ IpAddress ]
+    choiceNames = [ 'internet', 'bug' ]
+    choiceComponents = [ IpAddress, Bug ]
 
     # Initialize to Internet address
     initialComponent = choiceComponents[0]
@@ -168,7 +173,7 @@
     """Constructed objects
     """
     choiceNames = [ 'address', 'counter', 'gauge', 'ticks', 'arbitrary' ]
-    choiceComponents = [ NetworkAddress, Counter, Gauge, TimeTicks, Opaque ]
+    choiceComponents = [ NetworkAddress, Counter, Gauge, TimeTicks, Opaque]
 
 class ObjectSyntax(Choice):
     """Syntax of objects in MIB
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to