netsnmp_tdata * table_data structure
"Richard Horton" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Used the mib2c.table_data.conf mib2c config to convert my mib to a table code which works fine, I can add information etc via SNMP operations, but have one query left on how to pre-populate the table on startup: I can add rows containing just the index using:- gdukHornetRadioTable_createEntry(table_data,0) for instance will create a row with index 0. What I can't find documented inside net-snmp either online or in code is how to populate the table_data part of the call with the information I wish to add prior to calling *_createEntry. For instance my table is made up as follows (for the sake of brevity I've trimmed the common prefix):- tableIndex -- Integer with a range of 0 to 255 name -- String - 0 to 255 characters long ifName -- String - 0 to 255 characters long state -- integer - range of 0 to 3. I'd like to pre-populate a few rows of the table on startup with some default names etc... -- Richard Horton Users are like a virus: Each causing a thousand tiny crises until the host finally dies. http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats http://www.pbase.com/arimus - My online photogallery ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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