Skip to content

gentahgr/mib2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mib2html

Document generator from MIB file

Introduction

MIB is an SNMP interface definition file. It is written in SMIv2 syntax.

Althoug the MIB format can describe full information for SNMP interface as well as human readable description, it is not easy to grasp the whole structure of the MIB definition.

Each MIB object is identified by oid (Object identifier), which ensure uniqueness of the oid by its hierarchal structure, identifying the full oid for each object needs following reference chain because each id for object is defined by parent-child relashonship.

This tool convert a MIB definition file into an HTML file. It starts with a tree structure table with quick description, and detailed description for each object follows the table with full oid.

Requirements

This tool relies on the following tools.

"jinja2" can be installed by assistance of python package sysem such as easy_install or pip.

For MacOS X, libsmi can be installed as "libsmi" package of Homebrew.

For MS Windows, a compiled binary is found here. download/WIN32

How to use

$ mib2html [options] MIB-FILE-NAME > output.html

mib2html accepts MIB file (SMIv2 format) and XML format convetered by smidump. When MIB file is given, mib2html use smidump to parse it.

Generated HTML file is printed in its standard output. It can be redirected to a file or anther program.

options

  • -k continue to generate output even if given MIB contain errors
  • -r use first node as base oid instead of identification oid.
  • -s level_offset adjust oid abbreviation level

environment variable

mib2xml specify conversion software from MIB to XML. When mib2xml is defined, mib2html calls it with -f xml option. smidump in PATH is used by default when this variable is not defined.

bash$ export mib2xml=/path/to/smidump

About

Generate HTML document from MIB file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published