RE: table.c helper return code
"Pamidipati Suresh-G20238" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Rob, Thanks for your reply. Raised the bug report and following is the link to it. http://sourceforge.net/tracker/index.php?func=detail&aid=1586988&group_i d=12694&atid=112694 Thanks & Regards, Suresh. -----Original Message----- From: Robert Story [mailto:[email protected]] Sent: Saturday, October 28, 2006 2:38 AM To: Pamidipati Suresh-G20238 Cc: [email protected] Subject: Re: table.c helper return code 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 PSG> which don't have rows in them, and a get-next is issued on the PSG> first table. 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 PSG> in it. We gave snmp get-next on Table1 OID. SNMPD has sent the PSG> Agentx get-next request to Subagent on the Table1 OID with END OID PSG> scoped to Table2 OID. Subagent called the Table1 handler function. PSG> As there are no rows in the table, it returned SNMP_ERR_NOERROR to PSG> the library and this caused Subagent to call the Table2 handler. PSG> Subagent called all the Table handlers in the sequence and PSG> table-601 handler gave the response. Now Subagent, checked that PSG> Table-601 OID is not in the scope of END Table2 OID in the request PSG> 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 PSG> get-next requests on tables having no rows, which avoids this loop PSG> of all the 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