Re: NET SNMP Sub agent Row of multiple indexes
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 5 March 2010 10:59, Ashish vashishtha <[email protected]> wrote: > Now in the handler function of the table how i can get the two indices ? Use the field 'row->indexes' This contains a varbind *list* containing the parsed index values extracted from the incoming request. > in this row i am unable to find the two indices, i am only able to see one > index(row->index_oid). That's the array of unparsed index subidentifiers. It should actually be two subidentifiers long (with row->index_oid_len being 2, rather than 1) So you can access this as an array directly. In this particular case (two integer values), this might well be simpler than walking the 'indexes' list. But in general, row->indexes will hold the first index value, row->indexes->next_variable will hold the second index value, and so on. > can we have two index of same type in a table? Of course you can. You can have multiple indexes, of any mixture of types. Whatever is defined within the MIB file. Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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