
Hi!
Dave> The description of 'smiGetNode()' states
Dave> " The smiGetNode() function retrieves a struct SmiNode that Dave> represents a node of any kind. Node may be either a fully Dave> qualified descriptor, a simple node name, or a numerical OID. Dave> Nodes are also found, if node contains an instance identifier suffix. "
Dave> If I retrieve a node using a description that includes such a suffix, Dave> is there any way to determine what that suffix is?
Dave> Bearing in mind that it may not necessarily be a single subidentifier, Dave> and that some of the numbers in the string might actually be included Dave> within the node's OID.
Dave> I'm looking for an approach that can take a string such as Dave> "TCP-MIB::tcpConnTable.1.1.0.0.0.0.21.0.0.0.0.0" Dave> and return either "0.0.0.0.21.0.0.0.0.0" (or a parsed equivalent Dave> {0,0,0,0,21,0,0,0,0,0}) - without needing to duplicate much of the Dave> internal processing of the SMI library.
Dave> Any ideas?
Good point. Currently, there is no libsmi function that allows you to retrieve the instance part of a given OID or string. Generally speaking, there are no functions that handle real data. Another example I could imagine is the formatting of a value according to an object's/type's display hint.
Let me think about an API extension...
-frank -- !! 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.