SNMP MIB
MIB stands for the management information base. SNMP MIB is the database for SNMP manager about the attributes or parameters of the device which is to be monitor, Example: Assume SNMP agent is running on your Laptop and your laptop user name is john doe then the user name is the attribute that you need to mention in MIB. In simple words parameter which is to be monitor is considered as an attribute. Each device attribute is considered as an object and each object has an identifier which is called as an object identifier i.e nothing but the OID. Once the user creates MIB of device parameters or attributes then the user has to provide that MIB to SNMP manager.
MIB Structure:
International Standards Organization (ISO) and the standardization sector of the International Telecommunications Union developed the Object Identifier scheme for naming anything in the world that you need to monitor. Names, or OIDs, consist of strings of non-negative integers. In textual representation these component integers are often separated by periods, eg 1.3.6.1; the notation { 1 3 6 1 } is also used. All OIDs used by SNMP begin with the prefix 1.3.6.1. For example, the sysName attribute corresponds to OID 1.3.6.1.2.1.1.5 The prefix 1.3.6.1.2.1 is known as mib-2, and the one-step-longer prefix 1.3.6.1.2.1.1 is the system which is shown in the below structure. Generally, whenever SNMP manager makes any request to SNMP agent for any attribute, on the reception of the request, the SNMP agent will check whether the requested OID is correct or not. If the OID corresponds to a valid attribute, then SNMP agent returns a pair consisting of the OID and the attribute value. The OID structure is like a tree. Each attribute is considered as a leaf.
Standard MIB Structure:
Common Doubts:
1)Do I need to follow the MIB structure?
No. If you are a student or using for personal purpose then no need to follow the MIB structure.
2)When should I follow the MIB structure?
When you are using SNMP for enterprise or commercial applications.
3)How to generate OID of your enterprise?
If you are using SNMP for enterprise or commercial applications then you need to register your company name for private enterprise number which is nothing but your enterprise OID. By using this OID you have to design your MIB. Please click on the below link, If you don’t know how to generate enterprise OID.
SNMP Enterprise OID
4)How to get Standard MIB file?
If you have installed SNMP manager from SNMP MANAGER then inside your SNMP manager installed so many default MIB’s have given. In my system, the MIB path is given and shown below.
C:\Program Files (x86)\ireasoning\mibbrowser\mibs
5)How to load the MIB file in the SNMP manager?
Please follow the following steps for loading MIB file in the ireasoning SNMP manager:
1)Open your ireasoning SNMP manager
2)Click on File > Load MIBs which is shown below.
3)Choose Your MIB file and click on Open which is shown below. RFC1156-MIB is the standard MIB-2 file.
4)Congrats you have successfully loaded your MIB file. Your Loaded MIB file is shown below.
6)Can I load multiple MIBs files?
Yes, you can load multiple MIB files.
7)How can I unload the MIB file?
File > UnLoad MIBs > Choose MIB > Click OK.
Please click on the below link to become master in SNMP.