Re: how to Access Table data
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGbGCLyu=b9gBdGW6zhyW9DLq0YSw7mBZyP8vAZ+wzbsJQ@mail.gmail.com> |
On 15 March 2012 13:42, Francois Bouchard <[email protected]> wrote: >> netsnmp_request_info (and netsnmp_table_request_info) explicitly >> refer to a particular incoming request. > Yes, not with the request-related structures, more from another function > like in the exampel below: [ snip ] OK - try using the API calls row = netsnmp_tdata_get_first( table_data ); row = netsnmp_tdata_get_next( table_data, row ); to walk through the table, or one of row = netsnmp_tdata_get_byidx( table_data, indexes ); row = netsnmp_tdata_get_byoid( table_data, oids, len ); to retrieve a particular entry See the section 'TData API: Row operations' in the header file <net-snmp/agent/table_tdata.h> for the precise declarations. Dave ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ 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