2 * Note: this file originally auto-generated by mib2c using
3 * : mib2c.create-dataset.conf,v 5.2 2002/07/17 14:41:53 dts12 Exp $
6 #include <net-snmp/net-snmp-config.h>
7 #include <net-snmp/net-snmp-includes.h>
8 #include <net-snmp/agent/net-snmp-agent-includes.h>
9 #include "mteEventNotificationTable.h"
11 netsnmp_table_data_set *mteEventNotif_table_set;
14 /** Initialize the mteEventNotificationTable table by defining its contents and how it's structured */
16 initialize_table_mteEventNotificationTable(void)
18 static oid mteEventNotificationTable_oid[] =
19 { 1, 3, 6, 1, 2, 1, 88, 1, 4, 3 };
20 size_t mteEventNotificationTable_oid_len =
21 OID_LENGTH(mteEventNotificationTable_oid);
24 * create the table structure itself
26 mteEventNotif_table_set = netsnmp_create_table_data_set("mteEventNotificationTable");
29 * comment this out or delete if you don't support creation of new rows
31 mteEventNotif_table_set->allow_creation = 1;
33 /***************************************************
36 DEBUGMSGTL(("initialize_table_mteEventNotificationTable",
37 "adding indexes to table mteEventNotificationTable\n"));
38 netsnmp_table_set_add_indexes(mteEventNotif_table_set,
41 /* index: mteEventName */
42 ASN_PRIV_IMPLIED_OCTET_STR,
45 DEBUGMSGTL(("initialize_table_mteEventNotificationTable",
46 "adding column types to table mteEventNotificationTable\n"));
47 netsnmp_table_set_multi_add_default_row(mteEventNotif_table_set,
48 COLUMN_MTEEVENTNOTIFICATION,
49 ASN_OBJECT_ID, 1, NULL, 0,
50 COLUMN_MTEEVENTNOTIFICATIONOBJECTSOWNER,
51 ASN_OCTET_STR, 1, NULL, 0,
52 COLUMN_MTEEVENTNOTIFICATIONOBJECTS,
53 ASN_OCTET_STR, 1, NULL, 0, 0);
55 /* keep index values around for comparisons later */
56 mteEventNotif_table_set->table->store_indexes = 1;
58 * registering the table with the master agent
61 * note: if you don't need a subhandler to deal with any aspects
62 * of the request, change mteEventNotificationTable_handler to "NULL"
64 netsnmp_register_table_data_set(netsnmp_create_handler_registration
65 ("mteEventNotificationTable",
66 mteEventNotificationTable_handler,
67 mteEventNotificationTable_oid,
68 mteEventNotificationTable_oid_len,
69 HANDLER_CAN_RWRITE), mteEventNotif_table_set, NULL);
72 /** Initializes the mteEventNotificationTable module */
74 init_mteEventNotificationTable(void)
78 * here we initialize all the tables we're planning on supporting
80 initialize_table_mteEventNotificationTable();
83 /** handles requests for the mteEventNotificationTable table, if anything else needs to be done */
85 mteEventNotificationTable_handler(netsnmp_mib_handler *handler,
86 netsnmp_handler_registration *reginfo,
87 netsnmp_agent_request_info *reqinfo,
88 netsnmp_request_info *requests)
91 * perform anything here that you need to do. The requests have
92 * already been processed by the master table_dataset handler, but
93 * this gives you chance to act on the request in some other way
96 return SNMP_ERR_NOERROR;