I want to read all the objects from the MIB file that the manager has.
I developed one tool to get some data from an agent that supports SNMP. I want to improve this tool by showing all OIDs from the manager MIB file.
I am using the NET-SNMP library.
I saw the following:
/usr/local/share/snmp/mibs/
and contains a lot of MIB files, but how can I make an OID list that it has?
I went through the MIB and saw the structures, but how to get the OIDs of each object mentioned in the MIB files?
I want to list all OID as follows:
SNMPv2-MIB::sysDescr.0 = .1.3.6.1.2.1.1.1.0SNMPv2-MIB::sysObjectID.0 = .1.3.6.1.2.1.1.2.0 ... etc.
I want to scan all the MIB files and find all the OIDs from the files.
How to do it?
snmp mib net-snmp
pradipta
source share