I am writing an SNMP sub-agent that retrieves data dynamically from a 
data source. I have the MIB created with the structures it expects to 
return, however, GETNEXT handling is not working as I expected. We don't 
use the SNMP table at all as the dynamic data source has its own table 
structure that we translate in the sub-agent for SNMP.

My understanding was that when GETNEXT was received, I should use 
snmp_set_var_objid to set the next OID and then do the same process as 
GET on that next OID. When attempting to walk the table, however, it 
continuously attempts to retrieve the first row before the snmpwalk 
reports a timeout.

What I'm doing to set the next OID is:
table_info = netsnmp_extract_table_info(requests);
++table_info->index_oid[table_info->index_oid_len-1];
snmp_set_var_objid(requests->requestvb, table_info->index_oid, 
sizeof(table_info->index_oid_len));

I've been searching for examples of this and haven't found any, though 
based on comments in this mailing list, people have been able to make it 
work, so I've got to be missing something somewhere. Thanks in advance.



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

Reply via email to