Re: [snmpsim-users] Simulator Performance
Brought to you by:
elie
|
From: Ilya E. <il...@gl...> - 2013-08-28 06:39:03
|
Hi Kaleb, The latest simulator code has relevant fixes and improvements: http://snmpsim.cvs.sourceforge.net/viewvc/snmpsim/snmpsim/?view=tar so the following would work like this: $ snmpsimd.py --agent-udpv4-endpoint=10.200.1.1:5111 --v2c-arch --daemonize --logging-method=file:test.txt --pid-file=snmpsimd-1.pid Let me know in case of any issues. -ilya On 08/28/2013 03:21 AM, Kaleb Loo wrote: > Hello, > Sweet, thanks! > It works fine. > One last thing. > I tried to run the simulator in the background using the daemonize > parameter but I couldn't get it to work for me. > When I run it and output to a log, the contents of the log are empty > and when I look for the process I can't find it. > I was wondering if I was doing it wrong. > > #snmpsimd.py --agent-udpv4-endpoint=10.200.1.1:5111 > <http://10.200.1.1:5111> --v2c-arch --daemonize > --logging-method=file:test.txt > > Thank you, > Kaleb Loo > > > On Tue, Aug 27, 2013 at 1:03 PM, Ilya Etingof <il...@gl... > <mailto:il...@gl...>> wrote: > > Alright, here's a version of snmpsim which supports the > --transport-id-offset=<number> command-line parameter to let you > control transport IDs allocation: > > http://snmpsim.cvs.sourceforge.net/viewvc/snmpsim/snmpsim/?view=tar > > Let me know in case of any issues with it. > > -ilya > > > On 08/28/2013 02:03 AM, Kaleb Loo wrote: > > Hello, > > Thanks for the reply again. > I figured that's what I would have to do, but was hoping there > was a cleaner solution. > Thank you for all of your help, > Kaleb Loo > > > On Tue, Aug 27, 2013 at 11:56 AM, Ilya Etingof <il...@gl... > <mailto:il...@gl...> <mailto:il...@gl... > <mailto:il...@gl...>>> wrote: > > Well, that's a good point as there's currently no way to > control > transport IDs allocation (but this could be easily added into > snmpsimd.py). > > The simplest solution would be to let multiple instances > allocating the same set of transport IDs but use dedicated > --data-dir's for each instance having different .snmprec > files for > the same transport ID in each --data-dir. > > What do you think? > > -ilya > > > On 08/28/2013 01:36 AM, Kaleb Loo wrote: > > Hello, > Thank you for your response. > If I run multiple instances of the simulator, how do I > get the > simulator to start the ip association with the desire > transport ID. > For example, if my first instance uses transport IDs > 10-253 > for IPs 10.200.1.1-254 > How do I get the next instance to use transport IDs > 254-508 > for IPs 10.200.2.1-254 > Thank you, > Kaleb Loo > > > On Tue, Aug 27, 2013 at 10:56 AM, Ilya Etingof > <il...@gl... <mailto:il...@gl...> > <mailto:il...@gl... <mailto:il...@gl...>> > <mailto:il...@gl... <mailto:il...@gl...> > > <mailto:il...@gl... <mailto:il...@gl...>>>> wrote: > > Hi Kaleb, > > Here's a quick link on the topic of simulator > performance > improvement: > > http://snmpsim.sourceforge.net/simulator-tips.html > > -ilya > > > On 08/26/2013 10:44 PM, Kaleb Loo wrote: > > Hello, > I was wondering if it is possible to increase the > performance > of the simulator with any settings. > I need to simulate 500+ devices and poll each > of them > every > 10-30 seconds. > I am able to generate the 500 devices but the > simulator seems > to have trouble maintaining and gathering data > for all 500 > devices. > Currently I am able to simulate 250 devices > and grab > data from > them with no problem. > Is there any way to improve the performance? > > I am running the simulator on a linux machine > with 8 > GB of RAM > running CentOS. 2.67GHz CPU > > Thank you, > Kaleb Loo > > > > > > > |