Score:0

Why does this single value SNMP OID have a bunch of sub-values?

ng flag

I have a Juniper MIB in which this OID: 1.3.6.1.4.1.2636.3.1.13.1.24 corresponds to this value: 1.3.6.1.4.1.2636.3.1.13.1.2.

When I run an snmpwalk of 1.3.6.1.4.1.2636.3.1.13.1.24 I get this:

JUNIPER-MIB::jnxOperating5MinAvgCPU.1.1.0.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.2.1.1.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.2.1.2.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.4.1.1.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.4.1.2.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.4.1.3.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.4.1.4.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.4.1.5.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.7.1.0.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.8.1.1.0 = Gauge32: 0
JUNIPER-MIB::jnxOperating5MinAvgCPU.9.1.0.0 = Gauge32: 13

What's with all the extra stuff? Why isn't it just a single value? How would I be able to tell programatically which sub-value was relevant? Is there somewhere I can go read that would explain this result in detail?

Score:1
vn flag

If you read more about tables in SNMP books, you should realize that 1.3.6.1.4.1.2636.3.1.13 (aka jnxOperatingTable) is a table that contains data in tabular form.

Things like .1.1.0.0 are the actual indexes of each rows, if you read the INDEX part of 1.3.6.1.4.1.2636.3.1.13.1 (aka jnxOperatingEntry).

You can find the official documentation on this here

Omnifarious avatar
ng flag
Can you recommend a specific SNMP book or other resource that describes tables in detail?
Lex Li avatar
vn flag
@Omnifarious many might have got started with "Essential SNMP". There are other in-depth books.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.