On Thu, 17 Feb 2005 14:54:57 -0500 Rob wrote:
RK> It's coming from our custom MIB. From our MIB and structure file:
Ok, but you didn't answer my question:
RK> >[Was mppLibraryVersionTable] generated by mib2c? If so, which conf file?
Yes, it was initially generated by mib2c (from net-snmp 5.1.2 package)
using mib2c.create-dataset.conf.
Below is our implementation of the table.
===
void initialize_table_mppLibraryVersionTable(void)
{
static oid mppLibraryVersionTable_oid[] = {1,3,6,1,4,1,21157,1,1,22};
size_t mppLibraryVersionTable_oid_len =
OID_LENGTH(mppLibraryVersionTable_oid);
netsnmp_table_data_set *table_set;
table_set = netsnmp_create_table_data_set("mppLibraryVersionTable");
table_data_set_mppLibraryVersionTable = table_set;
table_set->allow_creation = 1;
netsnmp_table_set_add_indexes(table_set,
ASN_INTEGER, /* index: mppStringStringPairListIndex
*/
0);
netsnmp_table_set_multi_add_default_row(table_set,
COLUMN_MPPSTRINGSTRINGPAIRLISTINDEX,
ASN_INTEGER, 0,
NULL, 0,
COLUMN_MPPSTRING6, ASN_OCTET_STR, 1,
NULL, 0,
COLUMN_MPPSTRING7, ASN_OCTET_STR, 1,
NULL, 0,
0);
netsnmp_register_table_data_set(netsnmp_create_handler_registration("mppLibraryVersionTable",
NULL,
mppLibraryVersionTable_oid,
mppLibraryVersionTable_oid_len,
HANDLER_CAN_RWRITE),
table_set, NULL);
netsnmp_register_auto_data_table(table_set, NULL);
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users