Search code examples
network-programmingsnmpnet-snmpmib

What is called MIB-Module?


I am new to MIB-Management information base. I am confuse, What is called MIB modules?

here it is defined as: An adapted subset of ASN.1, Structure of Management Information (SMI), is specified in SNMP to define sets of related MIB objects; these sets are termed MIB modules.

But its not clear to me!

Is complete MIB file called a MIB-module? or an object is a MIB-Module eg. OBJECT-TYPE?


Solution

  • Usually, a MIB document contains only one MIB module. For example,

    https://github.com/lextm/sharpsnmplib/blob/master/Tests/Resources/SNMPv2-MIB.txt

    This file contains only one module, which is the best practice you should follow,

    SNMPv2-MIB DEFINITIONS ::= BEGIN
    ...
    END
    

    However, the SMI rules do not prevent you from defining several modules in the same files. You can try it out by merging several files together, and most MIB compilers are happy to compile the merged result.