Re: Return type

This is a discussion on Re: Return type within the SNMP Coders forums, part of the Networking and Network Related category; On 03/01/2008, Siva Prakash Reddy G <sivag@aztecsoft.com> wrote: > I don't understand below ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-03-2008
Dave Shield
 
Posts: n/a
Default Re: Return type

On 03/01/2008, Siva Prakash Reddy G <sivag@aztecsoft.com> wrote:
> I don't understand below statements as Dave mentioned.


>> You would do better concentrating on the newer handler-based approach.


There are two styles of writing the code for MIB modules.
One typically uses a routine 'var_xxx', and has been supported
ever since the start of the original CMU-SNMP package.

The other typically uses a routine 'xxx_handler' and was introduced
with Net-SNMP v5.0. This newer approach does a lot more of the
work internally, and leaves less up to the MIB code. Particularly
for implementing MIB tables.


Unless you are maintaining existing 'var_xxx' style MIB code,
there's no real point in learning about this style. You would be
better off concentrating on the newer approach.

See the project documentation (on the web site) for more information.


>> I would also suggest that you get a feel for writing MIB modules
>> Yourself, before starting to delve into the internals of the agent


You are asking quite detailed questions about the inner workings of
the agent. This is not really necessary, if all you want to do is
implement a MIB table, or some scalar objects. The internals of
the agent can get fairly complicated, and it's not sensible to try
and understand everything all at once.

Start by implementing a simple MIB table, and get familiar with
how the visible bits work first. *Then*, once you're happy with
that, then you could consider looking at how this MIB module
fits into the wider agent framework.
But if you don't have that basic grounding of how to use the system,
it's going to be very difficult to guide you through the advanced stuff.
And quite honestly, I don't have the time!



Start with a simple MIB table.
Don't try to run before you can walk :-)

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0