RE: Reducing the size of libnetsnmp, libnetsnmphelpers etc lib files

"Srivastava, Namburi (IE10)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <0BE793E111BFFF449DFB3207E2977BE0148285@IE10EV812.global.ds.honeywell.com>
Also one more observation is, using any of these configure options
Except for --disable-debugging, I havent' seen significant reduction in
size of libnetsnmphelpers.a and libnetsnmp.a... Am I missing something
here?

-----Original Message-----
From: Srivastava, Namburi (IE10) 
Sent: Tuesday, January 09, 2007 4:53 PM
To: 'Dave Shield'
Cc: [email protected]
Subject: RE: Reducing the size of libnetsnmp, libnetsnmphelpers etc lib
files

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.