On Mon, 18 Oct 2004 15:16:55 -0700 Srini wrote:
SK> We started with ucd-snmp-4-2-4 and were following ucd-snmp style for mib
SK> coding. Now we have migrated to net-snmp-5.1 but are continuing using the
SK> old style.
SK>
SK> Now, we are planning to migrate to net-snmp style for mib coding also.
SK> For taking this decision, like to know the advantages in using new style.
SK> Can some point me to links or let me know the advantages.
Funny you should ask. This just came up on IRC yesterday.
The benefit is that (we think) it is a little easier to understand, and you can
take advantage of some 'helpers' to do some grunt work for you..
Q: Any performance differences?
A: i don't think any benchmarks have been done. There are multiple new style
helpers, too. Some of the 'new' helpers have huge performance gains in
certain circumstances (really large tables; eg route table), but that's mostly
due to data storage/access changes. And of course the tradeoff is run-time
memory use
Q: If an snmp querye PDU contains 3 (eg) varbinds, all from the same table, in
the ucd code we know the agent sends 3 requests to the individual set funcs of
the varbinds. If we go to the new style would the agent "collect" these and
make a single call?
A: yes, the new style will collect into one request to the handler. There is
even a 'row merge' helper which will break/merge it into one call per row, so
all the requests for a certain row will come in together.
Q: Are get and set requests handled differently?
A: get and set are handled in the same way now. The same handler is
called for both, and the handler can switch on the request mode. Though there
is a helper that will split it up each modes into its own function call. Even
then, all the parameters are the same.
I've also put this up at
http://www.net-snmp.org/faqs/rstory/#mibstyle
If anyone has any other suggestions, let me know...
--
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders