2009 Sep 07 - Mon
Converting MIBS to OIDS
From a Cisco perspective, on the Cisco-NSP mailing list, Lee provided a simple method
to convert between a MIB and an OID.
First obtain the oid files from Cisco's web site:
ftp://ftp.cisco.com/pub/mibs/oid/oid.tar.gz. Expand the file and extract the
included files. Then:
cat * | sort -k 2,2 -k 1 | uniq | nawk '{printf("%-50s %s\n", $1,$2) }' > ../oids_all.txt
If you want to use it on Windows, use
unix2dos ../oids_all.txt
snmptranslate from net-snmp.sourceforge.net/ does a similar job.
One can also browse them at
Cisco's OID Browser.
[/Networks]
permanent link
|