On Thu, 2005-12-08 at 17:10 -0800, Tom Cumming wrote: > Right now our MFD based agent returns MFD_SKIP if an object doesn't > exist, and that's gets translated by net-snmp into a value being > returned who's type is, SNMP_NOSUCHINSTANCE
noSuchInstance is the correct error (exception) for a GET request. It's not appropriate for a GETNEXT request. Now with the Net-SNMP agent, that doesn't matter, since many of the helpers know which rows (probably) exist, so convert GETNEXT requests into the appropriate GET call automatically. This simplifies things for the user-level MIB handler. But if you're working with an agent (or agent helper) that doesn't do this conversion, it would indeed get confused by receiving 'noSuchInstance' for a GETNEXT request. You should either return the next instance that *does* exist, or else 'endOfMibView' (in whatever form is appropriate for that particular toolkit). Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users