smidump(1)
π smidump(1) β dump SMI or SPPI modules in various formats β¨
okay so bestie, welcome to the smidump(1) page π β this is where we dump SMI or SPPI modules in a whole lil buffet of formats. No cap, it's lowkey iconic.
π NAME π
smidump β dump SMI or SPPI modules in various formats. That's the whole name vibe, and yes, this is the smidump(1) manual page you're reading. π«Ά
π¦ SYNOPSIS π¦
smidump [ -Vhqusmk ] [ -c file ] [ -o name ] [ -p module ] [ -l level ]
[ -f format ] module(s)
πΈ DESCRIPTION πΈ
The smidump program is used to dump the contents of a single MIB or PIB module, or a collection of modules, to stdout in a selectable output format. β¨ This format may be a simple tree of nodes, types or imported modules, but also a format fully compliant to SMIv1, SMIv2, SPPI or SMIng or CORBA IDL or C source code. smidump can thus be used to convert modules from SMIv2 to SMIng and from SMIng to SMIv2, or to develop template based agent code. π
β¨ OPTIONS β¨
-V,--versionβ show thesmidumpversion and exit. π-h,--helpβ show a help text and exit. The help text contains a list of all supported output formats, so it's basically your format menu. π-c file,--config=fileβ readfileinstead of any other (global and user) configuration file.-f format,--format=formatβ useformatwhen dumping a module. Supported output formats are described below. The default output format is SMIng. Theformatargument is case insensitive. π-l level,--level=levelβ report errors and warnings up to the given severity level. See thesmilint(1)manual page for a description of the error levels. The default error level is3.-s,--severityβ show the error severity in brackets before error messages.-m,--error-namesβ show the error names in braces before error messages.-o name,--output=nameβ write the output in one or multiple files instead ofstdout. The file name(s) are derived from thenameargument. Not all formats support this option. π-p module,--preload=moduleβ preload the modulemodulebefore reading the main module(s). This may be helpful if an incomplete main module misses to import some definitions.-q,--quietβ suppress comments from dumped modules. What kind of information gets suppressed depends on the output format.-u,--unifiedβ dump a unified output in case of multiplemodule(s)instead of multiple concatenated output sections. This is not supported for all output formats.-k,--keep-goingβ continue as much as possible after serious parse errors.
Note that the output generated after serious parse errors may be incomplete and should be used with care. π
module(s)β these are the module(s) to be dumped. If amoduleargument represents a path name (identified by containing at least one dot or slash character), this is assumed to be the exact file to read. Otherwise, if a module is identified by its plain module name, it is searched according to libsmi internal rules. Seesmi_config(3)for more details. π§
π OUTPUT FORMATS π
The smidump program supports the following output formats:
smingβ SMIng compliant format as defined in the SMIng Internet-Draft.smiv2β SMIv2 compliant format as defined in RFC 2578, RFC 2579, RFC 2580.smiv1β SMIv2 compliant format as defined in RFC 1155, RFC 1212, RFC 1215.sppiβ SPPI compliant format as defined in RFC 3159. If the underlying module is not SPPI, there might be some mandatory information missing. π«mosyβ format generated by the mosy compiler.importsβ import hierarchy of a module.typesβ types defined in a module.treeβ OID registration tree structure of a module.metricsβ metrics derived from a module (experimental).identifiersβ list of identifiers defined in a module.compliancesβ compliance definitions with all included objects and notifications.corbaβ CORBA IDL and OID definitions following the JIDM specification translation rules.netsnmpβ C source code files for usage within the net-snmp package (experimental).scliβ ANSI C manager stubs for usage within the scli package (experimental).cmβ reverse engineered conceptual model in DIA XML file format (experimental).svgβ SVG diagram of a module (experimental). Use with-uwhen dumping multiple modules.jaxβ Java AgentX sub-agent classes in separate files (experimental).perlβ Perl represention of the MIB module (contributed by Martin Schulz<schulz@videotron.ca>).pythonβ Python dictionaries represention of the MIB module (contributed by Pat Knight<pat@ktgroup.co.uk>).xmlβ SMI in XML format (experimental).xsdβ SMI in XML schema format (experimental).sizesβ SNMP best case / worst case RFC 3416 PDU sizes for typical PDUs excluding SNMP message and transport headers (experimental).
π EXAMPLE π
This example converts the SMIv2 module IF-MIB in the current directory to IF-MIB.sming in SMIng format. Note that the ./ prefix is used to ensure reading the module from the current directory and not from a place that libsmi guesses on its own.
$ smidump -f sming ./IF-MIB > IF-MIB.sming
π¦ SEE ALSO π¦
- The
libsmi(3)project is documented athttp://www.ibr.cs.tu-bs.de/projects/libsmi/. smilint(1)
π AUTHORS π
Shoutout to the legends who made this happen:
(C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>(C) 1999-2002 J. Schoenwaelder, TU Braunschweig, Germany <schoenw@ibr.cs.tu-bs.de>(C) 2002-2003 J. Schoenwaelder, University of Osnabrueck, Germany(C) 2003-2004 J. Schoenwaelder, International University Bremen, Germany(C) 2001-2002 T. Klie, TU Braunschweig, Germany <tklie@ibr.cs.tu-bs.de>(C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
and contributions by many other people. π
mwah π β SMI Tools / IBR, dated August 10, 2004, and this has been the smidump(1) manual. Now go dump some modules, bestie! π«Άβ¨
π¦ where this page comes from
- alpine 3.24: libsmi-doc 0.5.0-r5 Β· BSD-3-Clause AND MIT
- nixos 26.05: libsmi 0.5.0
- nixpkgs unstable: libsmi 0.5.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms