pysnmp-users Mailing List for SNMP library for Python (Page 7)
Brought to you by:
elie
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(4) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(3) |
Mar
(16) |
Apr
(3) |
May
(6) |
Jun
|
Jul
(7) |
Aug
(12) |
Sep
(4) |
Oct
(2) |
Nov
(11) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
(41) |
Mar
(4) |
Apr
(1) |
May
(6) |
Jun
|
Jul
(8) |
Aug
(5) |
Sep
(8) |
Oct
(10) |
Nov
(3) |
Dec
(1) |
2005 |
Jan
|
Feb
(4) |
Mar
(8) |
Apr
(4) |
May
(10) |
Jun
(5) |
Jul
(10) |
Aug
(6) |
Sep
(6) |
Oct
(39) |
Nov
(20) |
Dec
(21) |
2006 |
Jan
(14) |
Feb
(6) |
Mar
(15) |
Apr
|
May
(5) |
Jun
(16) |
Jul
(16) |
Aug
(18) |
Sep
(35) |
Oct
(12) |
Nov
(3) |
Dec
(3) |
2007 |
Jan
(12) |
Feb
(19) |
Mar
(27) |
Apr
(14) |
May
(32) |
Jun
|
Jul
(35) |
Aug
(11) |
Sep
(11) |
Oct
(6) |
Nov
(13) |
Dec
(4) |
2008 |
Jan
(7) |
Feb
(4) |
Mar
(2) |
Apr
(3) |
May
(3) |
Jun
(5) |
Jul
(5) |
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(19) |
Dec
(7) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
(12) |
Apr
(16) |
May
(16) |
Jun
(23) |
Jul
(7) |
Aug
(2) |
Sep
(17) |
Oct
(20) |
Nov
(20) |
Dec
(5) |
2010 |
Jan
(11) |
Feb
(17) |
Mar
(20) |
Apr
(7) |
May
(6) |
Jun
(14) |
Jul
(5) |
Aug
(10) |
Sep
(23) |
Oct
(16) |
Nov
(32) |
Dec
(21) |
2011 |
Jan
(6) |
Feb
(11) |
Mar
(3) |
Apr
(1) |
May
(4) |
Jun
(1) |
Jul
(4) |
Aug
(8) |
Sep
(20) |
Oct
(9) |
Nov
(29) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(5) |
Mar
(2) |
Apr
(22) |
May
(21) |
Jun
(7) |
Jul
(6) |
Aug
(2) |
Sep
(12) |
Oct
(20) |
Nov
(17) |
Dec
(17) |
2013 |
Jan
(4) |
Feb
(4) |
Mar
(8) |
Apr
(8) |
May
(10) |
Jun
(2) |
Jul
(23) |
Aug
(12) |
Sep
(14) |
Oct
(12) |
Nov
(4) |
Dec
(18) |
2014 |
Jan
(2) |
Feb
(7) |
Mar
(3) |
Apr
(8) |
May
(7) |
Jun
(1) |
Jul
(5) |
Aug
(2) |
Sep
(8) |
Oct
|
Nov
(2) |
Dec
(1) |
2015 |
Jan
(3) |
Feb
(15) |
Mar
(14) |
Apr
(4) |
May
(6) |
Jun
(3) |
Jul
(1) |
Aug
(6) |
Sep
(5) |
Oct
(21) |
Nov
(43) |
Dec
(10) |
2016 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
(4) |
May
(6) |
Jun
(2) |
Jul
(6) |
Aug
(5) |
Sep
(4) |
Oct
|
Nov
(3) |
Dec
(11) |
2017 |
Jan
(1) |
Feb
(8) |
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
(5) |
Aug
|
Sep
(9) |
Oct
(8) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Diego M. <dmu...@gm...> - 2015-11-05 16:03:03
|
Hello everyone, I have been working with NTCIP for only one week, and I need to change an image on a device by sending a SNMP activation message. I have been given the corresponding MIB, and a byte sequence of a SNMP message. I recently understood how the sequence is formed, and its components. I identified the MIB OID to activate the image, and identified the parameters that I need to give to the function. By editing the byte sequence, I can successfully send the message and change the image with python sockets using UDP. I also can successfully get information from the device with PySNMP and the getCmd function. The problem I have is that I try to setCmd the message and I only get a Timeout from the device. This is the code of my setCmd from pysnmp.entity.rfc3413.oneliner import cmdgen from pysnmp.proto.rfc1902 import OctetString device_ip = '192.168.1.222' port = 6000 cmdGen = cmdgen.CommandGenerator() # this variable includes the parameters I need to send to the device a = '\xff\xff\xff\x03\x00\x0a\x2f\xf5\x00\x00\x00\x00' errorIndication, errorStatus, errorIndex, varBinds = cmdGen.setCmd( cmdgen.CommunityData('public'), cmdgen.UdpTransportTarget((device_ip, port)), (cmdgen.MibVariable('NTCIP1203_v03_38', 'dmsActivateMessage', 0), OctetString(a)), lookupNames=True, lookupValues=True ) I don't know which part is wrong, I would appreciate any help. Regards, Diego |
From: Patrick O. <pa...@og...> - 2015-10-28 21:47:32
|
Thanks! Do you have any estimate as to when 4.3.1 will be on pypi and able to be installed by pip? > On 28 okt. 2015, at 21:37, Ilya Etingof <il...@gl...> wrote: > > Hi Patrick, > > That issue has been fixed in 4.3.1. Please try it out and let me know in case of further issues: > > tarball download > >> On 28 Oct 2015, at 20:34, Patrick Ogenstad <pa...@og...> wrote: >> >> Hello, >> >> I ran into a problem after upgrading to pysnmp 4.3.0. >> >> Just running snmpwalk it looks like this: >> >> $ snmpwalk -v2c -c public 172.29.50.5 1.3.6.1.4.1.9.9.46.1.4.2 >> SNMPv2-SMI::enterprises.9.9.46.1.4.2 = No Such Object available on this agent at this OID >> >> The problem seems to be when you run a nextCmd against an object which currently doesn't exist. >> >> The code below works with pysnmp 4.2.5 >> >> from pysnmp.entity.rfc3413.oneliner import cmdgen >> cmdGen = cmdgen.CommandGenerator() >> >> errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.nextCmd( >> cmdgen.CommunityData('public'), >> cmdgen.UdpTransportTarget(('172.29.50.5', 161)), >> '1.3.6.1.4.1.9.9.46.1.4.2', >> lookupMib=False, >> ) >> >> if errorIndication: >> print(errorIndication) >> else: >> if errorStatus: >> print('%s at %s' % ( >> errorStatus.prettyPrint(), >> errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' >> ) >> ) >> else: >> for varBindTableRow in varBindTable: >> for name, val in varBindTableRow: >> print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) >> >> As the object doesn't exist on the device nothing is printed out. However running the same code with 4.3.0 gives this error: >> >> Traceback (most recent call last): >> File "<stdin>", line 5, in <module> >> File "/Users/patrick/.virtualenvs/prod/lib/python2.7/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 222, in nextCmd >> return errorIndication, errorStatus, errorIndex, varBindTable >> UnboundLocalError: local variable 'errorIndication' referenced before assignment >> >> Is this something which can be solved in an easy way? >> >> Best regards >> Patrick |
From: Ilya E. <il...@gl...> - 2015-10-28 21:25:23
|
I’m looking to push it up there by the coming weekend, but not quite sure I get enough time for regression. I’ll send a note to this list as it’s done. > On 28 Oct 2015, at 22:19, Patrick Ogenstad <pa...@og...> wrote: > > Thanks! > > Do you have any estimate as to when 4.3.1 will be on pypi and able to be installed by pip? > > On 28 okt. 2015, at 21:37, Ilya Etingof <il...@gl... <mailto:il...@gl...>> wrote: > >> Hi Patrick, >> >> That issue has been fixed in 4.3.1. Please try it out and let me know in case of further issues: >> >> tarball download <http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar> >>> On 28 Oct 2015, at 20:34, Patrick Ogenstad <pa...@og... <mailto:pa...@og...>> wrote: >>> >>> Hello, >>> >>> I ran into a problem after upgrading to pysnmp 4.3.0. >>> >>> Just running snmpwalk it looks like this: >>> >>> $ snmpwalk -v2c -c public 172.29.50.5 1.3.6.1.4.1.9.9.46.1.4.2 >>> SNMPv2-SMI::enterprises.9.9.46.1.4.2 = No Such Object available on this agent at this OID >>> >>> The problem seems to be when you run a nextCmd against an object which currently doesn't exist. >>> >>> The code below works with pysnmp 4.2.5 >>> >>> from pysnmp.entity.rfc3413.oneliner import cmdgen >>> cmdGen = cmdgen.CommandGenerator() >>> >>> errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.nextCmd( >>> cmdgen.CommunityData('public'), >>> cmdgen.UdpTransportTarget(('172.29.50.5', 161)), >>> '1.3.6.1.4.1.9.9.46.1.4.2', >>> lookupMib=False, >>> ) >>> >>> if errorIndication: >>> print(errorIndication) >>> else: >>> if errorStatus: >>> print('%s at %s' % ( >>> errorStatus.prettyPrint(), >>> errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' >>> ) >>> ) >>> else: >>> for varBindTableRow in varBindTable: >>> for name, val in varBindTableRow: >>> print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) >>> >>> As the object doesn't exist on the device nothing is printed out. However running the same code with 4.3.0 gives this error: >>> >>> Traceback (most recent call last): >>> File "<stdin>", line 5, in <module> >>> File "/Users/patrick/.virtualenvs/prod/lib/python2.7/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 222, in nextCmd >>> return errorIndication, errorStatus, errorIndex, varBindTable >>> UnboundLocalError: local variable 'errorIndication' referenced before assignment >>> >>> Is this something which can be solved in an easy way? >>> >>> Best regards >>> Patrick |
From: Ilya E. <il...@gl...> - 2015-10-28 20:37:22
|
Hi Patrick, That issue has been fixed in 4.3.1. Please try it out and let me know in case of further issues: tarball download <http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar> > On 28 Oct 2015, at 20:34, Patrick Ogenstad <pa...@og...> wrote: > > Hello, > > I ran into a problem after upgrading to pysnmp 4.3.0. > > Just running snmpwalk it looks like this: > > $ snmpwalk -v2c -c public 172.29.50.5 1.3.6.1.4.1.9.9.46.1.4.2 > SNMPv2-SMI::enterprises.9.9.46.1.4.2 = No Such Object available on this agent at this OID > > The problem seems to be when you run a nextCmd against an object which currently doesn't exist. > > The code below works with pysnmp 4.2.5 > > from pysnmp.entity.rfc3413.oneliner import cmdgen > cmdGen = cmdgen.CommandGenerator() > > errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.nextCmd( > cmdgen.CommunityData('public'), > cmdgen.UdpTransportTarget(('172.29.50.5', 161)), > '1.3.6.1.4.1.9.9.46.1.4.2', > lookupMib=False, > ) > > if errorIndication: > print(errorIndication) > else: > if errorStatus: > print('%s at %s' % ( > errorStatus.prettyPrint(), > errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' > ) > ) > else: > for varBindTableRow in varBindTable: > for name, val in varBindTableRow: > print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) > > As the object doesn't exist on the device nothing is printed out. However running the same code with 4.3.0 gives this error: > > Traceback (most recent call last): > File "<stdin>", line 5, in <module> > File "/Users/patrick/.virtualenvs/prod/lib/python2.7/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 222, in nextCmd > return errorIndication, errorStatus, errorIndex, varBindTable > UnboundLocalError: local variable 'errorIndication' referenced before assignment > > Is this something which can be solved in an easy way? > > Best regards > Patrick |
From: Patrick O. <pa...@og...> - 2015-10-28 20:04:58
|
Hello, I ran into a problem after upgrading to pysnmp 4.3.0. Just running snmpwalk it looks like this: $ snmpwalk -v2c -c public 172.29.50.5 1.3.6.1.4.1.9.9.46.1.4.2 SNMPv2-SMI::enterprises.9.9.46.1.4.2 = No Such Object available on this agent at this OID The problem seems to be when you run a nextCmd against an object which currently doesn't exist. The code below works with pysnmp 4.2.5 from pysnmp.entity.rfc3413.oneliner import cmdgen cmdGen = cmdgen.CommandGenerator() errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.nextCmd( cmdgen.CommunityData('public'), cmdgen.UdpTransportTarget(('172.29.50.5', 161)), '1.3.6.1.4.1.9.9.46.1.4.2', lookupMib=False, ) if errorIndication: print(errorIndication) else: if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' ) ) else: for varBindTableRow in varBindTable: for name, val in varBindTableRow: print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) As the object doesn't exist on the device nothing is printed out. However running the same code with 4.3.0 gives this error: Traceback (most recent call last): File "<stdin>", line 5, in <module> File "/Users/patrick/.virtualenvs/prod/lib/python2.7/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 222, in nextCmd return errorIndication, errorStatus, errorIndex, varBindTable UnboundLocalError: local variable 'errorIndication' referenced before assignment Is this something which can be solved in an easy way? Best regards Patrick |
From: Patrick O. <pa...@og...> - 2015-10-28 19:47:31
|
Hello, I ran into a problem after upgrading to pysnmp 4.3.0. Just running snmpwalk it looks like this: $ snmpwalk -v2c -c public 172.29.50.5 1.3.6.1.4.1.9.9.46.1.4.2 SNMPv2-SMI::enterprises.9.9.46.1.4.2 = No Such Object available on this agent at this OID The problem seems to be when you run a nextCmd against an object which currently doesn't exist. The code below works with pysnmp 4.2.5 from pysnmp.entity.rfc3413.oneliner import cmdgen cmdGen = cmdgen.CommandGenerator() errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.nextCmd( cmdgen.CommunityData('public'), cmdgen.UdpTransportTarget(('172.29.50.5', 161)), '1.3.6.1.4.1.9.9.46.1.4.2', lookupMib=False, ) if errorIndication: print(errorIndication) else: if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' ) ) else: for varBindTableRow in varBindTable: for name, val in varBindTableRow: print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) As the object doesn't exist on the device nothing is printed out. However running the same code with 4.3.0 gives this error: Traceback (most recent call last): File "<stdin>", line 5, in <module> File "/Users/patrick/.virtualenvs/prod/lib/python2.7/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 222, in nextCmd return errorIndication, errorStatus, errorIndex, varBindTable UnboundLocalError: local variable 'errorIndication' referenced before assignment Is this something which can be solved in an easy way? Best regards Patrick |
From: Kim,Young-Kyun <mar...@li...> - 2015-10-26 02:40:33
|
Hi, Ilya! Thanks for your patch! My test code and app are works well without error. Again, thanks for your patch! 2015-10-26 오전 3:23에 Ilya Etingof 이(가) 쓴 글: > Hi Kim, > > Thanks for your report and sorry for delay! > > That was a problem with missing OID tree root node “2”. That is fixed > in current CVS tree: > > tarball download > <http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar> > > Please let me know in case of further issues. > > -ilya > >> On 15 Oct 2015, at 03:23, Kim,Young-Kyun <mar...@li... >> <mailto:mar...@li...>> wrote: >> >> Hi, Thanks for your reply. >> >> Below is the log message to enable pysnmp debugging. >> >> * Test Code : using pysnmp 2.3.1(CVS, 2015/10/15) >> -------------------------------------- >> from pysnmp.entity.rfc3413.oneliner import cmdgen >> from pysnmp import debug >> >> def snmpnext(ipaddr, oid): >> community_data = cmdgen.CommunityData('my-agent', 'public', 0) >> udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) >> return >> cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >> >> def test(): >> debug.setLogger(debug.Debug("all")) >> ipaddr2 = ("192.168.123.179", 161) >> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) >> >> if __name__ == "__main__": >> test() >> -------------------------------------- >> >> * log message(very long) >> -------------------------------------- >> 2015-10-15 10:16:48,733 pysnmp: running pysnmp version 4.3.1 >> ... >> >> >> 2015-10-15 10:16:48,994 pysnmp: resolving 1.3.6.1.2.1.1.2.0 as OID or >> label >> 2015-10-15 10:16:48,994 pysnmp: getNodeNameByOid: resolved >> :1.3.6.1.2.1.1.2.0 -> ('iso', 'org', 'dod', 'internet', 'mgmt', >> 'mib-2', 'system', 'sysObjectID').0 >> 2015-10-15 10:16:48,994 pysnmp: resolved >> (ObjectName('1.3.6.1.2.1.1.2.0'),) into prefix >> ObjectName('1.3.6.1.2.1.1.2') and suffix ObjectName('0') >> 2015-10-15 10:16:48,994 pysnmp: getNodeNameByOid: resolved >> :1.3.6.1.2.1.1.2 -> ('iso', 'org', 'dod', 'internet', 'mgmt', >> 'mib-2', 'system', 'sysObjectID').() >> 2015-10-15 10:16:48,994 pysnmp: resolved prefix >> ObjectName('1.3.6.1.2.1.1.2') into MIB node MibScalar((1, 3, 6, 1, 2, >> 1, 1, 2), ObjectIdentifier('<no value>')) >> 2015-10-15 10:16:48,994 pysnmp: resolved indices are (ObjectName('0'),) >> 2015-10-15 10:16:48,994 pysnmp: resolving >> 2.3837204320.808464432.808464432.808464432.808464432.808202342.808464432 >> as OID or label >> 2-2= >> Traceback (most recent call last): >> File "test2.py", line 18, in <module> >> test() >> File "test2.py", line 15, in test >> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) >> File "test2.py", line 10, in snmpnext >> return >> cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >> File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", >> line 228, in nextCmd >> **kwargs): >> File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", >> line 348, in nextCmd >> snmpEngine.transportDispatcher.runDispatcher() >> File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", >> line 41, in runDispatcher >> raise PySnmpError('poll error: %s' % >> ';'.join(format_exception(*exc_info()))) >> pysnmp.error.PySnmpError: poll error: Traceback (most recent call last): >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", >> line 37, in runDispatcher >> use_poll=True, map=self.__sockMap, count=1) >> ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop >> poll_fun(timeout, map) >> ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll >> read(obj) >> ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read >> obj.handle_error() >> ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read >> obj.handle_read_event() >> ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in >> handle_read_event >> self.handle_read() >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", >> line 145, in handle_read >> self._cbFun(self, transportAddress, incomingMessage) >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line >> 52, in _cbFun >> self, transportDomain, transportAddress, incomingMessage >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", line >> 145, in __receiveMessageCbFun >> self, transportDomain, transportAddress, wholeMsg >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", line >> 529, in receiveMessage >> cachedParams['cbCtx'] >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", >> line 174, in processResponsePdu >> cbCtx) >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", >> line 407, in processResponseVarBinds >> cbCtx): >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", >> line 362, in __cbFun >> [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, >> lookupMib) for varBindTableRow in varBindTable ], >> ; File >> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", line >> 37, in unmakeVarBinds >> varBinds = [ ObjectType(ObjectIdentity(x[0]), >> x[1]).resolveWithMib(mibViewController) for x in varBinds ] >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", >> line 728, in resolveWithMib >> self.__args[1] = >> ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", >> line 361, in resolveWithMib >> self.__oid >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 200, in getNodeNameByOid >> nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 180, in __getOidLabel >> nodeName[:-1], oidToLabelIdx, labelToOidIdx >> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >> line 183, in __getOidLabel >> resLabel = label + tuple([ str(x) for x in suffix ]) >> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", >> line 497, in __add__ >> def __add__(self, other): return self.clone(self._value + other) >> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", >> line 117, in clone >> return self.__class__(value, tagSet, subtypeSpec) >> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", >> line 74, in __init__ >> value = self.prettyIn(value) >> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", >> line 559, in prettyIn >> 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) >> ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName >> >> >> >> >> 2015-10-15 오전 4:29에 Ilya Etingof 이(가) 쓴 글: >>> Hi Kim, >>> >>> That’s a curious error. I can’t easily reproduce it because it is >>> triggered by some specific response from your printer (#2). >>> >>> Could you enable pysnmp debugging, rerun your test script against >>> the bad IP/OID and send me the output? >>> >>> Thanks, >>> ilya >>> >>> >>>> On 12 Oct 2015, at 10:41, Kim,Young-Kyun <mar...@li...> >>>> wrote: >>>> >>>> Hi! >>>> >>>> Below is my test code. >>>> When this code run with pysnmp 4.3.1(CVS version, 2015/10/12), >>>> "PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName" >>>> exception raised in some device. >>>> This code works well with pysnmp 4.2.5 and 4.3.0. >>>> >>>> Test Environment: >>>> OS : Windows 8.1 Enterprise 64bit >>>> Python : CPython 2.7.10 32bit >>>> >>>> What's wrong? >>>> >>>> -------------------------------------------- >>>> from pysnmp.entity.rfc3413.oneliner import cmdgen >>>> >>>> def snmpnext(ipaddr, oid): >>>> community_data = cmdgen.CommunityData('my-agent', 'public', 0) >>>> udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) >>>> return >>>> cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >>>> >>>> def test(): >>>> ipaddr1 = ("192.168.123.178", 161) >>>> print "1-1=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) >>>> print "1-2=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 1, 1)) >>>> ipaddr2 = ("192.168.123.179", 161) >>>> print "2-1=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) >>>> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) >>>> # raise error with pysnmp 4.3.1 >>>> >>>> if __name__ == "__main__": >>>> test() >>>> -------------------------------------------- >>>> >>>> Below is detail log message. >>>> -------------------------------------------- >>>> 1-1= (None, Integer('noError', NamedValues(('noError', 0), >>>> ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), >>>> ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', >>>> 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), >>>> ('inconsistentValue', 12), ('resourceUnavailable', 13), >>>> ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', >>>> 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, >>>> subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), >>>> ValueRangeConstraint(0, Integer(2147483647)))), >>>> [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.1')), >>>> OctetString(''))], >>>> [ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.2')), >>>> OctetString(hexValue='00237d8b5d7a'))]]) >>>> 1-2= (None, Integer('noError', NamedValues(('noError', 0), >>>> ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), >>>> ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', >>>> 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), >>>> ('inconsistentValue', 12), ('resourceUnavailable', 13), >>>> ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', >>>> 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, >>>> subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), >>>> ValueRangeConstraint(0, Integer(2147483647)))), >>>> [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.1.1.0')), >>>> DisplayString('HP ETHERNET MULTI-ENVIRONMENT,ROM >>>> none,JETDIRECT,JD146,EEPROM V.38.68,CIDATE 09/18/2008', >>>> subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), >>>> ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), >>>> ValueSizeConstraint(0, 255))))]]) >>>> 2-1= (None, Integer('noError', NamedValues(('noError', 0), >>>> ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), >>>> ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', >>>> 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), >>>> ('inconsistentValue', 12), ('resourceUnavailable', 13), >>>> ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', >>>> 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, >>>> subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), >>>> ValueRangeConstraint(0, Integer(2147483647)))), >>>> [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.3')), >>>> OctetString(hexValue='d89d67eaf3eb'))]]) >>>> 2-2= >>>> Traceback (most recent call last): >>>> File "test.py", line 20, in <module> >>>> test() >>>> File "test.py", line 17, in test >>>> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) >>>> File "test.py", line 9, in snmpnext >>>> return >>>> cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >>>> File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", >>>> line 228, in nextCmd >>>> **kwargs): >>>> File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", >>>> line 348, in nextCmd >>>> snmpEngine.transportDispatcher.runDispatcher() >>>> File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", >>>> line 41, in runDispatcher >>>> raise PySnmpError('poll error: %s' % >>>> ';'.join(format_exception(*exc_info()))) >>>> pysnmp.error.PySnmpError: poll error: Traceback (most recent call >>>> last): >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", >>>> line 37, in runDispatcher >>>> use_poll=True, map=self.__sockMap, count=1) >>>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop >>>> poll_fun(timeout, map) >>>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll >>>> read(obj) >>>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read >>>> obj.handle_error() >>>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read >>>> obj.handle_read_event() >>>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in >>>> handle_read_event >>>> self.handle_read() >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", >>>> line 145, in handle_read >>>> self._cbFun(self, transportAddress, incomingMessage) >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line >>>> 52, in _cbFun >>>> self, transportDomain, transportAddress, incomingMessage >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", >>>> line 145, in __receiveMessageCbFun >>>> self, transportDomain, transportAddress, wholeMsg >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", >>>> line 529, in receiveMessage >>>> cachedParams['cbCtx'] >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", >>>> line 174, in processResponsePdu >>>> cbCtx) >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", >>>> line 407, in processResponseVarBinds >>>> cbCtx): >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", >>>> line 362, in __cbFun >>>> [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, >>>> lookupMib) for varBindTableRow in varBindTable ], >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", >>>> line 37, in unmakeVarBinds >>>> varBinds = [ ObjectType(ObjectIdentity(x[0]), >>>> x[1]).resolveWithMib(mibViewController) for x in varBinds ] >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line >>>> 728, in resolveWithMib >>>> self.__args[1] = >>>> ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) >>>> ; File >>>> "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line >>>> 361, in resolveWithMib >>>> self.__oid >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 200, in getNodeNameByOid >>>> nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 180, in __getOidLabel >>>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", >>>> line 183, in __getOidLabel >>>> resLabel = label + tuple([ str(x) for x in suffix ]) >>>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", >>>> line 497, in __add__ >>>> def __add__(self, other): return self.clone(self._value + other) >>>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", >>>> line 117, in clone >>>> return self.__class__(value, tagSet, subtypeSpec) >>>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", >>>> line 74, in __init__ >>>> value = self.prettyIn(value) >>>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", >>>> line 559, in prettyIn >>>> 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) >>>> ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName >>>> >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> pysnmp-users mailing list >> pys...@li... >> <mailto:pys...@li...> >> https://lists.sourceforge.net/lists/listinfo/pysnmp-users > |
From: Ilya E. <il...@gl...> - 2015-10-25 18:23:09
|
Hi Kim, Thanks for your report and sorry for delay! That was a problem with missing OID tree root node “2”. That is fixed in current CVS tree: tarball download <http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar> Please let me know in case of further issues. -ilya > On 15 Oct 2015, at 03:23, Kim,Young-Kyun <mar...@li...> wrote: > > Hi, Thanks for your reply. > > Below is the log message to enable pysnmp debugging. > > * Test Code : using pysnmp 2.3.1(CVS, 2015/10/15) > -------------------------------------- > from pysnmp.entity.rfc3413.oneliner import cmdgen > from pysnmp import debug > > def snmpnext(ipaddr, oid): > community_data = cmdgen.CommunityData('my-agent', 'public', 0) > udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) > return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) > > def test(): > debug.setLogger(debug.Debug("all")) > ipaddr2 = ("192.168.123.179", 161) > print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) > > if __name__ == "__main__": > test() > -------------------------------------- > > * log message(very long) > -------------------------------------- > 2015-10-15 10:16:48,733 pysnmp: running pysnmp version 4.3.1 > ... > > > 2015-10-15 10:16:48,994 pysnmp: resolving 1.3.6.1.2.1.1.2.0 as OID or label > 2015-10-15 10:16:48,994 pysnmp: getNodeNameByOid: resolved :1.3.6.1.2.1.1.2.0 -> ('iso', 'org', 'dod', 'internet', 'mgmt', 'mib-2', 'system', 'sysObjectID').0 > 2015-10-15 10:16:48,994 pysnmp: resolved (ObjectName('1.3.6.1.2.1.1.2.0'),) into prefix ObjectName('1.3.6.1.2.1.1.2') and suffix ObjectName('0') > 2015-10-15 10:16:48,994 pysnmp: getNodeNameByOid: resolved :1.3.6.1.2.1.1.2 -> ('iso', 'org', 'dod', 'internet', 'mgmt', 'mib-2', 'system', 'sysObjectID').() > 2015-10-15 10:16:48,994 pysnmp: resolved prefix ObjectName('1.3.6.1.2.1.1.2') into MIB node MibScalar((1, 3, 6, 1, 2, 1, 1, 2), ObjectIdentifier('<no value>')) > 2015-10-15 10:16:48,994 pysnmp: resolved indices are (ObjectName('0'),) > 2015-10-15 10:16:48,994 pysnmp: resolving 2.3837204320.808464432.808464432.808464432.808464432.808202342.808464432 as OID or label > 2-2= > Traceback (most recent call last): > File "test2.py", line 18, in <module> > test() > File "test2.py", line 15, in test > print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) > File "test2.py", line 10, in snmpnext > return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) > File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", line 228, in nextCmd > **kwargs): > File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", line 348, in nextCmd > snmpEngine.transportDispatcher.runDispatcher() > File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 41, in runDispatcher > raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info()))) > pysnmp.error.PySnmpError: poll error: Traceback (most recent call last): > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 37, in runDispatcher > use_poll=True, map=self.__sockMap, count=1) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop > poll_fun(timeout, map) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll > read(obj) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read > obj.handle_error() > ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read > obj.handle_read_event() > ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in handle_read_event > self.handle_read() > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 145, in handle_read > self._cbFun(self, transportAddress, incomingMessage) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line 52, in _cbFun > self, transportDomain, transportAddress, incomingMessage > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", line 145, in __receiveMessageCbFun > self, transportDomain, transportAddress, wholeMsg > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", line 529, in receiveMessage > cachedParams['cbCtx'] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 174, in processResponsePdu > cbCtx) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 407, in processResponseVarBinds > cbCtx): > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", line 362, in __cbFun > [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, lookupMib) for varBindTableRow in varBindTable ], > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", line 37, in unmakeVarBinds > varBinds = [ ObjectType(ObjectIdentity(x[0]), x[1]).resolveWithMib(mibViewController) for x in varBinds ] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 728, in resolveWithMib > self.__args[1] = ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 361, in resolveWithMib > self.__oid > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 200, in getNodeNameByOid > nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 183, in __getOidLabel > resLabel = label + tuple([ str(x) for x in suffix ]) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 497, in __add__ > def __add__(self, other): return self.clone(self._value + other) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 117, in clone > return self.__class__(value, tagSet, subtypeSpec) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 74, in __init__ > value = self.prettyIn(value) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 559, in prettyIn > 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) > ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName > > > > > 2015-10-15 오전 4:29에 Ilya Etingof 이(가) 쓴 글: >> Hi Kim, >> >> That’s a curious error. I can’t easily reproduce it because it is triggered by some specific response from your printer (#2). >> >> Could you enable pysnmp debugging, rerun your test script against the bad IP/OID and send me the output? >> >> Thanks, >> ilya >> >> >>> On 12 Oct 2015, at 10:41, Kim,Young-Kyun < <mailto:mar...@li...>mar...@li... <mailto:mar...@li...>> wrote: >>> >>> Hi! >>> >>> Below is my test code. >>> When this code run with pysnmp 4.3.1(CVS version, 2015/10/12), >>> "PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName" exception raised in some device. >>> This code works well with pysnmp 4.2.5 and 4.3.0. >>> >>> Test Environment: >>> OS : Windows 8.1 Enterprise 64bit >>> Python : CPython 2.7.10 32bit >>> >>> What's wrong? >>> >>> -------------------------------------------- >>> from pysnmp.entity.rfc3413.oneliner import cmdgen >>> >>> def snmpnext(ipaddr, oid): >>> community_data = cmdgen.CommunityData('my-agent', 'public', 0) >>> udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) >>> return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >>> >>> def test(): >>> ipaddr1 = ("192.168.123.178", 161) >>> print "1-1=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) >>> print "1-2=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 1, 1)) >>> ipaddr2 = ("192.168.123.179", 161) >>> print "2-1=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) >>> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) # raise error with pysnmp 4.3.1 >>> >>> if __name__ == "__main__": >>> test() >>> -------------------------------------------- >>> >>> Below is detail log message. >>> -------------------------------------------- >>> 1-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.1')), OctetString(''))], [ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.2')), OctetString(hexValue='00237d8b5d7a'))]]) >>> 1-2= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.1.1.0')), DisplayString('HP ETHERNET MULTI-ENVIRONMENT,ROM none,JETDIRECT,JD146,EEPROM V.38.68,CIDATE 09/18/2008', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(0, 255))))]]) >>> 2-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.3')), OctetString(hexValue='d89d67eaf3eb'))]]) >>> 2-2= >>> Traceback (most recent call last): >>> File "test.py", line 20, in <module> >>> test() >>> File "test.py", line 17, in test >>> print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) >>> File "test.py", line 9, in snmpnext >>> return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) >>> File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", line 228, in nextCmd >>> **kwargs): >>> File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", line 348, in nextCmd >>> snmpEngine.transportDispatcher.runDispatcher() >>> File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 41, in runDispatcher >>> raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info()))) >>> pysnmp.error.PySnmpError: poll error: Traceback (most recent call last): >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 37, in runDispatcher >>> use_poll=True, map=self.__sockMap, count=1) >>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop >>> poll_fun(timeout, map) >>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll >>> read(obj) >>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read >>> obj.handle_error() >>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read >>> obj.handle_read_event() >>> ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in handle_read_event >>> self.handle_read() >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 145, in handle_read >>> self._cbFun(self, transportAddress, incomingMessage) >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line 52, in _cbFun >>> self, transportDomain, transportAddress, incomingMessage >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", line 145, in __receiveMessageCbFun >>> self, transportDomain, transportAddress, wholeMsg >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", line 529, in receiveMessage >>> cachedParams['cbCtx'] >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 174, in processResponsePdu >>> cbCtx) >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 407, in processResponseVarBinds >>> cbCtx): >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", line 362, in __cbFun >>> [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, lookupMib) for varBindTableRow in varBindTable ], >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", line 37, in unmakeVarBinds >>> varBinds = [ ObjectType(ObjectIdentity(x[0]), x[1]).resolveWithMib(mibViewController) for x in varBinds ] >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 728, in resolveWithMib >>> self.__args[1] = ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 361, in resolveWithMib >>> self.__oid >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 200, in getNodeNameByOid >>> nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel >>> nodeName[:-1], oidToLabelIdx, labelToOidIdx >>> ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 183, in __getOidLabel >>> resLabel = label + tuple([ str(x) for x in suffix ]) >>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 497, in __add__ >>> def __add__(self, other): return self.clone(self._value + other) >>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 117, in clone >>> return self.__class__(value, tagSet, subtypeSpec) >>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 74, in __init__ >>> value = self.prettyIn(value) >>> ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 559, in prettyIn >>> 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) >>> ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName >>> >> > > ------------------------------------------------------------------------------ > _______________________________________________ > pysnmp-users mailing list > pys...@li... > https://lists.sourceforge.net/lists/listinfo/pysnmp-users |
From: Kim,Young-Kyun <mar...@li...> - 2015-10-15 01:23:59
|
Hi, Thanks for your reply. Below is the log message to enable pysnmp debugging. * Test Code : using pysnmp 2.3.1(CVS, 2015/10/15) -------------------------------------- from pysnmp.entity.rfc3413.oneliner import cmdgen from pysnmp import debug def snmpnext(ipaddr, oid): community_data = cmdgen.CommunityData('my-agent', 'public', 0) udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) def test(): debug.setLogger(debug.Debug("all")) ipaddr2 = ("192.168.123.179", 161) print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) if __name__ == "__main__": test() -------------------------------------- * log message(very long) -------------------------------------- 2015-10-15 10:16:48,733 pysnmp: running pysnmp version 4.3.1 2015-10-15 10:16:48,734 pysnmp: debug category 'all' enabled 2015-10-15 10:16:48,734 pysnmp: trying ZipMibSource('pysnmp_mibs') 2015-10-15 10:16:48,734 pysnmp: trying ZipMibSource('pysnmp.smi.mibs.instances') 2015-10-15 10:16:48,734 pysnmp: trying ZipMibSource('pysnmp.smi.mibs') 2015-10-15 10:16:48,736 pysnmp: trying DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,736 pysnmp: trying DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs\\instances') 2015-10-15 10:16:48,736 pysnmp: trying DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp_mibs') 2015-10-15 10:16:48,737 pysnmp: setMibSources: new MIB sources [DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs'), DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs\\instances'), DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp_mibs')] 2015-10-15 10:16:48,737 pysnmp: loadModule: trying SNMPv2-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,737 pysnmp: file SNMPv2-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,737 pysnmp: file SNMPv2-MIB.py mtime 1442730404 2015-10-15 10:16:48,737 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-MIB.pyc 2015-10-15 10:16:48,737 pysnmp: loadModule: trying ASN1 at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,739 pysnmp: file ASN1.pyc mtime 1321759810 2015-10-15 10:16:48,739 pysnmp: file ASN1.py mtime 1321759810 2015-10-15 10:16:48,739 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1.pyc 2015-10-15 10:16:48,739 pysnmp: exportSymbols: symbol ASN1::Integer 2015-10-15 10:16:48,739 pysnmp: exportSymbols: symbol ASN1::ObjectIdentifier 2015-10-15 10:16:48,739 pysnmp: exportSymbols: symbol ASN1::OctetString 2015-10-15 10:16:48,739 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1.pyc 2015-10-15 10:16:48,739 pysnmp: loadModule: trying ASN1-ENUMERATION at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,740 pysnmp: file ASN1-ENUMERATION.pyc mtime 1321759810 2015-10-15 10:16:48,740 pysnmp: file ASN1-ENUMERATION.py mtime 1321759810 2015-10-15 10:16:48,740 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1-ENUMERATION.pyc 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-ENUMERATION::NamedValues 2015-10-15 10:16:48,740 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1-ENUMERATION.pyc 2015-10-15 10:16:48,740 pysnmp: loadModule: trying ASN1-REFINEMENT at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,740 pysnmp: file ASN1-REFINEMENT.pyc mtime 1321759810 2015-10-15 10:16:48,740 pysnmp: file ASN1-REFINEMENT.py mtime 1321759810 2015-10-15 10:16:48,740 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1-REFINEMENT.pyc 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-REFINEMENT::ConstraintsUnion 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-REFINEMENT::SingleValueConstraint 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-REFINEMENT::ConstraintsIntersection 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-REFINEMENT::ValueSizeConstraint 2015-10-15 10:16:48,740 pysnmp: exportSymbols: symbol ASN1-REFINEMENT::ValueRangeConstraint 2015-10-15 10:16:48,740 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\ASN1-REFINEMENT.pyc 2015-10-15 10:16:48,740 pysnmp: loadModule: trying SNMPv2-CONF at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,740 pysnmp: file SNMPv2-CONF.pyc mtime 1442730404 2015-10-15 10:16:48,740 pysnmp: file SNMPv2-CONF.py mtime 1442730404 2015-10-15 10:16:48,742 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-CONF.pyc 2015-10-15 10:16:48,742 pysnmp: loadModule: trying SNMPv2-SMI at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,742 pysnmp: file SNMPv2-SMI.pyc mtime 1442730404 2015-10-15 10:16:48,742 pysnmp: file SNMPv2-SMI.py mtime 1442730404 2015-10-15 10:16:48,743 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-SMI.pyc 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::mib-2 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibScalar 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::Opaque 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::TimeTicks 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibNode 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::private 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::ModuleIdentity 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::snmpProxys 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::snmpModules 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::Bits 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibTableColumn 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::IpAddress 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibTable 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::NotificationType 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::internet 2015-10-15 10:16:48,743 pysnmp: exportSymbols: symbol SNMPv2-SMI::iso 2015-10-15 10:16:48,744 pysnmp: exportSymbols: symbol SNMPv2-SMI::snmpDomains 2015-10-15 10:16:48,744 pysnmp: exportSymbols: symbol SNMPv2-SMI::snmpV2 2015-10-15 10:16:48,744 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibTableRow 2015-10-15 10:16:48,744 pysnmp: exportSymbols: symbol SNMPv2-SMI::mgmt 2015-10-15 10:16:48,744 pysnmp: exportSymbols: symbol SNMPv2-SMI::Counter64 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::Unsigned32 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::enterprises 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibScalarInstance 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::Gauge32 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::zeroDotZero 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibTree 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::org 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::Integer32 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::ExtUTCTime 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::transmission 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::dod 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::MibIdentifier 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::experimental 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::directory 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::security 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::ObjectIdentity 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-SMI::Counter32 2015-10-15 10:16:48,746 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-SMI.pyc 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-CONF::AgentCapabilities 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-CONF::ObjectGroup 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-CONF::NotificationGroup 2015-10-15 10:16:48,746 pysnmp: exportSymbols: symbol SNMPv2-CONF::ModuleCompliance 2015-10-15 10:16:48,746 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-CONF.pyc 2015-10-15 10:16:48,746 pysnmp: loadModule: trying SNMPv2-TC at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,747 pysnmp: file SNMPv2-TC.pyc mtime 1443456168 2015-10-15 10:16:48,747 pysnmp: file SNMPv2-TC.py mtime 1443456168 2015-10-15 10:16:48,747 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-TC.pyc 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::TimeInterval 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::MacAddress 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::VariablePointer 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::RowPointer 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::AutonomousType 2015-10-15 10:16:48,747 pysnmp: exportSymbols: symbol SNMPv2-TC::DateAndTime 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TruthValue 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TimeStamp 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TDomain 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TextualConvention 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TestAndIncr 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::StorageType 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::RowStatus 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::DisplayString 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::PhysAddress 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::TAddress 2015-10-15 10:16:48,749 pysnmp: exportSymbols: symbol SNMPv2-TC::InstancePointer 2015-10-15 10:16:48,749 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-TC.pyc 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInBadCommunityUses 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpMIBConformance 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutNoSuchNames 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpMIB 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInReadOnlys 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpBasicNotificationsGroup 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInTotalSetVars 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInTraps 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutGenErrs 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInGetResponses 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutGetRequests 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORDescr 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpTrapEnterprise 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpNotificationGroup 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORID 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::coldStart 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutPkts 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysOREntry 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysName 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORLastChange 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutTraps 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpTraps 2015-10-15 10:16:48,750 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmp 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::system 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpCommunityGroup 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::authenticationFailure 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpTrap 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInNoSuchNames 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInPkts 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInBadVersions 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInBadCommunityNames 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpMIBObjects 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpSet 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInASNParseErrs 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpMIBGroups 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORIndex 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORUpTime 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInGetNexts 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysObjectID 2015-10-15 10:16:48,752 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInGetRequests 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutGetResponses 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpSilentDrops 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpGroup 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInGenErrs 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::warmStart 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpObsoleteGroup 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpEnableAuthenTraps 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpSetGroup 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysUpTime 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInSetRequests 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpBasicCompliance 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInTotalReqVars 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysContact 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpTrapOID 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpSetSerialNo 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpMIBCompliances 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpBasicComplianceRev2 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysORTable 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpWarmStartNotificationGroup 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutBadValues 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutSetRequests 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysLocation 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInBadValues 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysServices 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpInTooBigs 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::systemGroup 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutGetNexts 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpProxyDrops 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::snmpOutTooBigs 2015-10-15 10:16:48,753 pysnmp: exportSymbols: symbol SNMPv2-MIB::sysDescr 2015-10-15 10:16:48,753 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMPv2-MIB.pyc 2015-10-15 10:16:48,753 pysnmp: loadModule: trying SNMP-MPD-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,755 pysnmp: file SNMP-MPD-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,755 pysnmp: file SNMP-MPD-MIB.py mtime 1442730404 2015-10-15 10:16:48,755 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-MPD-MIB.pyc 2015-10-15 10:16:48,755 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDMIBCompliances 2015-10-15 10:16:48,755 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpUnknownSecurityModels 2015-10-15 10:16:48,755 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,755 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDMIB 2015-10-15 10:16:48,755 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDStats 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDAdmin 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDMIBGroups 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDMIBObjects 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDMIBConformance 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpInvalidMsgs 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDCompliance 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpMPDGroup 2015-10-15 10:16:48,756 pysnmp: exportSymbols: symbol SNMP-MPD-MIB::snmpUnknownPDUHandlers 2015-10-15 10:16:48,756 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-MPD-MIB.pyc 2015-10-15 10:16:48,756 pysnmp: loadModule: trying SNMP-COMMUNITY-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,756 pysnmp: file SNMP-COMMUNITY-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,756 pysnmp: file SNMP-COMMUNITY-MIB.py mtime 1442730404 2015-10-15 10:16:48,756 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-COMMUNITY-MIB.pyc 2015-10-15 10:16:48,756 pysnmp: loadModule: trying SNMP-FRAMEWORK-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,756 pysnmp: file SNMP-FRAMEWORK-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,756 pysnmp: file SNMP-FRAMEWORK-MIB.py mtime 1442730404 2015-10-15 10:16:48,756 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-FRAMEWORK-MIB.pyc 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngineGroup 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::SnmpAdminString 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIBConformance 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngineMaxMessageSize 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::SnmpEngineID 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliances 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::SnmpSecurityModel 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpAuthProtocols 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngineTime 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngineID 2015-10-15 10:16:48,757 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngineBoots 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpPrivProtocols 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpEngine 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::SnmpSecurityLevel 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::SnmpMessageProcessingModel 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIB 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIBObjects 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkMIBGroups 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-FRAMEWORK-MIB::snmpFrameworkAdmin 2015-10-15 10:16:48,759 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-FRAMEWORK-MIB.pyc 2015-10-15 10:16:48,759 pysnmp: loadModule: trying SNMP-TARGET-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,759 pysnmp: file SNMP-TARGET-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,759 pysnmp: file SNMP-TARGET-MIB.py mtime 1442730404 2015-10-15 10:16:48,759 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-TARGET-MIB.pyc 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrRetryCount 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrTDomain 2015-10-15 10:16:48,759 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetGroups 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrName 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetCommandResponderCompliance 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsName 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetBasicGroup 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsSecurityLevel 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsSecurityModel 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetMIB 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetObjects 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpUnknownContexts 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrEntry 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrTimeout 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsStorageType 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrTagList 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsRowStatus 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsMPModel 2015-10-15 10:16:48,760 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetConformance 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::SnmpTagList 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrParams 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrTable 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetCompliances 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetCommandResponderGroup 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsEntry 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsSecurityName 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrTAddress 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpUnavailableContexts 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetSpinLock 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrRowStatus 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetParamsTable 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetAddrStorageType 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::snmpTargetResponseGroup 2015-10-15 10:16:48,762 pysnmp: exportSymbols: symbol SNMP-TARGET-MIB::SnmpTagValue 2015-10-15 10:16:48,762 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-TARGET-MIB.pyc 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityContextEngineID 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityTable 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIBCompliances 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityStatus 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpProxyTrapForwardGroup 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIB 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTargetAddrExtTable 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityStorageType 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIBObjects 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTargetAddrTMask 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTrapAddress 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityGroup 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunitySecurityName 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIBCompliance 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTrapCommunity 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpProxyTrapForwardCompliance 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityTransportTag 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIBGroups 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityEntry 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityContextName 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityIndex 2015-10-15 10:16:48,763 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityMIBConformance 2015-10-15 10:16:48,765 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpCommunityName 2015-10-15 10:16:48,765 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTargetAddrMMS 2015-10-15 10:16:48,765 pysnmp: exportSymbols: symbol SNMP-COMMUNITY-MIB::snmpTargetAddrExtEntry 2015-10-15 10:16:48,765 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-COMMUNITY-MIB.pyc 2015-10-15 10:16:48,765 pysnmp: loadModule: trying SNMP-TARGET-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,765 pysnmp: file SNMP-TARGET-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,765 pysnmp: file SNMP-TARGET-MIB.py mtime 1442730404 2015-10-15 10:16:48,765 pysnmp: loadModule: seen C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-TARGET-MIB.pyc 2015-10-15 10:16:48,766 pysnmp: loadModule: trying SNMP-USER-BASED-SM-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,766 pysnmp: file SNMP-USER-BASED-SM-MIB.pyc mtime 1442730404 2015-10-15 10:16:48,766 pysnmp: file SNMP-USER-BASED-SM-MIB.py mtime 1442730404 2015-10-15 10:16:48,766 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-USER-BASED-SM-MIB.pyc 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserOwnAuthKeyChange 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmNoAuthProtocol 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::PYSNMP_MODULE_ID 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStats 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::KeyChange 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserSpinLock 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserCloneFrom 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserAuthProtocol 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsWrongDigests 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserPublic 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBCompliances 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsUnknownUserNames 2015-10-15 10:16:48,766 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsUnsupportedSecLevels 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsDecryptionErrors 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserStatus 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBGroups 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBBasicGroup 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserAuthKeyChange 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserTable 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserStorageType 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmNoPrivProtocol 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserEntry 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserSecurityName 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsNotInTimeWindows 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBCompliance 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmDESPrivProtocol 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmHMACMD5AuthProtocol 2015-10-15 10:16:48,767 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUser 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmStatsUnknownEngineIDs 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserEngineID 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBObjects 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmHMACSHAAuthProtocol 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserOwnPrivKeyChange 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::snmpUsmMIB 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserName 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmMIBConformance 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserPrivProtocol 2015-10-15 10:16:48,769 pysnmp: exportSymbols: symbol SNMP-USER-BASED-SM-MIB::usmUserPrivKeyChange 2015-10-15 10:16:48,769 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\SNMP-USER-BASED-SM-MIB.pyc 2015-10-15 10:16:48,769 pysnmp: loadModule: trying __SNMP-FRAMEWORK-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') 2015-10-15 10:16:48,769 pysnmp: file __SNMP-FRAMEWORK-MIB.pyc mtime -1 2015-10-15 10:16:48,769 pysnmp: file __SNMP-FRAMEWORK-MIB.pyw mtime -1 2015-10-15 10:16:48,769 pysnmp: loadModule: read __SNMP-FRAMEWORK-MIB from DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs') failed: [Errno 2] No suitable module found: '__SNMP-FRAMEWORK-MIB' 2015-10-15 10:16:48,769 pysnmp: loadModule: trying __SNMP-FRAMEWORK-MIB at DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs\\instances') 2015-10-15 10:16:48,769 pysnmp: file __SNMP-FRAMEWORK-MIB.pyc mtime 1171472360 2015-10-15 10:16:48,769 pysnmp: file __SNMP-FRAMEWORK-MIB.py mtime 1171472360 2015-10-15 10:16:48,769 pysnmp: loadModule: evaluating C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\instances\__SNMP-FRAMEWORK-MIB.pyc 2015-10-15 10:16:48,770 pysnmp: exportSymbols: symbol __SNMP-FRAMEWORK-MIB::snmpEngineID 2015-10-15 10:16:48,770 pysnmp: exportSymbols: symbol __SNMP-FRAMEWORK-MIB::snmpEngineBoots 2015-10-15 10:16:48,770 pysnmp: exportSymbols: symbol __SNMP-FRAMEWORK-MIB::snmpEngineMaxMessageSize 2015-10-15 10:16:48,770 pysnmp: exportSymbols: symbol __SNMP-FRAMEWORK-MIB::snmpEngineTime 2015-10-15 10:16:48,770 pysnmp: loadModule: loaded C:\devtool\py27x86\lib\site-packages\pysnmp\smi\mibs\instances\__SNMP-FRAMEWORK-MIB.pyc 2015-10-15 10:16:48,900 pysnmp: trying DirMibSource('C:\\Users\\marunguy\\PySNMP Configuration\\mibs') 2015-10-15 10:16:48,900 pysnmp: addMibSources: new MIB sources [DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs'), DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp\\smi\\mibs\\instances'), DirMibSource('C:\\devtool\\py27x86\\lib\\site-packages\\pysnmp_mibs'), DirMibSource('C:\\Users\\marunguy\\PySNMP Configuration\\mibs')] 2015-10-15 10:16:48,900 pysnmp: resolving (1, 3, 6, 1, 2, 1, 1, 1) as OID or label 2015-10-15 10:16:48,900 pysnmp: indexMib: re-indexing MIB view 2015-10-15 10:16:48,904 pysnmp: getNodeNameByOid: resolved :1.3.6.1.2.1.1.1 -> ('iso', 'org', 'dod', 'internet', 'mgmt', 'mib-2', 'system', 'sysDescr').() 2015-10-15 10:16:48,904 pysnmp: resolved ((1, 3, 6, 1, 2, 1, 1, 1),) into prefix ObjectName('1.3.6.1.2.1.1.1') and suffix () 2015-10-15 10:16:48,904 pysnmp: getNodeNameByOid: resolved :1.3.6.1.2.1.1.1 -> ('iso', 'org', 'dod', 'internet', 'mgmt', 'mib-2', 'system', 'sysDescr').() 2015-10-15 10:16:48,905 pysnmp: resolved prefix ObjectName('1.3.6.1.2.1.1.1') into MIB node MibScalar((1, 3, 6, 1, 2, 1, 1, 1), DisplayString(subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(0, 255)))) 2015-10-15 10:16:48,905 pysnmp: resolved indices are () 2015-10-15 10:16:48,907 pysnmp: __indexMib: rebuilt 2015-10-15 10:16:48,907 pysnmp: flipFlopFsm: inputNameVals (((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116), 'destroy'),) 2015-10-15 10:16:48,907 pysnmp: flipFlopFsm: state start status ok -> fsmState writeTest 2015-10-15 10:16:48,907 pysnmp: RowStatus state change from RowStatus() to RowStatus('destroy') produced new state RowStatus('notExists'), error indication <class 'pysnmp.smi.error.RowDestructionWanted'> 2015-10-15 10:16:48,907 pysnmp: setValue: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' failed with traceback ['Traceback (most recent call last):\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-SMI.py", line 538, in setValue\n return self.syntax.setValue(value)\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-TC.py", line 317, in setValue\n raise excValue\n', 'RowDestructionWanted: RowDestructionWanted({\'msg\': "Exception at row state transition from RowStatus() to RowStatus(\'destroy\') yields state RowStatus(\'notExists\') and exception", \'syntax\': RowStatus(\'notExists\')})\n'] 2015-10-15 10:16:48,907 pysnmp: RowCreationWanted({}) flagged by (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy', exception NoSuchInstanceError({'name': (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116), 'idx': 0}) 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,907 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,908 pysnmp: flipFlopFsm: state writeTest status ok -> fsmState writeCommit 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,908 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,910 pysnmp: flipFlopFsm: state writeCommit status ok -> fsmState writeCleanup 2015-10-15 10:16:48,910 pysnmp: RowCreationWanted({}) dropped by (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,910 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,910 pysnmp: flipFlopFsm: state writeCleanup status ok -> fsmState readTest 2015-10-15 10:16:48,910 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,910 pysnmp: flipFlopFsm: state readTest status ok -> fsmState readGet 2015-10-15 10:16:48,911 pysnmp: readGet: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)=RowStatus('notExists') 2015-10-15 10:16:48,911 pysnmp: getValue: returning RowStatus('notExists') for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116) 2015-10-15 10:16:48,911 pysnmp: flipFlopFsm: fun <bound method MibTree.readGet of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='destroy' 2015-10-15 10:16:48,911 pysnmp: flipFlopFsm: state readGet status ok -> fsmState stop 2015-10-15 10:16:48,911 pysnmp: flipFlopFsm: inputNameVals (((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116), 'createAndGo'), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116), 'my-agent'), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116), 'public'), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116), 'my-agent'), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116), SnmpEngineID()), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116), ''), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116), ''), ((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116), 'nonVolatile')) 2015-10-15 10:16:48,911 pysnmp: flipFlopFsm: state start status ok -> fsmState writeTest 2015-10-15 10:16:48,911 pysnmp: RowStatus state change from RowStatus('notExists') to RowStatus('createAndGo') produced new state RowStatus('active'), error indication <class 'pysnmp.smi.error.RowCreationWanted'> 2015-10-15 10:16:48,911 pysnmp: setValue: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' failed with traceback ['Traceback (most recent call last):\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-SMI.py", line 538, in setValue\n return self.syntax.setValue(value)\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-TC.py", line 317, in setValue\n raise excValue\n', 'RowCreationWanted: RowCreationWanted({\'msg\': "Exception at row state transition from RowStatus(\'notExists\') to RowStatus(\'createAndGo\') yields state RowStatus(\'active\') and exception", \'syntax\': RowStatus(\'active\')})\n'] 2015-10-15 10:16:48,911 pysnmp: RowStatus state change from RowStatus() to RowStatus('createAndGo') produced new state RowStatus('active'), error indication <class 'pysnmp.smi.error.RowCreationWanted'> 2015-10-15 10:16:48,911 pysnmp: setValue: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' failed with traceback ['Traceback (most recent call last):\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-SMI.py", line 538, in setValue\n return self.syntax.setValue(value)\n', ' File "C:\\devtool\\py27x86\\Lib\\site-packages\\pysnmp\\smi\\mibs\\SNMPv2-TC.py", line 317, in setValue\n raise excValue\n', 'RowCreationWanted: RowCreationWanted({\'msg\': "Exception at row state transition from RowStatus() to RowStatus(\'createAndGo\') yields state RowStatus(\'active\') and exception", \'syntax\': RowStatus(\'active\')})\n'] 2015-10-15 10:16:48,911 pysnmp: RowCreationWanted({}) flagged by (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo', exception RowCreationWanted({'msg': "Exception at row state transition from RowStatus('notExists') to RowStatus('createAndGo') yields state RowStatus('active') and exception", 'syntax': RowStatus('active')}) 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,911 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,913 pysnmp: __manageColumns: action createTest name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)='public' 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpEngineID() 2015-10-15 10:16:48,913 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)='nonVolatile' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: state writeTest status ok -> fsmState writeCommit 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: __manageColumns: action createCommit name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)='public' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpEngineID() 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCommit of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)='nonVolatile' 2015-10-15 10:16:48,914 pysnmp: flipFlopFsm: state writeCommit status ok -> fsmState writeCleanup 2015-10-15 10:16:48,914 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,914 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,914 pysnmp: RowCreationWanted({}) dropped by (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,915 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,915 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1) suffix (109, 121, 45, 97, 103, 101, 110, 116) index value SnmpAdminString('my-agent', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(1, 32))) 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,915 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,915 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,915 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,915 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,915 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,917 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,917 pysnmp: createCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)=None 2015-10-15 10:16:48,917 pysnmp: __manageColumns: action createCleanup name (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7) suffix (109, 121, 45, 97, 103, 101, 110, 116) value None 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)='public' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)='public' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpEngineID() 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpEngineID() 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: writeCleanup: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)='nonVolatile' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.writeCleanup of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)='nonVolatile' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: state writeCleanup status ok -> fsmState readTest 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2, 109, 121, 45, 97, 103, 101, 110, 116)='public' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3, 109, 121, 45, 97, 103, 101, 110, 116)='my-agent' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpEngineID() 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6, 109, 121, 45, 97, 103, 101, 110, 116)='' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: fun <bound method MibTree.readTest of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7, 109, 121, 45, 97, 103, 101, 110, 116)='nonVolatile' 2015-10-15 10:16:48,917 pysnmp: flipFlopFsm: state readTest status ok -> fsmState readGet 2015-10-15 10:16:48,917 pysnmp: readGet: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)=RowStatus('active') 2015-10-15 10:16:48,917 pysnmp: getValue: returning RowStatus('active') for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116) 2015-10-15 10:16:48,918 pysnmp: flipFlopFsm: fun <bound method MibTree.readGet of MibTree((1,), None)> suceeded for (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8, 109, 121, 45, 97, 103, 101, 110, 116)='createAndGo' 2015-10-15 10:16:48,918 pysnmp: readGet: (1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1, 109, 121, 45, 97, 103, 101, 110, 116)=SnmpAdminString('my-agent', subtypeSpec=Constraints... [truncated message content] |
From: Ilya E. <il...@gl...> - 2015-10-14 20:33:39
|
Hi Michael, You need pysnmp-4.3 to use hlapi API and the examples from the main pysnmp site. For 4.2.x examples, please follow this link: http://pysnmp.sourceforge.net/examples/current/index.html <http://pysnmp.sourceforge.net/examples/current/index.html> However 4.3.x is way better. -ilya > On 14 Oct 2015, at 22:26, Michael Horkan <mho...@gm...> wrote: > > Hello, > > I'm new to pysnmp, forgive me if this was covered elsewhere but doing a search on the mailing list for the above error did not produce a result. > > I'm running Python 32-bit v2.7.8 on Windows 7 Professional 64-bit. I've installed the following packages: > pyasn1-0.1.9-py2.7.egg > pysmi-0.0.6-py2.7.egg > pysnmp-4.2.5-py2.7.egg > > My goal is to write an snmpwalk-style script, so per the posted Example scripts I attempted to test in the Idle GUI, but the following import won't work: > > from pysnmp.hlapi import * > > > This import results in the error in the header. > > -- > Mike |
From: Michael H. <mho...@gm...> - 2015-10-14 20:26:28
|
Hello, I'm new to pysnmp, forgive me if this was covered elsewhere but doing a search on the mailing list for the above error did not produce a result. I'm running Python 32-bit v2.7.8 on Windows 7 Professional 64-bit. I've installed the following packages: pyasn1-0.1.9-py2.7.egg pysmi-0.0.6-py2.7.egg pysnmp-4.2.5-py2.7.egg My goal is to write an snmpwalk-style script, so per the posted Example scripts I attempted to test in the Idle GUI, but the following import won't work: from pysnmp.hlapi import * This import results in the error in the header. -- Mike |
From: Ilya E. <il...@gl...> - 2015-10-14 19:30:02
|
Hi Kim, That’s a curious error. I can’t easily reproduce it because it is triggered by some specific response from your printer (#2). Could you enable pysnmp debugging, rerun your test script against the bad IP/OID and send me the output? Thanks, ilya > On 12 Oct 2015, at 10:41, Kim,Young-Kyun <mar...@li...> wrote: > > Hi! > > Below is my test code. > When this code run with pysnmp 4.3.1(CVS version, 2015/10/12), > "PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName" exception raised in some device. > This code works well with pysnmp 4.2.5 and 4.3.0. > > Test Environment: > OS : Windows 8.1 Enterprise 64bit > Python : CPython 2.7.10 32bit > > What's wrong? > > -------------------------------------------- > from pysnmp.entity.rfc3413.oneliner import cmdgen > > def snmpnext(ipaddr, oid): > community_data = cmdgen.CommunityData('my-agent', 'public', 0) > udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) > return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) > > def test(): > ipaddr1 = ("192.168.123.178", 161) > print "1-1=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) > print "1-2=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 1, 1)) > ipaddr2 = ("192.168.123.179", 161) > print "2-1=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) > print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) # raise error with pysnmp 4.3.1 > > if __name__ == "__main__": > test() > -------------------------------------------- > > Below is detail log message. > -------------------------------------------- > 1-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.1')), OctetString(''))], [ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.2')), OctetString(hexValue='00237d8b5d7a'))]]) > 1-2= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.1.1.0')), DisplayString('HP ETHERNET MULTI-ENVIRONMENT,ROM none,JETDIRECT,JD146,EEPROM V.38.68,CIDATE 09/18/2008', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(0, 255))))]]) > 2-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.3')), OctetString(hexValue='d89d67eaf3eb'))]]) > 2-2= > Traceback (most recent call last): > File "test.py", line 20, in <module> > test() > File "test.py", line 17, in test > print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) > File "test.py", line 9, in snmpnext > return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) > File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", line 228, in nextCmd > **kwargs): > File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", line 348, in nextCmd > snmpEngine.transportDispatcher.runDispatcher() > File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 41, in runDispatcher > raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info()))) > pysnmp.error.PySnmpError: poll error: Traceback (most recent call last): > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 37, in runDispatcher > use_poll=True, map=self.__sockMap, count=1) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop > poll_fun(timeout, map) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll > read(obj) > ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read > obj.handle_error() > ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read > obj.handle_read_event() > ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in handle_read_event > self.handle_read() > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 145, in handle_read > self._cbFun(self, transportAddress, incomingMessage) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line 52, in _cbFun > self, transportDomain, transportAddress, incomingMessage > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", line 145, in __receiveMessageCbFun > self, transportDomain, transportAddress, wholeMsg > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", line 529, in receiveMessage > cachedParams['cbCtx'] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 174, in processResponsePdu > cbCtx) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 407, in processResponseVarBinds > cbCtx): > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", line 362, in __cbFun > [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, lookupMib) for varBindTableRow in varBindTable ], > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", line 37, in unmakeVarBinds > varBinds = [ ObjectType(ObjectIdentity(x[0]), x[1]).resolveWithMib(mibViewController) for x in varBinds ] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 728, in resolveWithMib > self.__args[1] = ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 361, in resolveWithMib > self.__oid > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 200, in getNodeNameByOid > nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel > nodeName[:-1], oidToLabelIdx, labelToOidIdx > ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 183, in __getOidLabel > resLabel = label + tuple([ str(x) for x in suffix ]) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 497, in __add__ > def __add__(self, other): return self.clone(self._value + other) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 117, in clone > return self.__class__(value, tagSet, subtypeSpec) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 74, in __init__ > value = self.prettyIn(value) > ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 559, in prettyIn > 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) > ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName > |
From: Ilya E. <il...@gl...> - 2015-10-14 19:13:00
|
Oh, right. Here’s the fixed version: tarball download <http://pysnmp.cvs.sourceforge.net/viewvc/pysnmp/pysnmp/?view=tar> -ilya > On 14 Oct 2015, at 17:32, Shang Wang <sha...@gm...> wrote: > > Hi pysnmp: > > I might found a bug when I'm using the library. If I define an snmp target as an invalid destination, the library gives me following error: > > My code: > > destination = "" > target = UdpTransportTarget((destination, remote_port), timeout, retries) > > Exception : > > File "/venv/lib/python2.6/site-packages/pysnmp/hlapi/transport.py", line 10, in __init__ > self.transportAddr = self._resolveAddr(transportAddr) > File "/venv/lib/python2.6/site-packages/pysnmp/hlapi/asyncore/transport.py", line 51, in _resolveAddr > raise error.PySnmpError('Bad IPv4/UDP transport address %s: %s' % ('@'.join([ str(x) for x in transportAddr ]), sys.exc_info()[1])) > NameError: global name 'error' is not defined > > Is this fixed? Please let me know. Thanks! > > -- > cheers, > Shang |
From: Shang W. <sha...@gm...> - 2015-10-14 15:32:18
|
Hi pysnmp: I might found a bug when I'm using the library. If I define an snmp target as an invalid destination, the library gives me following error: My code: destination = "" target = UdpTransportTarget((destination, remote_port), timeout, retries) Exception : File "/venv/lib/python2.6/site-packages/pysnmp/hlapi/transport.py", line 10, in __init__ self.transportAddr = self._resolveAddr(transportAddr) File "/venv/lib/python2.6/site-packages/pysnmp/hlapi/asyncore/transport.py", line 51, in _resolveAddr raise error.PySnmpError('Bad IPv4/UDP transport address %s: %s' % ('@'.join([ str(x) for x in transportAddr ]), sys.exc_info()[1])) NameError: global name 'error' is not defined Is this fixed? Please let me know. Thanks! -- cheers, Shang |
From: László T. Z. <las...@er...> - 2015-10-13 05:19:16
|
Hi Ilya, Thanks a lot for the answer! Best regards, Laszlo On 10/12/2015 09:41 PM, Ilya Etingof wrote: > > Hi Laszlo, > > From the first glance the problem is related to misconfigured SNMP > “tags”. > > When sending SNMPv1/2c traps, you may need to “tag” SNMP community > information and destination address with the same tag to logically > bind one to the other. When you are working with different > destinations, that is not that important, but since you are sending > different TRAPs to the same destination, that may mess things up. You > can read the details in SNMP RFCs. > > So, please, see your slightly modified script attached to this message. > > -ilya > > >> On 12 Oct 2015, at 13:37, László Tamás Zeke >> <las...@er... >> <mailto:las...@er...>> wrote: >> >> Hi, >> >> I made a simple script using 4.3.0 to send v2 and v3 trap messages. >> My issue is that when I send mixed version messages (reusing the same >> SnmpEngine object) in succession, then 2 messages are sent for one >> call of sendNotification after the first. >> >> ctx.send_trapv3() >> ctx.send_trapv2() >> -> v3,v3,v2 >> >> and >> >> ctx.send_trapv2() >> ctx.send_trapv3() >> -> v2,v2,v3 >> >> but >> >> ctx.send_trapv2() >> ctx.send_trapv2() >> -> v2,v2 // OK >> >> ctx.send_trapv3() >> ctx.send_trapv3() >> -> v3,v3 // OK >> >> also, >> >> ctx.send_trapv3() >> ctx.send_trapv2() >> ctx.send_trapv3() >> -> v3, v3, v2, v3, v2 >> >> Am I doing something wrong or is this a bug? I can send sample code >> but it is really simple calls of hlapi's sendNotification. >> I'm using Python 2.7.3 on Ubuntu 12.04. >> >> Best regards, >> Laszlo > |
From: Ilya E. <il...@gl...> - 2015-10-12 19:41:46
|
Hi Laszlo, From the first glance the problem is related to misconfigured SNMP “tags”. When sending SNMPv1/2c traps, you may need to “tag” SNMP community information and destination address with the same tag to logically bind one to the other. When you are working with different destinations, that is not that important, but since you are sending different TRAPs to the same destination, that may mess things up. You can read the details in SNMP RFCs. So, please, see your slightly modified script attached to this message. -ilya > On 12 Oct 2015, at 13:37, László Tamás Zeke <las...@er...> wrote: > > Hi, > > I made a simple script using 4.3.0 to send v2 and v3 trap messages. My issue is that when I send mixed version messages (reusing the same SnmpEngine object) in succession, then 2 messages are sent for one call of sendNotification after the first. > > ctx.send_trapv3() > ctx.send_trapv2() > -> v3,v3,v2 > > and > > ctx.send_trapv2() > ctx.send_trapv3() > -> v2,v2,v3 > > but > > ctx.send_trapv2() > ctx.send_trapv2() > -> v2,v2 // OK > > ctx.send_trapv3() > ctx.send_trapv3() > -> v3,v3 // OK > > also, > > ctx.send_trapv3() > ctx.send_trapv2() > ctx.send_trapv3() > -> v3, v3, v2, v3, v2 > > Am I doing something wrong or is this a bug? I can send sample code but it is really simple calls of hlapi's sendNotification. > I'm using Python 2.7.3 on Ubuntu 12.04. > > Best regards, > Laszlo |
From: László T. Z. <las...@er...> - 2015-10-12 11:37:20
|
Hi, I made a simple script using 4.3.0 to send v2 and v3 trap messages. My issue is that when I send mixed version messages (reusing the same SnmpEngine object) in succession, then 2 messages are sent for one call of sendNotification after the first. ctx.send_trapv3() ctx.send_trapv2() -> v3,v3,v2 and ctx.send_trapv2() ctx.send_trapv3() -> v2,v2,v3 but ctx.send_trapv2() ctx.send_trapv2() -> v2,v2 // OK ctx.send_trapv3() ctx.send_trapv3() -> v3,v3 // OK also, ctx.send_trapv3() ctx.send_trapv2() ctx.send_trapv3() -> v3, v3, v2, v3, v2 Am I doing something wrong or is this a bug? I can send sample code but it is really simple calls of hlapi's sendNotification. I'm using Python 2.7.3 on Ubuntu 12.04. Best regards, Laszlo |
From: Kim,Young-Kyun <mar...@li...> - 2015-10-12 08:54:46
|
Hi! Below is my test code. When this code run with pysnmp 4.3.1(CVS version, 2015/10/12), "PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName" exception raised in some device. This code works well with pysnmp 4.2.5 and 4.3.0. Test Environment: OS : Windows 8.1 Enterprise 64bit Python : CPython 2.7.10 32bit What's wrong? -------------------------------------------- from pysnmp.entity.rfc3413.oneliner import cmdgen def snmpnext(ipaddr, oid): community_data = cmdgen.CommunityData('my-agent', 'public', 0) udp_trans_target = cmdgen.UdpTransportTarget(ipaddr) return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) def test(): ipaddr1 = ("192.168.123.178", 161) print "1-1=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) print "1-2=", snmpnext(ipaddr1, (1, 3, 6, 1, 2, 1, 1, 1)) ipaddr2 = ("192.168.123.179", 161) print "2-1=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 2, 2, 1, 6)) print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) # raise error with pysnmp 4.3.1 if __name__ == "__main__": test() -------------------------------------------- Below is detail log message. -------------------------------------------- 1-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.1')), OctetString(''))], [ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.2')), OctetString(hexValue='00237d8b5d7a'))]]) 1-2= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.1.1.0')), DisplayString('HP ETHERNET MULTI-ENVIRONMENT,ROM none,JETDIRECT,JD146,EEPROM V.38.68,CIDATE 09/18/2008', subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(0, 255)), ValueSizeConstraint(0, 255))))]]) 2-1= (None, Integer('noError', NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))), Integer(0, subtypeSpec=ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(0, Integer(2147483647)))), [[ObjectType(ObjectIdentity(ObjectName('1.3.6.1.2.1.2.2.1.6.3')), OctetString(hexValue='d89d67eaf3eb'))]]) 2-2= Traceback (most recent call last): File "test.py", line 20, in <module> test() File "test.py", line 17, in test print "2-2=", snmpnext(ipaddr2, (1, 3, 6, 1, 2, 1, 1, 1)) File "test.py", line 9, in snmpnext return cmdgen.CommandGenerator().nextCmd(community_data,udp_trans_target, oid) File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\oneliner\cmdgen.py", line 228, in nextCmd **kwargs): File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", line 348, in nextCmd snmpEngine.transportDispatcher.runDispatcher() File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 41, in runDispatcher raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info()))) pysnmp.error.PySnmpError: poll error: Traceback (most recent call last): ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dispatch.py", line 37, in runDispatcher use_poll=True, map=self.__sockMap, count=1) ; File "C:\devtool\py27x86\lib\asyncore.py", line 220, in loop poll_fun(timeout, map) ; File "C:\devtool\py27x86\lib\asyncore.py", line 156, in poll read(obj) ; File "C:\devtool\py27x86\lib\asyncore.py", line 87, in read obj.handle_error() ; File "C:\devtool\py27x86\lib\asyncore.py", line 83, in read obj.handle_read_event() ; File "C:\devtool\py27x86\lib\asyncore.py", line 449, in handle_read_event self.handle_read() ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\asyncore\dgram\base.py", line 145, in handle_read self._cbFun(self, transportAddress, incomingMessage) ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\carrier\base.py", line 52, in _cbFun self, transportDomain, transportAddress, incomingMessage ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\engine.py", line 145, in __receiveMessageCbFun self, transportDomain, transportAddress, wholeMsg ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\proto\rfc3412.py", line 529, in receiveMessage cachedParams['cbCtx'] ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 174, in processResponsePdu cbCtx) ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\entity\rfc3413\cmdgen.py", line 407, in processResponseVarBinds cbCtx): ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\asyncore\cmdgen.py", line 362, in __cbFun [ vbProcessor.unmakeVarBinds(snmpEngine, varBindTableRow, lookupMib) for varBindTableRow in varBindTable ], ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\hlapi\varbinds.py", line 37, in unmakeVarBinds varBinds = [ ObjectType(ObjectIdentity(x[0]), x[1]).resolveWithMib(mibViewController) for x in varBinds ] ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 728, in resolveWithMib self.__args[1] = ObjectIdentity(self.__args[1]).resolveWithMib(mibViewController) ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\rfc1902.py", line 361, in resolveWithMib self.__oid ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 200, in getNodeNameByOid nodeName, mibMod['oidToLabelIdx'], mibMod['labelToOidIdx'] ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 180, in __getOidLabel nodeName[:-1], oidToLabelIdx, labelToOidIdx ; File "C:\devtool\py27x86\lib\site-packages\pysnmp\smi\view.py", line 183, in __getOidLabel resLabel = label + tuple([ str(x) for x in suffix ]) ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 497, in __add__ def __add__(self, other): return self.clone(self._value + other) ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 117, in clone return self.__class__(value, tagSet, subtypeSpec) ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\base.py", line 74, in __init__ value = self.prettyIn(value) ; File "C:\devtool\py27x86\lib\site-packages\pyasn1\type\univ.py", line 559, in prettyIn 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) ;PyAsn1Error: Invalid sub-ID in (2, '3837204320') at ObjectName |
From: Ilya E. <il...@gl...> - 2015-10-10 19:22:26
|
Hi Doug, Thanks for reporting! That has been fixed in the repo. -ilya > On 09 Oct 2015, at 09:03, Doug O'Riordan <ori...@ma...> wrote: > > Hi Ilya, > > Found a bug(?) in the latest release. If you try to walk / getnext an OID tree which doesn't exist, the code throws the following exception: > > File "/opt/python/3.4/lib/python3.4/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 248, in bulkCmd > return errorIndication, errorStatus, errorIndex, varBindTable > UnboundLocalError: local variable 'errorIndication' referenced before assignment > > GET returns a NoSuchObject properly. > > Hope this helps. > > Cheers, > Doug |
From: Doug O'R. <ori...@ma...> - 2015-10-09 07:23:02
|
Hi Ilya, Found a bug(?) in the latest release. If you try to walk / getnext an OID tree which doesn't exist, the code throws the following exception: File "/opt/python/3.4/lib/python3.4/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 248, in bulkCmd return errorIndication, errorStatus, errorIndex, varBindTable UnboundLocalError: local variable 'errorIndication' referenced before assignment GET returns a NoSuchObject properly. Hope this helps. Cheers, Doug ----------------------------------------------------- Mail.be, WebMail and Virtual Office http://www.mail.be |
From: Ilya E. <il...@gl...> - 2015-10-04 13:09:49
|
Hi Denis, To solve the first issue try adding the lexicographicMode=False to bulkCmd kw params. That would make it stop iteration once next OID is beyond the initial one: http://pysnmp.sourceforge.net/examples/hlapi/asyncore/sync/manager/cmdgen/table-operations.html#fetch-scalar-and-table-variables As for the second question: with lexicographicMode=True (default), pysnmp will only stop GETNEXT/GETBULK iteration when end-of-mib is reached. That means that while walking your first OID, pysnmp may at some point reach your second OID as it’s “greater” than the first one and therefore lies behind the first one. %-\ Anyway, the first recipe may help you here as well. Of course, you can add your own cut-off code inside your getBulk() loop to fine-tune the OIDs you want to get. -ilya > On 04 Oct 2015, at 14:19, Denis Fondras <pyt...@le...> wrote: > > Hi, > > I am using pysnmp 4.3.0 with Linux/Debian 8. I have the following code > (basically getbulk-limit-number-of-packets.py example) : > > ------8<------ > from pysnmp.hlapi import * > > for errorIndication, \ > errorStatus, errorIndex, \ > varBinds in bulkCmd(SnmpEngine(), > CommunityData('public'), > UdpTransportTarget(('snmp', 161)), > ContextData(), > 0, 50, > ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1')), > maxCalls=10): > > if errorIndication: > print(errorIndication) > break > elif errorStatus: > print('%s at %s' % ( > errorStatus.prettyPrint(), > errorIndex and varBinds[int(errorIndex)-1][0] or '?' > ) > ) > break > else: > for varBind in varBinds: > print(' = '.join([ x.prettyPrint() for x in varBind ])) > ------8<------ > > I'm expecting it to return only what lies under 1.3.6.1.2.1.2.2.1 but I get : > > ------8<------ > [...] > SNMPv2-SMI::mib-2."2.2.1.22.3" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.4" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.5" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.6" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.7" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.8" = 0.0 > SNMPv2-SMI::mib-2."2.2.1.22.9" = 0.0 > SNMPv2-SMI::mib-2."4.1.0" = 1 > SNMPv2-SMI::mib-2."4.2.0" = 64 > SNMPv2-SMI::mib-2."4.3.0" = 8165257 > SNMPv2-SMI::mib-2."4.4.0" = 0 > SNMPv2-SMI::mib-2."4.5.0" = 1176834 > SNMPv2-SMI::mib-2."4.6.0" = 6851141 > SNMPv2-SMI::mib-2."4.7.0" = 39 > [...] > ------8<------ > > Why is it returning results from 1.3.6.1.2.1.4 ? > Using net-snmp snmpwalk returns only the MIB I asked for. > > On a similar side, if I have two MIBs to be walked, like in the following code > : > ------8<------ > from pysnmp.hlapi import * > > for errorIndication, \ > errorStatus, errorIndex, \ > varBinds in bulkCmd(SnmpEngine(), > CommunityData('public'), > UdpTransportTarget(('snmp', 161)), > ContextData(), > 0, 50, > ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1')), > ObjectType(ObjectIdentity('1.3.6.1.2.1.31.1.1.1')), > maxCalls=10): > > if errorIndication: > print(errorIndication) > break > elif errorStatus: > print('%s at %s' % ( > errorStatus.prettyPrint(), > errorIndex and varBinds[int(errorIndex)-1][0] or '?' > ) > ) > break > else: > for varBind in varBinds: > print(' = '.join([ x.prettyPrint() for x in varBind ])) > > ------8<------ > > I get : > > ------8<------ > SNMPv2-SMI::mib-2."2.2.1.1.1" = 1 > SNMPv2-SMI::mib-2."31.1.1.1.1.1" = em0 > SNMPv2-SMI::mib-2."31.1.1.1.1.2" = em1 > SNMPv2-SMI::mib-2."31.1.1.1.1.3" = em2 > [...] > SNMPv2-SMI::mib-2."31.1.6.0" = 1406953 > SNMPv2-SMI::enterprises."2021.13.15.1.1.1.1" = 1 > SNMPv2-SMI::enterprises."2021.13.15.1.1.2.1" = sd0 > SNMPv2-SMI::enterprises."2021.13.15.1.1.3.1" = 1938226688 > ------8<------ > > Only the first OID of the first MIB, what looks like the full second MIB and > part of a third one... I was expecting the full first and second MIBs. > > What do I get wrong about this behaviour ? > > Thank you in advance, > Denis |
From: Denis F. <pyt...@le...> - 2015-10-04 12:46:09
|
Hi, I am using pysnmp 4.3.0 with Linux/Debian 8. I have the following code (basically getbulk-limit-number-of-packets.py example) : ------8<------ from pysnmp.hlapi import * for errorIndication, \ errorStatus, errorIndex, \ varBinds in bulkCmd(SnmpEngine(), CommunityData('public'), UdpTransportTarget(('snmp', 161)), ContextData(), 0, 50, ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1')), maxCalls=10): if errorIndication: print(errorIndication) break elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) break else: for varBind in varBinds: print(' = '.join([ x.prettyPrint() for x in varBind ])) ------8<------ I'm expecting it to return only what lies under 1.3.6.1.2.1.2.2.1 but I get : ------8<------ [...] SNMPv2-SMI::mib-2."2.2.1.22.3" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.4" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.5" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.6" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.7" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.8" = 0.0 SNMPv2-SMI::mib-2."2.2.1.22.9" = 0.0 SNMPv2-SMI::mib-2."4.1.0" = 1 SNMPv2-SMI::mib-2."4.2.0" = 64 SNMPv2-SMI::mib-2."4.3.0" = 8165257 SNMPv2-SMI::mib-2."4.4.0" = 0 SNMPv2-SMI::mib-2."4.5.0" = 1176834 SNMPv2-SMI::mib-2."4.6.0" = 6851141 SNMPv2-SMI::mib-2."4.7.0" = 39 [...] ------8<------ Why is it returning results from 1.3.6.1.2.1.4 ? Using net-snmp snmpwalk returns only the MIB I asked for. On a similar side, if I have two MIBs to be walked, like in the following code : ------8<------ from pysnmp.hlapi import * for errorIndication, \ errorStatus, errorIndex, \ varBinds in bulkCmd(SnmpEngine(), CommunityData('public'), UdpTransportTarget(('snmp', 161)), ContextData(), 0, 50, ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1')), ObjectType(ObjectIdentity('1.3.6.1.2.1.31.1.1.1')), maxCalls=10): if errorIndication: print(errorIndication) break elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) break else: for varBind in varBinds: print(' = '.join([ x.prettyPrint() for x in varBind ])) ------8<------ I get : ------8<------ SNMPv2-SMI::mib-2."2.2.1.1.1" = 1 SNMPv2-SMI::mib-2."31.1.1.1.1.1" = em0 SNMPv2-SMI::mib-2."31.1.1.1.1.2" = em1 SNMPv2-SMI::mib-2."31.1.1.1.1.3" = em2 [...] SNMPv2-SMI::mib-2."31.1.6.0" = 1406953 SNMPv2-SMI::enterprises."2021.13.15.1.1.1.1" = 1 SNMPv2-SMI::enterprises."2021.13.15.1.1.2.1" = sd0 SNMPv2-SMI::enterprises."2021.13.15.1.1.3.1" = 1938226688 ------8<------ Only the first OID of the first MIB, what looks like the full second MIB and part of a third one... I was expecting the full first and second MIBs. What do I get wrong about this behaviour ? Thank you in advance, Denis |
From: Floris B. <flo...@gm...> - 2015-09-30 14:40:13
|
Looks like a nice feature list. Thanks! On 28 Sep 2015 18:15, "Ilya Etingof" <il...@gl...> wrote: > Dear fellow Pythonistas, > > This is to let you know that pysnmp 4.3.0 has just arrived! > > This release brings many significant features: > > * Pure-Python, automatic MIB parsing. No smidump hassles anymore! > * Rewritten synchronous high-level interface: walking SNMP agent becomes a > matter of exhausting Python generator! > * Rewritten Twisted interface: now it is also high-level! > * Shiny new high-level asyncio/trollius interfaces! Async code becomes > synchronous again (only at the first glance). > * Quite a lot of long-pending fixes finally went live! > > Finally, proper Sphinx documentation now accompanies important pieces of > the code. > > It’s all on the web site: > > http://pysnmp.sf.net > > Enjoy! ;-) > > > ------------------------------------------------------------------------------ > > _______________________________________________ > pysnmp-users mailing list > pys...@li... > https://lists.sourceforge.net/lists/listinfo/pysnmp-users > > |
From: Ilya E. <il...@gl...> - 2015-09-28 16:13:57
|
Dear fellow Pythonistas, This is to let you know that pysnmp 4.3.0 has just arrived! This release brings many significant features: * Pure-Python, automatic MIB parsing. No smidump hassles anymore! * Rewritten synchronous high-level interface: walking SNMP agent becomes a matter of exhausting Python generator! * Rewritten Twisted interface: now it is also high-level! * Shiny new high-level asyncio/trollius interfaces! Async code becomes synchronous again (only at the first glance). * Quite a lot of long-pending fixes finally went live! Finally, proper Sphinx documentation now accompanies important pieces of the code. It’s all on the web site: http://pysnmp.sf.net <http://pysnmp.sf.net/> Enjoy! ;-) |
From: Craig S. <cs...@en...> - 2015-09-26 22:38:38
|
On Fri, Sep 25, 2015 at 12:32:03AM -0300, Diego Pasqualin wrote: > I have an aplication that runs (something like) the following code every > five minutes. > ----------------8<------------------ > cmd_gen = cmdgen.AsynCommandGenerator(engine.SnmpEngine()) > # every t['transport'] is an instance of "cmdgen.UdpTransportTarget" > # every t['cbCtx'] is a "config" for the async callback > for t in self.getTransport().values(): >   cmd_gen.getCmd( >     public >     , t['transport'] >     , oids >     , (self._parse, t['cbCtx']) >    ) > cmd_gen.snmpEngine.transportDispatcher.runDispatcher() The dispatcher pops the jobs off once they complete. You seem to want to regularly poll the same things over and over. I have an object that holds all the requests (with a method of adding and removing them) and it just calls cmd_get.getCmd() or whatever the relevant call is when its time. > My question is, is there a better way to do this? Can I somehow tell > runDispatcher to run the sabe jobs again? It's not how I do it, possibly you could mess with the dispatcher's method to remove it. I still think the separate request list and running the dispatcher all the time is better. It also means you don't hammer your network 30 seconds every five minutes as you can spread your requests out. So I have several loops: a "what are we going to poll next" loop a "what requests are pending to pump into pysnmp" loop a "pysnmp dispatcher" loop All are the same loop, e.g. i run them all at the same time. It's actually a lot more complicated than that as I have sockets etc flying around too, but that's the idea. - Craig -- Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au Debian GNU/Linux http://www.debian.org/ csmall at : debian.org GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 |