On 09/08/07, Need Help <[EMAIL PROTECTED]> 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
-------------------------------------------------------------------------
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