I understand now, thanks.   

However, what is the difference between SNMP_NOSUCHINSTANCE and 
SNMP_NOSUCHOBJECT ?    Basically, how would an SNMP operator interpret each of 
these responses?



Dave Shield <[EMAIL PROTECTED]> wrote: On 09/08/07, Need Help  wrote:
> What do you mean about registering an object?  Is this a way of indicating
> which scalar value GET routine should not be called at all?  Is there an
> example of registering an object?

You register a scalar object using a statement of the form

    netsnmp_register_scalar(...);

or

    netsnmp_register_xxx_instance(...);

in the init_xxx() routine.
This tells the agent about this MIB object, and how to deal with requests
for it.


You don't register a scalar object, using a statement of the form:

   /* netsnmp_register_scalar(...); */
or
   /* netsnmp_register_xxx_instance(...); */

in the init_xxx() routine instead.


If the agent doesn't know anything about a MIB object, it will automatically
return 'noSuchObject' for any such requests.

Dave


       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to