Re: creating a table-based subagent
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2006-03-16 at 09:55 -0800, Dana Heath wrote: > Thanks for the response. I was under the assumption that the OID > provided the distinguishing feature from row to row. For example, if my > table OID is 1.3.6.1.4.1.12345.1.1 then the rows would be determinable > by the subsequent digit thereafter, such as > 1.3.6.1.4.1.12345.1.1.1 (Monitor 1) > 1.3.6.1.4.1.12345.1.1.2 (Monitor 2) > 1.3.6.1.4.1.12345.1.1.3 (Monitor 3) Yes - and that final digit is (presumably) the index to the table. > The nature of the data of this particular mib may have multiple rows in > a table that do not have a guarantee of unique data. To illustrate, > consider the example of a computer with multiple identical monitors > plugged in... my query results (all rows) would thus return the same > data. The actual column data would be represented by (for example) > 1.3.6.1.4.1.12345.1.1.1.1 (Monitor Brand Name = Dell) > 1.3.6.1.4.1.12345.1.1.1.2 (Monitor Size = 17") > 1.3.6.1.4.1.12345.1.1.1.3 (Monitor Connection Type = VGA) > 1.3.6.1.4.1.12345.1.1.2.1 (Monitor Brand Name = Dell) > 1.3.6.1.4.1.12345.1.1.2.2 (Monitor Size = 17") > 1.3.6.1.4.1.12345.1.1.2.3 (Monitor Connection Type = VGA) > etc. That layout look wrong to me. I'd expect it to be more like: > 1.3.6.1.4.1.12345.1.1.1.1 (Monitor Brand Name = Dell) > 1.3.6.1.4.1.12345.1.1.1.2 (Monitor Brand Name = Dell) > 1.3.6.1.4.1.12345.1.1.2.1 (Monitor Size = 17") > 1.3.6.1.4.1.12345.1.1.2.2 (Monitor Size = 17") > 1.3.6.1.4.1.12345.1.1.3.1 (Monitor Connection Type = VGA) > 1.3.6.1.4.1.12345.1.1.3.2 (Monitor Connection Type = VGA) where the penultimate subidentifer is the column object, and the final subidentifier is the index value. > Perhaps I misunderstand the purpose of the index. Essentially I'm just > looking for some guidance on how to approach this issue. Thanks, Rather than try guess what information you're working with, perhaps it would be more sensible if you posted the MIB file that you're using. It would be easier to tell whether that MIB is valid (and you're misunderstanding it), or invalid (and you need to talk to the people who designed it). Dave ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ 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