Reposting a bounced post from yesterday

 

  _____  

From: Adam Bell 
Sent: Monday, February 19, 2007 4:23 PM
To: [EMAIL PROTECTED]
Subject: How to reduce the footprint of net-snmp? - Continued

 

I was following the thread for reduction of footprint size and tried the
suggestion.

After trying the suggestions, I did get a quite smaller footprint but it
seems very unstable for v5.4.  

I am getting core dumps on simple system MIB gets (even after they return
the proper values)

 

v5.3.2 is very stable.

 

Attached are the configure scripts for v5.3.2 and v5.4.

These compiled down to (625M and 1.05M respectively)

 

The biggest difference between these two versions after the reduction is
primarily the libnetsnmpmib.so component but I believe this is because fewer
MIBs were supported/coded under v5.3.2.

 

The configure options seem to be a bit of black magic as some of the options
I have found are not documented so I can only trust they remove something
non-needed in the code.

 

--enable-mini-agent seems to be the option selecting the MIB subset to
compile in.

 

Has anyone else seen a core dump due to configuration option combinations?

 

Adam J. Bell
Technical Director
SafeNet Inc.

cell 443-838-5361

Office 443-327-1340
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 


The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If
you have received this communication in error, please notify us immediately
by replying to this message and deleting it from your computer without
copying or disclosing it.



The information contained in this electronic mail transmission may be 
privileged and confidential, and therefore, protected from disclosure. If you 
have received this communication in error, please notify us immediately by 
replying to this message and deleting it from your computer without copying or 
disclosing it.
--- Begin Message ---
  

#
#Configuration options for the building of the Net-snmp agent libraries
#

if [ ! -d /var/net-snmp ]; then
    mkdir /var/net-snmp
fi
 
./configure  \
--disable-debugging --enable-mini-agent  --without-keymem-usage 
--disable-mib-loading \
--disable-applications --disable-manuals --disable-scripts --with-cflags="-O2" \
--without-openssl --with-transports=UDP,UDPIPv6 
--with-out-transports=TCPIPv6,TCP,AAL5PVC,IPX,Unix,Callback \
--enable-ipv6 \
--with-default-snmp-version=3 \
[EMAIL PROTECTED] \
--with-sys-location=Belcamp,Maryland \
--with-persistent-directory=/var/net-snmp \
--with-persistent-mask=0x644 \
--with-logfile=/var/log/snmpd.log \
--with-server-send-buf=8192 \
--with-server-recv-buf=8192 \
--with-client-send-buf=8192 \
--with-client-recv-buf=8192 \
--without-perl-modules \
--disable-embedded-perl \
--disable-perl-cc-checks \
--disable-perl

#another static option
#--with-ldflags=-Bstatic

#--disable-snmpv1 \
#--disable-snmpv2c \

#--with-out-mib-modules=agentx,disman,disman/event,disman/schedule,snmp_proxy,ucd_snmp,examples/ucdDemoPublic
 \
#--with-mibdirs=/usr/share/snmp/mibs_HAIPE \
#--with-mibfiles=HAIPE-ASSIGNMENTS-MIB.txt \


#this is for C code modules
#--with-mib-modules=haipe1 this covers the c and h file from mib2c

#--with-out-mib-modules=default_modules,snmpv3mibs,mibII,mibII/ipv6 \
#ucd_snmp,notification,notification-log-mib,target,agent_mibs,agentx,disman
#--with-mib-modules= \

# This does not turn off -g option in CCFLAGS for compilation of debug symbols
#--disable-debugging



#this option breaks the make
#./.libs/libnetsnmpmibs.so: undefined reference to `initialize_table_ifXTable
#--enable-mini-agent


#--disable-des \
#--disable-md5 \


#options to review
#
#Add these back in later, we only need AES and SHA1

#
#
# --disable-snmpv2c  add later - get agent working first
#
#
#
# --enable-debugging   prints out at all time, no production
# --disable-debugging  get rid of all debug
# --enable-developer   lots of debug
#
# -- with-mibs, --with-mibdirs  when we compile HAIPE
# --with-mib-modules=
#
#
#if we use opensll
#-with-openssl=PATH


#Errors
#--with-security-modules=usm not recognized

#transport Callback is related to AgentX, Unix required to link properly

