problem with AgentX getNext and multiple regions?
Fulko Hew <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel,gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I'm confused by what Net-SNMP (5.6.rc2) is doing when interacting with my AgentX sub-agent. I have two regions registered, and I perform a getnext to the master... The master sends an AgentX getNext PDU on the first region looking for a positive response. Unfortunately, the 'next' variable isn't within that range so my sub-agent returns endOfMibView as per (RFC2741 7.32.3.2 paragraph 2) So then the master sends another AgentX getNext PDU for the second region. This time, my sub-agent responds with 'no error' and the appropriate varbind. The master then responds back to the NMS with GenErr. Huh? I see in the source code (agent/mibgroup/agentx/master.c:345) that it has recorded the first error (endOfMibView) inside the response packet, but the subsequent 'noError' did not 'undo' that error. Either I'm doing something wrong and _I_ shouldn't be returning endOfMibView or the master shouldn't be permanently setting that error, (because its going to try again on another region, (till it runs out of regions)). Any insight would be appreciated. Fulko ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders