S
S
SpeakeazyYT12019-10-28 18:06:14
linux
SpeakeazyYT1, 2019-10-28 18:06:14

How to get a table in SNMP after receiving a value with type OID and iterate over all values?

Good evening. I'll get straight to the point.
From an RPI device (Raspberry), I read SNMP mibs using the snmpwalk command.
In the process of reading, I noticed that there are mibs that have a value with the OID type. For example:

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10

(specifically, I get this value from the SNMP Agent Simulator).
The task is to get the OID`S table by this value and sort through the table by its values, well, then I will work with these values ​​myself.
What needs to be done for this? Perhaps the article net-snmp.sourceforge.net/wiki/index.php/Snmpgetnext will help (it describes the snmpgetnext command, which finds the next instance of data after the requested OID. )

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question