Our MIB file comes from a standards committee outside of our company so we have 
no control what goes into the MIB file.  Our subagent's code is generated from 
this MIB file (of course) and we simply can not provide certain data which 
might be requested at this time. Currently, I am simply returning 
SNMP_NOSUCHINSTANCE from the scalar GET routine for those scalar values we can 
not provide.

Example:
Lets say I run the mib2c tool using the scalar configuration file and it 
generates the ".c/.h" code files for me.   Inside the ".c" file there are three 
GET routines.  Two of these GET routines I will be able to obtain data to 
return but for one of those GET routines we will not be able to get any valid 
data at this time.  I am trying to figure out what do return when no data is 
available for one GET routine.

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?

I know for the MfD tables (based on a tutorial I read) I can create a 
"valid_columns" array which lists the Enum values of the table fields which are 
supported.  As a result, for tables, I believe I can exclude certain columns, 
however, I am not sure how to do this for certain scalar GET routines.
 


Robert Story <[EMAIL PROTECTED]> wrote: On Wed, 8 Aug 2007 15:52:53 -0700 (PDT) 
Need wrote:
NH> In our implementation, the "ocStbHostSoftwareVersion" data is not being 
supported right now so there will be no way to obtain thsi data.   What is the 
best way to handle a SNMP request from the real world asking for this data?   

How about simply not registering the object?


       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------------------------------------------------------------------
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