Yeah, this does reduce the size of the libnetsnmpmibs.a library. But when I build my subagent with these library files (with --enable-mini-agent option enabled) and also --disable-debugging enabled, I get the following messages displayed whenever I run my subagent.
Whenever queried for values of mibnode1,mibnode2 or mibnode3, I get an oid not found error. I don't see the sub-agent registering with the master agent as well $>./SNMPSubagent -d -f -Le I am agentX SubAgent...trace: init_mibnode1(): src/SNMP/SubAgent/mibnode1.c, 70: mibnode1: Initializing trace: init_mibnode2(): src/SNMP/SubAgent/mibnode2.c, 69: mibnode2: Initializing trace: init_mibnode3(): src/SNMP/SubAgent/mibnode3.c, 70: mibnode3: Initializing SNMPv2-MIB: Module not found RFC1213-MIB: Module not found SNMPv2-SMI: Module not found SNMP-VIEW-BASED-ACM-MIB: Module not found SNMP-COMMUNITY-MIB: Module not found SNMP-FRAMEWORK-MIB: Module not found SNMP-MPD-MIB: Module not found SNMP-USER-BASED-SM-MIB: Module not found SNMP Subagent-Main is up and running. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, January 09, 2007 11:04 AM To: Srivastava, Namburi (IE10) Cc: [email protected] Subject: Re: Reducing the size of libnetsnmp, libnetsnmphelpers etc lib files On 09/01/07, Srivastava, Namburi (IE10) <[EMAIL PROTECTED]> wrote: > The --enable-mini-agent option doesn't reduce the size of > libnetsnmpmibs.a much. I'm sorry? $ cd net-snmp-5.4 $ make distclean ; ./configure # i.e. a default build $ (cd agent ; make libnetsnmpmibs.la) $ ls -l agent/.libs/libnetsnmp.a 3818402 agent/.libs/libnetsnmp.a $ make distclean ; ./configure --enable-mini-agent $ (cd agent ; make libnetsnmpmibs.la) $ ls -l agent/.libs/libnetsnmp.a 233326 agent/.libs/libnetsnmp.a I would say that a drop from a touch under under 4Mb to 230Kb is a significant reduction, wouldn't you? > Also, is there any order in which these configure options to be used??? No Dave ------------------------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
