inner table with two integer indexes
"David Loibl" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am creating a net-snmp agent for my own MIB module and am currently working on an inner table, lets call it aTable. This table has two indexes, one is unique to its own table (aIndex), and the other is also the index of a row in another table (bTable, bIndex) (each row in aTable is associated with a row in bTable.) So... if there is a row with index 1 in bTable, then rows in aTable could have aIndex 1, 2, 3 and bIndex 1, 1, 1 and those three rows would be an "inner table" in bTable in row 1 in bTable. Using mib2c to generate skeleton code, mib2c was not able to "see" the columns within the table. It generated code for dealing with the table, but a table with no columns, and therefore no use. Using another table I had created and works I wrote the c code from scratch to deal with this inner table, making the changes I thought were necessary for utilizing two indexes. Now, when I compile my code and attempt to set rows in this table i get the following output: Error in packet. Reason: notWritable (That object does not support modification) Failed object: MYMIB::aTableRowStatus.1.1 The best fix for this I would assume would be to start over and generate real skeleton code using mib2c... does anyone have any ideas on how to get mib2c to see the columns in an inner table? It has had no problems in my other tables, all of which are single, integer index tables. Thanks! -- --David Loibl [email protected] _______________________________________________ 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