So, the process is facilitated by the registration process via the macro
or function call REGISTER_MIB, and the OIDs that become known to the
master agent (generally, the daemon snmpd) are those that are listed in
the <mib name>_variables structure, such as that generated by mib2c.
This is what I might have guessed (well, I did guess this) but, I have
not elsewhere found documentation that explicates the process.

Now, I must ask, how is accessibility decided?  Is it by a call to the
module (as I understand it, this is the term for MIB implementation
code), such as might be serviced by code looking like:

   if(header_generic(vp,name,length,exact,var_len,write_method)
      ==MATCH_FAILED) return NULL;

or is this decision made by some other means?  If so, what is that process?

In as much as this information is of value to me, it is probably well to
get this documented in the users listserve archives, for the benefit of
those who seek to extend the agent.

WRB

---- Original message ----
>Date: Fri, 19 Nov 2004 10:18:19 -0500
>From: Robert Story (Users) <[EMAIL PROTECTED]>  
>Subject: Re: WRB - Computing the next OID by an agent.  
>To: <[EMAIL PROTECTED]>
>Cc: NetSNMPUsers <[EMAIL PROTECTED]>
>
>On Thu, 18 Nov 2004 17:46:52 -0800 [EMAIL PROTECTED] wrote:
>WC> I am looking to understand the detailed process used by the
>WC> Net-SNMP toolkit of computing the next OID, such as is done
>WC> during a walk of a MIB.
>
>The agent does not compute the value. It searches the registration tree for the
>first registered object with an OID range greater than the incoming OID. The
>handler for that object is called and asked for the 'next' object. If none is
>returned, it moves on to the next handler, until it has an object. Then access
>control is used to determine if that object is accessible. If not, it asks for
>the next object, until it finds one that is accessible, and then returns it to
>the requester.
>
>-- 
>Robert Story; NET-SNMP Junkie
>Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
>Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
>You are lost in a twisty maze of little standards, all different. 
William R. Buckley
President
SoftNerd, A California Corporation
Director Emeritus,
International Core Wars Society
[EMAIL PROTECTED]
415-240-6107


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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

Reply via email to