Re: [snmpsim-users] device recording question
Brought to you by:
elie
|
From: Ilya E. <il...@gl...> - 2013-04-24 22:21:18
|
Hi Jason, That appeared to be a bug in numeric.py that is triggered by a *changing* set of OIDs between iterations. The quick fix is available from here: http://snmpsim.cvs.sourceforge.net/viewvc/snmpsim/snmpsim/variation/numeric.py Please download this latest numeric.py file and replace your current numeric.py with it. Let me know in case of any issues. -ilya On Apr 25, 2013, at 12:55 AM, Jason Kojro-Badziak wrote: > Hi Ilya: > > Sorry to bother you, but I am having an issue when I try to use the snmprec application along with the recording module and I'm hoping you can help. If I use the snmprec tool without the "--variation" options, the snmprec file is created successfully. > > Here is the command I am running: > > c:\Program Files (x86)\SNMP Simulator>snmprec.exe --agent-udpv4-endpoint=192.168.200.128 --version=2c --community=[COMMUNITY STRING] --output-file="c:\Users\jkb\Desktop\vm-badziak.snmprec" --variation-module=numeric --variation-module-options=taglist:2-65-66-67-70,iterations:2,period:10 > > When the applications starts, here is what I am initially seeing: > > Scanning "\Users\jkb\SNMP Simulator\Variation" directory for variation modules... no directory > Scanning "C:\Users\jkb\AppData\Roaming\SNMP Simulator\Variation" directory for variation modules... no directory > Scanning "C:\Program Files (x86)\SNMP Simulator\Variation" directory for variation modules... numeric module loaded > SNMP version 2c > Community name: [COMMUNITY STRING] > Querying UDP/IPv4 agent at 192.168.200.128:161 > Initializing variation module: > numeric...OK > Sending initial GETNEXT request.... > OIDs dumped: 0/(5000+) > > After what I am assuming is the first "run through" of all of the OIDs, the output changes to this: > > Scanning "\Users\jkb\SNMP Simulator\Variation" directory for variation modules... no directory > Scanning "C:\Users\jkb\AppData\Roaming\SNMP Simulator\Variation" directory for variation modules... no directory > Scanning "C:\Program Files (x86)\SNMP Simulator\Variation" directory for variation modules... numeric module loaded > SNMP version 2c > Community name: [COMMUNITY STRING] > Querying UDP/IPv4 agent at 192.168.200.128:161 > Initializing variation module: > numeric...OK > Sending initial GETNEXT request.... > Shutting down variation modules: > numeric...OK > OIDs dumped: 5136, elapsed: 181.08 sec, rate: 0.00 OIDs/sec > Traceback (most recent call last): > File "snmprec.py", line 500, in <module> > KeyError: KeyError('value',) > > In the resulting data file, there are a few lines, but there are not 5000+ OIDs dumped as it says in the output. > > Any idea what is going wrong? I have also tried this on the linux server and I am getting the same results. I have also tried using smaller taglists to see if that was the problem, but sadly, it is not. > > Just so you know: > c:\Program Files (x86)\SNMP Simulator>snmprec -h > SNMP Simulator version 0.2.1, written by Ilya Etingof <il...@gl...> > > Thank you! > Jason Kojro-Badziak > Email: jba...@mo... > |