
Hi,
I haven't looked at the code yet, but...
I wanted to check with the smidump authors about the feasibility of modifying the smidump source code to act as an SMIv2 pretty print tool. I realize the complexity of such a tool depends on how configurable it is. I don't need any user configuration.
I noticed that smidump -f smiv2 will do some pretty printing, such as changing {foo 2} to { foo 2 }. I need this tool to format MIBs as they usually appear in RFCs: - preserve ASN.1 comments - one enum per line in INTEGER objects or TCs - one descriptor and type per line in SEQUENCEs - one descriptor per line in OBJECTS and OBJECT-GROUP clauses - uniform indentation and whitespace - smart reformat to deal with lines > 72 chars - many more details such as these?
I would be willing to work on the code, but I wanted to check first with this group if this is possible or if anyone else has thought about such a tool.
thanks, Andy