
Hi all, How I can able to get the table index details from the MIB file?, because some table contains more than one index. I want the information of all the index including the oid and name of the index. Expecting an early replay --Thanks in advance Sanjay
__________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- !! 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.

On Tue, Dec 11, 2001 at 01:23:47AM -0800, Sanjay M wrote:
How I can able to get the table index details from the MIB file?, because some table contains more than one index. I want the information of all the index including the oid and name of the index.
The way of getting information about index elements is the same, no matter if there are one or more index elements. In the MIB file you may find something like the following:
table1Entry OBJECT-TYPE SYNTAX Table1Entry MAX-ACCESS not-accessible STATUS current DESCRIPTION "" INDEX { indexColumn1, indexColumn2, indexColumn3 } ::= { table1 1 }
To recieve information about the index elements ( indexColumn1 - indexColumn3) you would do the following (assuming that node is a SmiNode* that points to table1Entry):
SmiElement *elem; for( elem = smiGetFirstElement( node ); elem; elem = smiGetNextElement( elem ) ) {
SmiNode *indexNode = smiGetElementNode( elem ); /* do something with the index node */
}
See smi_node(3) for more details.
Torsten -- !! 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)
-
Sanjay M
-
Torsten Klie