Re: table.c helper return code

Robert Story <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, 27 Oct 2006 21:37:38 +0800 Pamidipati wrote:
PSG> But we noticed a problem if there are lot of tables in sequence which
PSG> don't have rows in them, and a get-next is issued on the first table.
PSG> Following is the description of the same.
PSG> 
PSG> We have 600 tables in lexicographical order in the MIBs owned by
PSG> subagent and don't have rows populated in them. Table-601 has rows in
PSG> it. We gave snmp get-next on Table1 OID.
PSG> SNMPD has sent the Agentx get-next request to Subagent on the Table1 OID
PSG> with END OID scoped to Table2 OID.
PSG> Subagent called the Table1 handler function. As there are no rows in the
PSG> table, it returned SNMP_ERR_NOERROR to the library and this caused
PSG> Subagent to call the Table2 handler. Subagent called all the Table
PSG> handlers in the sequence and table-601 handler gave the response. Now
PSG> Subagent, checked that Table-601 OID is not in the scope of END Table2
PSG> OID in the request and returned SNMP_ENDOFMIBVIEW to SNMPD.

This confirms a suspicion I have had for a while. I think that this is a bug
in the sub-agent processing. What I'm guessing is that the test for scope is
only done when an answer is found. If the test was also done when moving
between handlers, the ENDOFMIBVIEW would be returned immediately after each
table.

PSG> Please let me know if there is any error code, instead of
PSG> SNMP_ERR_NOERROR, that subagent can return to the library for get-next
PSG> requests on tables having no rows, which avoids this loop of all the
PSG> tables at Subagent.

Nope, it will have to be fixed in the agent code. Can you please file a bug
report with the information you provided in your original message?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.