about json_to_mib.rb - mgaidamak/ruby-parsing GitHub Wiki
this script can:
- read valid json file (config.json) to ruby data structure;
- format nodes to mib style (replase '_' to Upcase, lowcase for first symbol);
- build tree by OBJECT IDENTIFIER or OBJECT-TYPE;
- calculate all indexes;
- determinate SYNTAX (Integer32, DisplayString, TruthValue).
after using this script you should:
- fixe Table Syntax;
- fixe head mib information.
Now you have easy way to build SNMP-MIB files from existing JSON configuration.