Hi, all. Quick question about MIB object/variable numbers. Looking at my
handy MIB cheat-sheet, I see that the "system.sysDescr" variable can be
returned by doing an SNMP Get on object number 1.3.6.1.2.1.1.1.0.
First, can anyone explain to me what that zero is doing there on the end?
I've seen an explanation of it before, but it didn't make a lot of sense
to me. Something about "instantiation" vs. "variable" -- is this an SNMP
way of saying something analagous to "value" vs. "address", or is there
some other part of this paradigm that I'm missing? The explanation also
said it helped a lot with SNMP GETNEXT operations, and that explanation
similarly seems kind of fuzzy. In what way does it make SNMP GETNEXT's
more convenient?
Secondly, suppose I want to get the ifDescr of interface number 4 on a
particular unit from the Interfaces group. What would the number look
like for it? Clearly, 1.3.6.1.2.1.2.1.0 gets me the number of interfaces
(though again that mysterious zero makes its appearance), and my chart
shows something like:
1.3.6.1.2.1
Interfaces(2)
ifNumber(1)
ifTable(2)
ifEntry(1)
ifIndex(1)
ifDescr(2)
But it isn't clear to me how to translate that into a number for (say) the
"ifDescr" variable for the 4th interface. I've tried the obvious approach
of using 1.3.6.1.2.1.2.2.4.1 (both with and without the trailing .0), but
this doesn't seem to work, implying that I'm not doing the right thing by
simply replacing the "ifEntry" 1 with a 4 (for the fourth interface or
table entry).
Can anyone shed a little light on this?