[pysnmp-users] Problems encoding IP index instances?
Brought to you by:
elie
From: Camilo C. <jua...@im...> - 2017-04-04 09:49:37
|
Hello all, I am having some problems encoding indices instances to OIDs. Here is the outcome when I try to run the example of the documentation resolving the tcpConnectionState instance. In [2]: tcpConnectionState_instance = ObjectIdentity('TCP-MIB', 'tcpConnectionState', 'ipv4', '195.218.254.105', 41511, 'ipv4', '194.67.1.250', 993) In [3]: tcpConnectionState_instance.resolveWithMib(view.MibViewController(mibBuilder)) In [4]: tcpConnectionState_instance.getOid() ObjectName('1.3.6.1.2.1.6.19.1.7.1.15.49.57.53.46.50.49.56.46.50.53.52.46.49.48.53.41511.1.12.49.57.52.46.54.55.46.49.46.50.53.48.993') This is different from the 1.3.6.1.2.1.6.19.1.7.1.4.195.218.254.105.41511.1.4.194.67.1.250.993 (which is given as a result in the documentation). Other examples are actually encoded fine, so I am not sure if this is something local or a general problem. Can this be caused by something on the MIB file? Resolving the “correct” OID throws the next: In [13]: tcpConnectionState_instance = ObjectIdentity('1.3.6.1.2.1.6.19.1.7.1.4.195.218.254.105.41511.1.4.194.67.1.250.993') In [14]: tcpConnectionState_instance.resolveWithMib(view.MibViewController(mibBuilder)) ObjectIdentity('1.3.6.1.2.1.6.19.1.7.1.4.195.218.254.105.41511.1.4.194.67.1.250.993') In [15]: tcpConnectionState_instance.prettyPrint() "TCP-MIB::tcpConnectionState.'ipv4'.0xc3dafe69.41511.'ipv4'.0xc24301fa.993” Thanks, Juan C. |