
Is the the 'format' field of the SmiNode structure ever used in libsmi?
===== "Aurora Borealis? At this time of year? At this time of day? In this part of the country? Localized entirely within your kitchen?"
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/

hmmm... correct me if I'm wrong, but, that's the format field of the 'SmiType' structure, not the format field of the *SmiNode* structure?
--- Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de wrote:
Randy Rizun writes:
Randy> Is the the 'format' field of the SmiNode structure ever used in Randy> libsmi?
Yes, try 'smiquery type SNMPv2-TC::DisplayString'.
/js
-- Juergen Schoenwaelder http://www.informatik.uni-osnabrueck.de/schoenw/
===== "Aurora Borealis? At this time of year? At this time of day? In this part of the country? Localized entirely within your kitchen?"
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/

Hi!
Randy> Is the the 'format' field of the SmiNode structure ever used in Randy> libsmi?
Yes, try 'smiquery type SNMPv2-TC::DisplayString'.
Randy> hmmm... correct me if I'm wrong, but, that's the Randy> format field of the 'SmiType' structure, not the Randy> format field of the *SmiNode* structure?
In this case and for all SMIv2 definitions, you are right. However, libsmi contains code to parse (an early draft of) SMIng, which allows to apply "formats" (display hints) also to scalar and columnar object types.
If you use just SMIv1 and/or SMIv2 MIB modules, you will never see any values for SmiNode.format.
-frank

Randy Rizun writes:
Randy> hmmm... correct me if I'm wrong, but, that's the format field Randy> of the 'SmiType' structure, not the format field of the Randy> *SmiNode* structure?
SMIv2 does not allow to define DISPLAY-HINTs for OBJECT-TYPEs and thus the format field will indeed be empty as long as you parse SMIv1/SMIv2 modules.
/js
participants (3)
-
Frank Strauss
-
Juergen Schoenwaelder
-
Randy Rizun