I am also experiencing the similar problem.  I am trying to find the current value of a node by accessing “value” field of

SmiNode but it always returns SMI_BASETYPE_UNKNOWN.  Can somebody please help me to find out the current value and default values of each node.

 

My code looks

 

for(smiNode = smiGetFirstNode(module, SMI_NODEKIND_ANY);

        smiNode; smiNode = smiGetNextNode(smiNode, SMI_NODEKIND_ANY))

            {

                        SmiType * type = smiGetNodeType(smiNode);

                        printf("%s\t", smiNode->name);

                        printf ("%i\n", smiNode->nodekind);

                        printf("%s\n", formatvalue(&smiNode->value, type));

                       

 };

 

 

Thanks