Re: ucd-snmp vs. net-snmp (foot print)

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/7/30 Juliana Purjo <[email protected]>:
> Concerning MIB modules... Having looked at 4.2.x code base, I got an
> impression there is some code repetition in the agent implementations.

Almost certainly.
One of the things driving the 5.x handler mechanism was the recognition
that there was a lot of processing that is common across many MIB
implementations.  By introducing a chain of handlers to process a request,
this has allowed the use of shared "helper" routines, which can consolidate
this common processing into one block of code.


> Also there seems to be quite a lot of static buffers (defined inside
> functions) that are mostly sitting unused eating runtime memory?

Quite likely.
Static buffers typically offer a simpler, safer and more time-efficient
approach than dynamic allocation for internal scratch working space.
In most environments, the size costs are not particularly significant.

It would be fair to say that the Net-SNMP agent is not really geared
towards embedded systems, where code size may well be of greater concern.



> Is it quick to outline what kind of additional features are we talking here?

Not really.
The UCD line has been essentially dead for something like 6-7 years.
(The 4.2.7 release was simply a housekeeping release, to pick up
a number of bug fixes - 4.2.6 was the last "active" release on this line).

I can't really recall everything (or even the more important stuff) we've done
since 2002!


> Thinking of replacing v4 net-snmp, is it possible to disable most of this
> new weigth (with appropriate ./configure invocation)?

Not easily.
You'd probably need to use configure to select the MIB modules you want
to include, then manually tweak the Makefiles (such as 'helpers/Makefile')
to omit anything that these don't actually use.

But this isn't something that the current build environment handles
automatically.



Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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.