From: Magnus F. <ma...@ly...> - 2009-11-26 07:06:28
|
On Thu, 2009-11-26 at 12:13 +0530, Saleem Ahmed Khan wrote: > Hi, > > There is a requirement to simulate the SNMP Agents for testing > purpose.. I need to support around 1000 devices with the some dummy > values... (for e.g getting whole mib tree of some cisco device and use > them in the agent) . I am using net-snmp to do this. I was able to add > the predefined values for the System table by adding to the snmpd.conf > file. Now i am trying to do for other mibs.. but not able to get the > response... > > Is this possible to create this using Net-SNMP Yes. I think you want to read about the override directive in the documentation for snmpd.conf. > and also can i run multiple agent with the different ports on the same > machine... Yes. You can even run one agent with multiple ports on the same machine. snmpd -c config.cfg :5000 :5001 :5002 ... Note that you might run into problems with the number of open file descriptors and that each agent is single threaded and finally the fact that select(2) is used for multiplexing in the agent. The first problem could be handled by changing the ulimit or running more agents (e.g. two that handle half the port range each) and the second and third problem could be handled by running more agents. /MF |