I am looking to using net-snmp in an embedded device, and the limits available
to me, though not extremely rigid, are fairly tight. Typically, I would be
looking to have all snmp related stuff within 500kb.
Therefore, I am working with 5.2.1 instead of 5.4 because it is substantially
smaller, and most likely I'd not need newer features.
I don't need any application, other than snmpd. (I load my .so file by calling
dlmod from the conf file).
The files generated after doing a compile and make/install are
libnetsnmphelpers.so, libnetsnmpagent.so, netsnmpmibs.so, netsnmptrapd.so and
libnetsnmp.so.
Would I need all these files on my target (with the correct LD_LIBRARY_PATH
set) to be able to run the agent?
My primary use of net-snmp would be for SNMPv1/v2c only.
I don't even need mib2c because I create pdu "by hand" instead of
auto-generated code.
I did a configure with the following options:
./configure --disable-debugging --enable-mini-agent --with-transports=UDP
--without-kmem-usage --disable-mib-loading --disable-applications
--disable-manuals --disable-scripts
This led to the following .so files:
agent/helpers/.libs/libnetsnmphelpers.so.5.2.1 300103 bytes
agent/.libs/libnetsnmpagent.so.5.2.1 248522 bytes
agent/.libs/netsnmpmibs.so.5.2.1 170280 bytes
apps/.libs/libnetsnmptrapd.5.2.1 81850 bytes
snmplib/.libs/libnetsnmp.so.5.2.1 811169 bytes
Looking at the configure-summary file after running configure:
SNMP Versions Supported: 1 2c 3
Net-SNMP Version: 5.2.1.2
Building for: linux
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: snmpv3mibs mibII/snmp_mib mibII/system_mib
mibII/sysORTable mibII/vacm_vars utilities/execute
SNMP Perl modules: disabled
Embedded perl support: disabled
Authentication support: MD5
Encryption support:
Though I chose default SNMPv2 support, it still is going to compile in SNMPv3
support.
Is there some way I can keep SNMPv3 part from being compiled into the .so
files?
I believe one possible way is to keep out files like snmpusm.c, vacm.c and
snmpv3.c out from the agent/Makefile. But since so many other files reference
those functions, it would get pretty painful manually removing those references
from those files.
Is there an easier and cleaner way of reducing the foorprint of the net-snmp
agent running on an embedded platform?
A somewhat related question - is there a configure option that lets me build
net-snmp for mips-linux? I tried but ran into some problems with perl. Has
someone done that before? As far as I remember, the documentation doesn't
mention mips-linux as one of the supported platforms.
Thanks,
Kapil
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders