Robert Story wrote:
On Mon, 25 Jul 2005 08:07:20 -0700 (PDT) Ravi wrote:
RRS> Is it possible to run multiple snmpd i.e net-snmp agent in a single RRS> Linux box with different port numbers? If yes please help me out in RRS> configuring this.

Yes. simply put the port number on the command line, and specify the path to
the snmpd.conf... Put the common stuff in the default snmpd.conf, and then
create any needed custom snmpd.conf files and load them using -c:

        snmpd -c /usr/local/share/snmp/agent1.conf udp:1161
        snmpd -c /usr/local/share/snmp/agent2.conf udp:1162

Doesn't this still cause a clash on the persistent file, causing one agent to read/overwrite the entries of the other? You may need to either use the "persistentDir" config token or the SNMP_PERSISTENT_FILE and/or SNMP_PERSISTENT_DIR environment variable(s), then, but be aware that they'll only work correctly in very recent code (5.1.3 or 5.2.x/5.3.x from CVS, IIRC).


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to