Hi Dave,

I have resolved this issue.
I just filled index information, and get external data in each column get_ 
routine.
There seems no performance issue again.

But there's segmentation fault when it returns NULL in get_ routine.
Is it a normal result?
Additionally, how can  I inducate that there's an error when fail getting 
external data?
I mean in the template code which was generated from 
mib2c.iterate_access.conf, where can I return the 
error-status(SNMP_ERR_GENERR, etc.) for get requests?


BR,




永鈦鑫   iTAS Corporation
新竹市水源街75號
NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C.
Tel:03-5716099 Ext.1208
E-mail:tewen.hs...@itas.com.tw
----- Original Message ----- 
From: "Dave Shield" <d.t.shi...@liverpool.ac.uk>
To: "Tewen Hsieh" <tewen.hs...@itas.com.tw>
Cc: <net-snmp-coders@lists.sourceforge.net>
Sent: Wednesday, June 10, 2009 3:52 PM
Subject: Re: Could anyone give me some suggestions?


> 2009/6/10 Tewen Hsieh <tewen.hs...@itas.com.tw>:
>
>> But before I can get index values, I still need to get all external data 
>> for
>> XXXTable_get_first(next)_data_point to search.
>
> No - you need to get index information about all the valid rows.
> You don't need the full external data for each row at this stage,
> but you do need to have the index information for each row.
>
> That's the whole point of the "iterate" helper.
>
>
>> Maybe I misunderstood your suggestion, could you explain more clearly?
>> Sorry that I am still very new to net-snmp.
>
> I would actually suggest that you start by implementing a simpler MIB
> module, as a test to develop your understanding of how things work.
> That's likely to be faster in the long run, rather than diving straight
> into what sounds like a relatively complicated MIB implementation,
>
> Dave 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to