I want to get the top "OID" for a given MIB. i.e;
CISCO-SMI = 1.3.6.1.4.1.9
CISCO-PROCESS-MIB = 1.3.6.1.4.1.9.9.109
I can easily get this by googling, however I need to get this from a system, preferably with native SNMP commands. I can't walk a device. I can do an snmptranslate which will give me all OIDs for that MIB, but I only want the OID that identifies the MIB;
snmptranslate -Tso -m /usr/share/snmp/mibs/CISCO-PROCESS-MIB.txt
.1.3 .iso.org
...
.1.3.6.1.4.1.9 .iso.org.dod.internet.private.enterprises.cisco
...
.1.3.6.1.4.1.9.9.109 .iso.org.dod.internet.private.enterprises.cisco.ciscoMgmt.ciscoProcessMIB
So I need to be able to say that CISCO-PROCESS-MIB = .1.3.6.1.4.1.9.9.109
I've done a fair bit of google-fu but not coming up with anything that gives me the above. Is it possible to do without an external mib browsing tool?