How to get the table information

Hi I am able to get all internal data structures using compiler api is working fine. Thanks for excellent work.
Now to the question: How I can get the table information form the MIB file, that is I want table name, table oid, column count, column names and index details. In this mail I attached small portion of MIB
-- Relay Table definition starts here
relayTable OBJECT-TYPE SYNTAX SEQUENCE OF RelayEntry ACCESS not-accessible STATUS current DESCRIPTION "A table containing Relay-specific information" ::= { attributes 1}
relayEntry OBJECT-TYPE SYNTAX RelayEntry ACCESS not-accessible STATUS current DESCRIPTION "Information about a particular Relay" INDEX {relayNumber} ::= { relayTable 1} RelayEntry ::= SEQUENCE{ relayNumber Integer32, relayStatus INTEGER, relayType INTEGER} relayNumber OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "This attribute gives the Relay number " ::= { relayEntry 1}
relayStatus OBJECT-TYPE SYNTAX INTEGER { open(1), close(2) }
MAX-ACCESS read-only STATUS current DESCRIPTION "This attribute gives the status of the Relay that is either open or close" ::= { relayEntry 2}
relayType OBJECT-TYPE SYNTAX INTEGER { in(1), out(2) }
MAX-ACCESS read-only STATUS current DESCRIPTION "This attribute gives the Type of the Relay that is In or Out" ::= { relayEntry 3}
-- Table definition ends here
Thanks and regards ashok

Ashok Kumar [ GVG DDF ] writes:
Now to the question: How I can get the table information form the MIB file, that is I want table name, table oid, column count, column names and index details.
Table and row nodes are special kinds of nodes (SMI_NODEKIND_TABLE, SMI_NODEKIND_ROW). All functions that operate on nodes can thus be used to retrieve table/entry nodes. See smi_node(3) for details.
The simplest thing to do is to look at the dump drivers of the smidump tool and to copy the code.
/js
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (2)
-
Ashok Kumar [ GVG DDF ]
-
Juergen Schoenwaelder