snmpwalk terminates snmpsimd process while Simulating SNMP Agents
See original GitHub issueI have recorded oids from a device, placed the rec file in one of the folders and set up the snmpsimd as
snmpsimd --agent-udpv4-endpoint=127.0.0.1:1161
and I get:
...
Listening at UDP/IPv4 endpoint 127.0.0.1:1161, transport ID 1.3.6.1.6.1.1.0
when I do an snmpwalk (also tried snmpget with same results), like:
snmpwalk -On -v1 -c recorded/ubnt-system localhost:1161
snmpsimd process is terminated with Traceback list of calls like:
Process terminated
Traceback (most recent call last):;
File "/usr/bin/snmpsimd", line 1281, in <module>;
transportDispatcher.runDispatcher();
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 50, in runDispatcher; raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())));
PySnmpError: poll error: Traceback (most recent call last):;;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher; use_poll=True, map=self.__sockMap, count=1);;
File "/usr/lib/python2.7/asyncore.py", line 220, in loop;
poll_fun(timeout, map);;
File "/usr/lib/python2.7/asyncore.py", line 201, in poll2; readwrite(obj, flags);;
File "/usr/lib/python2.7/asyncore.py", line 123, in readwrite; obj.handle_error();;
File "/usr/lib/python2.7/asyncore.py", line 108, in readwrite; obj.handle_read_event();;
File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event; self.handle_read();;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/carrier/asyncore/dgram/base.py", line 163, in handle_read; self._cbFun(self, transportAddress, incomingMessage);;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/carrier/base.py", line 70, in _cbFun; self, transportDomain, transportAddress, incomingMessage;;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun; self, transportDomain, transportAddress, wholeMsg;;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/proto/rfc3412.py", line 433, in receiveMessage; PDU, maxSizeResponseScopedPDU, stateReference);;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 140, in processPdu; (self.__verifyAccess, snmpEngine));;
File "/usr/bin/snmpsimd", line 991, in handleMgmtOperation; PDU, acInfo;;
File "/home/ngeo/.local/lib/python2.7/site-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 262, in handleMgmtOperation; rspVarBinds = mgmtFun(varBinds, (acFun, acCtx));;
File "/usr/bin/snmpsimd", line 429, in readNextVars; varBinds, **self.__getCallContext(acInfo, True);;
File "/usr/bin/snmpsimd", line 410, in __getCallContext; pduType ) = acCtx # this is not [yet] documented;;TypeError: 'SnmpEngine' object is not iterable;;
...
Is there something going on with my python modules or with the simulator?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Simulating SNMP Agents — SNMP Simulator 0.4 documentation
SNMP agents simulation data ends up in .snmprec files. Once SNMP request comes in, SNMP Simulator constructs .snmprec file path and tries to...
Read more >Re: [snmpsim-users] The application snmpsim.py died after snmpwalk
wrote: > > Hello, > > I try to use snmpsim.py but when I send snmpwalk. ... pyasn1-0.1.8]# snmpsimd.py --version > SNMP Simulator...
Read more >How to use SNMPSim to simulate a network device based on ...
One purpose would be to present a simulation of a customer's device for trouble-shooting ITNM. SNMP Simulator can present OIDs and their values ......
Read more >iReasoning SNMP Agent Simulator User Guide
In this example, SNMP walk data is generated at. “c:\simulators\data\mibdata” based on MIB-II and host mib. To add newly generated data to a...
Read more >snmpsim · PyPI
Or, if you'd better query your donor SNMP Agent with Net-SNMP's snmpwalk, ... snmpsimd.py --agent-udpv4-endpoint=127.0.0.1:161 --process-user=simulator
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finally fixed. The problem was conflicting installations of venv and wrong versions. Had to uninstall everything and install only in venv. Now seems to work ok in venv. I suggest you edit the installation tutorial a bit so that it has more specific instructions. Thank you very much! Keep up the good work!
What snmpsim/pysnmp versions you are running?
Could you please upgrade to the latest released version and report back whether it works for you?