On Sat, 13 Nov 2004 14:51:43 -0800 Ram wrote:
R> I am trying to reduce code size for my snmp-agent. After selecting the 
R> following configuration options my foot print size is about 700 KB.

There is a FAQ entry on this:

  http://www.net-snmp.org/FAQ.html#How_can_I_reduce_the_memory_footprint_

You've got a few, but there are some suggestions that my help.

Also, if you use 5.2, there is a new option to disable mib loading. Add
--disable-mib-loading to your configure options.

R> 1. How can I remove SNMPv3 related modules?

You can remove the modules by adding them to the --with-out-mib-modules
configure line. But the code in the libraries will remain.

R> 2. Are there any other modules that I can remove/modify to
R> further reduce the foot print size?

You can remove almost all of them, if you don't need them. The configure option
--enable-mini-agent does that for you, though it does leave in a few snmpv3
modules. Some of those are probably safe to remove, others may cause problems
if removed. Try taking them out one at a time.

R> 3. I want to use current helper modules
R> to for table retrieval options. Is there any other simple option to
R> implement my own data structures.

Not sure I follow you here. are you trying to implement modules for external
data, or data kept in the agent?

R> 4. How can I set default configuration options without using any of the
R> configuration files?

Some can be specified via configure (see the help output). Others can be
changed in the net-snmp-config.h header. Some can also be set via environment
variables. A few stragglers would require patching code.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to