Title: Message
We are using Net-snmp 5.1.1. table_handler() as described in agent/helpers/table.c
 
For get-next processing, what should be the error code to be returned to the net-snmp library if there is no-next instance for the given OID..? 
 
Our application uses  netsnmp_set_request_error() api with errors SNMP_NOSUCHINSTANCE/SNMP_NOSUCHOBJECT to set the error code in the varbind. After going through the netsnmp_set_request_error() definition, we found that if mode is GET-NEXT and error is either SNMP_NOSUCHINSTANCE or SNMP_NOSUCHOBJECT, neither status nor type of the netsnmp_variable_list structure is modified.
 
In regards to this, any clarifications on the following will be greatly appreciated.
 
1. Can this cause,  calling table handlers in a loop or in non-lexicographical order..?
 
2. If SNMP_NOSUCHINSTANCE/SNMP_NOSUCHOBJECT can't be returned to Net-Snmp library, what is the appropriate error code in such a case..?
 
3. We are assuming that SNMP_NOSUCHINSTANCE/SNMP_NOSUCHOBJECT error-codes from the subagents, will be converted to SNMP_ERR_GENERR / END_OF_MIB_VIEW by the master agent before responding to manager for a GET-NEXT request.
 
Thanks,
suresh.
 

Reply via email to