Retrieving Description

Hi, I'm wrapping the smilib library for C++ development, but I can`t retrieve Description and Reference information from any node. I don´t know if it's my fault or this feature is not yet implemented. ¿ Can anybody help me ?
Yours
Diego Parrilla

Diego Parrilla writes:
Diego> Hi, I'm wrapping the smilib library for C++ development, but I Diego> can`t retrieve Description and Reference information from any Diego> node. I donŽt know if it's my fault or this feature is not yet Diego> implemented. ¿ Can anybody help me ?
I suspect it is a bug in your code. All this stuff is implemented (otherwise tools like smidump would not be able to generate the various output formats). Try to trim down your code to something small which shows the unexpected behaviour. If this does not already help to find the cause of the problem, send us the trimmed down version and we may take a look at it. Juergen

Hi,
Diego> Hi, I'm wrapping the smilib library for C++ development, but I Diego> can`t retrieve Description and Reference information from any Diego> node. I don´t know if it's my fault or this feature is not yet Diego> implemented. ¿ Can anybody help me ?
I suspect it is a bug in your code. All this stuff is implemented (otherwise tools like smidump would not be able to generate the various output formats).
Getting the description info is working fine for me, don't know about reference information, though.
However, i have a different (feature enhancement?) question. In GxSNMP, i'm currently drawing a GUI tree object for visually browing through the MIB. Here, i have the problem to connect each GUI leaf object with the SMI node it represents. Before OID was switched to the int[]/length pair, i just used the OID as handle representing the node. After the change, libsmi no longer provides some kind of handle to identify a node in a unique way. Would it be possible to add a handle to the node structure which can later be used to retrieve the node out of libsmi again?
Cheers, Jochen
-- !! 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.

Juergen Schoenwaelder wrote:
Diego Parrilla writes:
Diego> Hi, I'm wrapping the smilib library for C++ development, but I Diego> can`t retrieve Description and Reference information from any Diego> node. I don´t know if it's my fault or this feature is not yet Diego> implemented. ¿ Can anybody help me ?
I suspect it is a bug in your code. All this stuff is implemented (otherwise tools like smidump would not be able to generate the various output formats). Try to trim down your code to something small which shows the unexpected behaviour. If this does not already help to find the cause of the problem, send us the trimmed down version and we may take a look at it. Juergen
When I try to retrieve Description and/or Reference information from any node with the full OID (e.g.: .1.3.6.1.2.1.2.1), both fields return empty. But if I use the equivalent label of the OID ("ifNumber", I think...), these fields return the right values. I call the "smiGetNode" function for this action.
So, I expected to have the same features in both cases. It seems I was wrong.
Diego

Hi Diego,
When I try to retrieve Description and/or Reference information from any node with the full OID (e.g.: .1.3.6.1.2.1.2.1), both fields return empty. But if I use the equivalent label of the OID ("ifNumber", I think...), these fields return the right values. I call the "smiGetNode" function for this action.
Please try "1.3.6.1.2.1.2.1" instead of ".1.3.6.1.2.1.2.1". libsmi doesn't like the leading dot.
Cheers, Jochen
-- !! 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 (3)
-
Diego Parrilla
-
Jochen Friedrich
-
Juergen Schoenwaelder