etingof / pysmi

SNMP MIB parser
http://snmplabs.com/pysmi/
BSD 2-Clause "Simplified" License
137 stars 52 forks source link

Question - Why can't generate rfc1213 and other such mibs? #45

Closed develorem closed 5 years ago

develorem commented 5 years ago

As per question above, I want the JSON conversion of some foundation mibs such as rfc1213 and entity-mib. I just want the oids really, and I could hard code them, but I prefer to do it from the mibs.

The tool ignores these mibs but I can't find reasons why in the doco.

Am new to SNMP as a whole... so apologies if this is a n00b question.

etingof commented 5 years ago

Try the --mib-stub option:

$ mibdump.py --destination-format json --mib-stub ""  RFC1213 
develorem commented 5 years ago

That worked, thanks.