I've tried building a small agent for MIPS with net-snmp 5.1.4 and it worked
like a breeze for me. In fact, I had problems with 5.4.x versions, and they
were larger agents anyway. I needed net-snmp for v2 trap generation only, and I
was able to reduce the snmpd + all the required .so files to about 450kb.
Also, these files weren't stripped, so maybe if you strip them, you can reach
~ 300kb for the entire agent
The configure options I used are almost exactly the ones Magnus specified.
Kapil
Magnus Fromreide <[EMAIL PROTECTED]> wrote:
On tis, 2007-09-04 at 12:46 -0400, [EMAIL PROTECTED] wrote:
> I've followed the advise in the FAQ about making Net-SNMP smaller but
> I'm looking to go to the next level. I've got a v2c, v3 system running
> but for a new project, all I really need is v2.
>
> I'm working with Net-SNMP v5.2.2. I found the --disable-snmpv1 in the
> configure script but it leads to
>
> ./../snmplib/snmp_api.c:2956: error: 'SNMP_VERSION_1' undeclared
> (first use in this function)
Try using HEAD, 5.4.x could work as well.
> and similar errors in other modules. And I can't find a
> --disable-snmpv3 or --with-out-v3 or anything in configure.
No, it is annoyingly enough missing and it is nontrivial to introduce
it. I would love to be able to specify --with-out-snmp :-)
> Will removing SNMP versions slim down Net-SNMP enough to pursue this avenue
> and, if so, is --disable-snmpv1 better in a version later than v5.2.2?
Removing just v1 gives me 788 bytes in text size and 652 bytes in file
size. Given that this is less than 0.5% I'd say it isn't worth the
trouble.
When I wish to build a really stripped down net-snmp then I use the
following command:
../net-snmp/configure --enable-mini-agent --without-rpm
--without-kmem-usage --without-root-access --with-defaults
--prefix=/tmp/net-snmp-install --disable-debugging --disable-mib-loading
--disable-applications --disable-manuals --disable-scripts
--with-out-mib-modules=snmpv3mibs,mibII/vacm_vars --disable-privacy
--disable-md5 --disable-shared --with-out-transports=TCP,Unix,Callback
--without-openssl --with-cflags=-Os
> I know when working with Tcl/Tk, if someone needs a really small
> version, they are often referred to the one just before UTF support was
> added. Is there an old, stable Net-SNMP that predates some growth jump
> that I might consider working with?
I am too young to be able to answer that.
/MF
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders