Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing my own MIB - any references of how to do so?

Tags:

snmp

mib

Mapping some OIDs to system commands is actually all I need However, I could not find yet a resource which explain how to compose such thing. Any idea?

like image 660
Tzury Bar Yochay Avatar asked Dec 28 '10 08:12

Tzury Bar Yochay


People also ask

What is MIB reference?

A Management Information Base (MIB) describes the attributes of a managed resource in a way that an SNMP management system can understand. An SNMP MIB must be written in Abstract Notation One (ASN. 1) and formatted in conformity with the SNMP standards.

What is MIB format?

"MIB" stands for Management Information Base. The structure of Management Information Base (MIB) is a formatted text file that lists all of the data objects used by a particular piece of equipment.

How do I compile a MIB file?

Select a directory name to compile all MIB files in the directory. Select several consecutive MIB files by clicking the file name for the first MIB file, then clicking the additional names while holding down the Shift key. Select several non-consecutive MIB files by clicking each name while holding down the Ctrl key.


3 Answers

There are books about SNMP and MIBs, such as the SNMP MIB Handbook. If you want to learn by example, read some RFCs that define MIBs, such as the Printer MIB.

like image 76
Martin v. Löwis Avatar answered Oct 01 '22 07:10

Martin v. Löwis


The Bible of MIBs is considered to be Understanding SNMP MIBs. If you're a book sort of person, that's the recommended reading. The RFCs for MIBS are well worth reading too (RFC2578 through 79) but don't give you a great feel for the corner and "how to" cases.

like image 44
Wes Hardaker Avatar answered Oct 01 '22 07:10

Wes Hardaker


I read SNMP MIB Handbook. I was a novice of the matter and it lead me inside MIBs very easly. VERY WELL ORGANIZED. Suggested! I also bought Unserstanding SNMP MIBs, but I didn't read it. After a brief look seems to be very complete.

Good luck!

like image 27
gionny Avatar answered Oct 01 '22 05:10

gionny