[c-nsp] MIBs and OIDs

Lee ler762 at gmail.com
Mon Sep 7 07:43:30 EDT 2009


On 9/7/09, Mohammad Khalil <eng_mssk at hotmail.com> wrote:
>
> hey all
> what is the way to transform the MIBs to OIDs ?

as already mentioned, snmptranslate from http://net-snmp.sourceforge.net/

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en

get the file ftp://ftp.cisco.com/pub/mibs/oid/oid.tar.gz
unzip oid.tar.gz to OIDs
from a cygwin command prompt
  cd /cygdrive/c/ ..whatever.. /OIDs
  cat * | sort -k 2,2 -k 1 | uniq | nawk '{printf("%-50s  %s\n", $1,
$2) }' > ../oids_all.txt
  unix2dos ../oids_all.txt

Regards,
Lee


More information about the cisco-nsp mailing list