Re: iterate option
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Net-SNMP |
| Message-ID | <20050909175052.69be1426@aud> |
On Wed, 24 Aug 2005 10:31:06 +0530 Rohini wrote:
RV> But, I have stored all the values in a .txt file, as oid and value pair.
RV> For example :
RV> .1.3.6.1.3.50.2.1.1.1 1
RV> .1.3.6.1.3.50.2.1.2.1 test11
RV> .1.3.6.1.3.50.2.1.1.2 2
RV> .1.3.6.1.3.50.2.1.2.2 test22
RV>
RV> In the example provided for netSnmpHostsTable_access.c; its specified that
RV> we need to read the contents from the file and update it using
RV> snmp_set_var_value.
RV>
RV> This concept results in huge IO operations for every GET Request.
RV> Please help, how can I further continue ?
How else can you know if a value n the file has changed, if you don't re-read
it? Caching the data in memory would be more efficient.
You can also try some of the other helpers, which do not require a complete
iteration through the data for every request.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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