RE: Ordered table kept outside the agent

"Naama Bar Menachem" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I am using raw_table.
How do I extract index values from netsnmp_variable_list?

Thank you



-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Tuesday, March 22, 2011 2:07 PM
To: Naama Bar Menachem
Cc: Net-SNMP users
Subject: Re: Ordered table kept outside the agent

2011/3/22 Naama Bar Menachem <[email protected]>:
> Thanks for the quick response.
> Does this mean that if the manager send a getnext request with index
10 it will call the
> get_first_data_point and than in the worst case 9 times
get_next_data_point.

Yes.

The iterator helper is designed for ease of use,
rather than efficiency.


> If that is the case, is there a more efficient way that will retrieve
the next row in one iteration?

Either cache the list of valid rows internally within the agent
(e.g. using the table_data config) and then retrieve the data
for that row from within the handler itself.

Or use 'mib2c.raw-table.conf'  and have the handler deal with
everything.

Dave

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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.