It works and i can GET the values and I can SET the first one. My problem is that I can’f find the way to set the BITS value to sNMP_SYNTAX_BITS instead of OctetStr. The MibStaticEntry accept only oid and default value…
Thanks for your reply. I see that in fact BITS is implemented as OCTET STRING but i’m wondering if doing a walk of my agent is correct that some variables are displayed ad OCTER STRING instead of BITS. If I use some MIB Browser to analyze MIB files I see that in the MIB structures the difference between OCTET and BITS is present.
Maybe is not important and It’s only aesthetics. Sorry for that, I’m learning…
In the MIB specification, BITS is a different pseudo type than its “parent” OCTET STRING. But on the wire, they are indistinguishable.
If your browser, does not display the BITS values as expected, it might
not have the correct MIB modules loaded or
MIB module and implementation of the object differ or
Thanks for your clarification. In fact I’m walking the agent without the MIB Module. I’m learning how the Agent++ works. You message lead me to another question: do exists a way in agent++ to save the MIB File of the implemented MIB?
At first sight it seems that agent++ cannot load/save mib file. Is it right?
That is right. Thus you cannot use MIB specifications at runtime. But that isn’t a big issue, because MIB specifications should not change often and you would anyway need to implement the instrumentation.
Thus, in agents, using MIB information at compile time is in most cases sufficient. You can do so with AgenPro.