On 03/01/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to