smidump draws UML class diagrams of MIB modules as SVG. They show the conceptual model behind the tables of a module and how the tables relate to each other. Create them for any module with the web tools, e.g. for the ENTITY-MIB, or on the command line.
In Reverse Engineering Internet MIBs, Jürgen Schönwälder and Andreas Müller developed an algorithm that extracts conceptual models from MIB modules. The algorithm is implemented in smidump as the output format cm, which produces XML files for the dia diagram editor. Klaus Sperner extended smidump by the format svg, which draws the same model as an SVG (Scalable Vector Graphics) diagram. Today, all web browsers display SVG directly.
The SVG diagrams, their layout and their interactivity (dragging classes, tooltips, highlighting of groups and compliances, folding of the module information) are the work of Klaus Sperner (2004–2005), based on the reverse engineering algorithm and the cm driver of Andreas Müller and Jürgen Schönwälder. In libsmi 0.6 (2026) the driver was fixed for descriptions with many special characters, and its links to a former CGI script were replaced by the option --svg-link-url; the web tools show his diagrams with a matching font, zooming and panning.
There is a UML class for each conceptual row definition of the modules:
- if the object is not-accessible, else by +. Descriptions appear as tooltips. Objects in blue are defined in another module: in the web tools, clicking them draws the diagram again with that module added.Scalar objects that are not bound to a conceptual row are grouped into additional classes. Besides unlabeled edges there are four kinds of labeled edges: augments, sparsely augments, reorders and expands, with cardinalities and arrowheads; their meaning is explained in the paper. Dashed edges are dependency relationships.
On the right, the diagram lists further information on the modules:
smidump writes the diagram to standard output. Use -u to draw several modules in one diagram:
$ smidump -f svg ENTITY-MIB > ENTITY-MIB.svg $ smidump -u -f svg IF-MIB IP-MIB > interfaces.svg $ smidump -f svg --svg-static-output --svg-show-deprecated IF-MIB > IF-MIB.svg
| Option | Meaning |
|---|---|
--svg-width=number, --svg-height=number | size of the SVG canvas (default 1100 × 700) |
--svg-show-deprecated | show deprecated objects |
--svg-show-depr-obsolete | show deprecated and obsolete objects |
--svg-static-output | no interactivity (no scripts), e.g. for printing or for documents |
--svg-link-url=url | link objects and modules of other modules to url?…&mibs=A&mibs=B, a diagram that includes them (the web tools use diagram.php); without it there are no links |
The web tools show the diagrams with a font that matches the box sizes computed by smidump, fit the view to the whole diagram, and add zooming and panning; the styled diagram can be downloaded as static SVG or as PNG.