On Wed, 2005-05-25 at 11:30, Victor Yeo wrote: > One more question, i use mib2c.create-dataset.conf to generate this table. > Can i create the table rows in real-time?
Yes. If you register the dataset table using: netsnmp_table_data_set *ds = netsnmp_create_table_data_set( "dtApInstWaveTable" ); + ds->allow_creation = 1; netsnmp_register_table_data_set( reg, dsinfo, NULL ); then it will create rows automatically when you assign a new value to a previously invalid one. If you need to create rows manually (perhaps as part of initialising the table, or in response to external actions), then use something like: netsnmp_table_row *row = netsnmp_table_data_set_create_row_from_defaults( ds->default_row); // tweak 'row' as required netsnmp_table_dataset_add_row( ds, row ); > dtApInstWaveEntry OBJECT-TYPE > SYNTAX DtApInstWaveEntry > INDEX { dtApInstWaveIndex } > ::= { dtApInstWaveTable 1 } > dtApInstWaveIndex OBJECT-TYPE > SYNTAX INTEGER > ACCESS read-only Note that if you're using 'dtApInstWaveIndex' as the index to the table, then it should really be "not-accessible". Dave ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ 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