On Thu, 2005-06-09 at 19:21, Fong Tsui wrote: > On Wed, 08 Jun 2005 09:36:29 +0100 Dave wrote: > DS>> You might be able to short-circuit this by tweaking the > DS>> var_XXX() code, so that it updates the 'name' parameter > DS>> to refer to the *last* column in the table. But I'm not > DS>> 100% sure that will necessarily work.
> I don't update *name* if there is no more data in the querying column, No - that's not what I said. I suggested tweaking the 'name' parameter if there were no *rows* in the table - if it was completely empty. The idea was to skip calling the same handler 50 times, each of which returned an empty column. Note that the agent can't assume that a failure in one column will automatically mean a failure in the other columns - it's quite possible to have a "sparse" table, where individual values are missing. Or even for a particular column object not to be implemented at all. The agent can't know whether to skip to the end of the table - only your code knows that. Now I'm not too surprised if this doesn't actually work - as Robert says, such behaviour was regarded as "evil". But it was worth a try. I suspect that you may need to switch to using the v5 handler-based API if you want to be able to do this. Dave ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