#
#--with-mibdirs=\"dir1:dir2:\"   Default directories to look for mibs.
#                                  (Default: 
\$HOME/.snmp/mibs:DATADIR/snmp/mibs)
#--with-mibs=\"item1:item2:\"    Default mib IDs to read.
#                                  (The default list is \"IP-MIB:IF-MIB:
#                                  TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
#                                  with the addition of any mibs used
#                                  by the mib modules the agent is
#                                  configured with)
#--with-mibfiles=\"file1:file2\" Defaul
#
#--with-mib-modules=\"item1 ...\"  Compile with additional mib modules
#                                    (Space separated list).
#--with-out-mib-modules=\"list\"   Compile without these mib modules.
#


--- End Message ---
--- Begin Message ---
  

#
#Configuration options for the building of the Net-snmp agent libraries
#

if [ ! -d /var/net-snmp ]; then
    mkdir /var/net-snmp
fi
 
./configure  \
--disable-debugging --enable-mini-agent --without-keymem-usage 
--disable-mib-loading \
--disable-applications --disable-manuals --disable-scripts 
--with-cflags="-DINET6 -O2 -DLinux" \
--without-openssl --with-transports=UDP,UDPIPv6 
--with-out-transports=TCPIPv6,TCP,AAL5PVC,IPX,Unix,Callback \
--enable-ipv6 \
--with-default-snmp-version=3 \
[EMAIL PROTECTED] \
--with-sys-location=Belcamp,Maryland \
--with-persistent-directory=/var/net-snmp \
--with-persistent-mask=0x644 \
--with-logfile=/var/log/snmpd.log \
--with-server-send-buf=8192 \
--with-server-recv-buf=8192 \
--with-client-send-buf=8192 \
--with-client-recv-buf=8192

#--disable-snmpv1 \
#--disable-snmpv2c \

#another static option
#--with-ldflags=-Bstatic
#--enable-static \
#--enable-fast-install \

#--disable-snmpv1 \
#--disable-snmpv2c \
#--with-out-mib-modules=agentx,disman,disman/event,disman/schedule,snmp_proxy,ucd_snmp,examples/ucdDemoPublic
 \
#--with-mibdirs=/usr/share/snmp/mibs_HAIPE \
#--with-mibfiles=HAIPE-ASSIGNMENTS-MIB.txt \

#--disable-embedded-perl \
#--disable-perl-cc-checks \
#--disable-perl \
#--without-perl-modules \



#this is for C code modules
#--with-mib-modules=haipe1 this covers the c and h file from mib2c

#--with-out-mib-modules=default_modules,snmpv3mibs,mibII,mibII/ipv6 \
#ucd_snmp,notification,notification-log-mib,target,agent_mibs,agentx,disman
#--with-mib-modules= \

# This does not turn off -g option in CCFLAGS for compilation of debug symbols
#--disable-debugging



#this option breaks the make
#./.libs/libnetsnmpmibs.so: undefined reference to `initialize_table_ifXTable
#--enable-mini-agent


#--disable-des \
#--disable-md5 \


#options to review
#
#Add these back in later, we only need AES and SHA1

#
#
# --disable-snmpv2c  add later - get agent working first
#
#
#
# --enable-debugging   prints out at all time, no production
# --disable-debugging  get rid of all debug
# --enable-developer   lots of debug
#
# -- with-mibs, --with-mibdirs  when we compile HAIPE
# --with-mib-modules=
#
#
#if we use opensll
#-with-openssl=PATH


#Errors
#--with-security-modules=usm not recognized

#transport Callback is related to AgentX, Unix required to link properly

#
#--with-mibdirs=\"dir1:dir2:\"   Default directories to look for mibs.
#                                  (Default: 
\$HOME/.snmp/mibs:DATADIR/snmp/mibs)
#--with-mibs=\"item1:item2:\"    Default mib IDs to read.
#                                  (The default list is \"IP-MIB:IF-MIB:
#                                  TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
#                                  with the addition of any mibs used
#                                  by the mib modules the agent is
#                                  configured with)
#--with-mibfiles=\"file1:file2\" Defaul
#
#--with-mib-modules=\"item1 ...\"  Compile with additional mib modules
#                                    (Space separated list).
#--with-out-mib-modules=\"list\"   Compile without these mib modules.
#


--- End Message ---
-------------------------------------------------------------------------
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-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to