Re: who to parse an index?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 13/08/07, Torben Surmer <[email protected]> wrote: > Do anybody know how I can programmatically get back the "index-part" of > netsnmp_request_info * requests->requestvb->name oid? > What I want is in this example to get the oid-part "4.65.66.66.65", which I > can than pass to the netsnmp_oid2str() function, where I get "ABC" back! Why do you want to parse this yourself? The table helper automatically extracts the index values as part of processing the request. Use 'netsnmp_extract_table_info()' to extract the table-specific information from the request structure, and then use the 'indexes' field of the resulting 'netsnmp_extract_table_info' structure. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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