Adding a batch of MIBs to the known OID list (MIBS.INI)
Posted by David Van Deynse, Last modified by Dries Decock on 03 April 2018 05:26 PM

While it is not possible to import an entire MIB directly using the GUI, this article explains how you can manage to import a batch of OIDs into the MIBS.INI file.

What you need is the mib2c tool available in linux (

Specify the conversion format in a file, let's say convert_docsif.conf:

@foreach $t table@
    @foreach $c column@
$c	$c.objectID	$c.type

Note: Make sure the parameters ($c, $c.objectID and $c.type) are separated by tabs!

Now you can convert the MIBs you want, e.g. the docsIfMib:

mib2c -c convert_docsif.conf DOCS-IF-MIB::docsIfMib

Use sed to make the OID types compatible with the Excentis Cable Modem Config File Editor, and remove any unsupported types (ASN_ types that were not replaced):

sed 's/ASN_INTEGER$/Integer/' DOCSIFMIBS.INI | sed 's/ASN_OCTET_STR$/Octet String/' | sed 's/ASN_OBJECT_ID$/Object Identifier/' | sed 's/ASN_IPADDRESS$/IP Address/'| sed 's/ASN_COUNTER$/Counter/'| sed 's/ASN_GAUGE$/Gauge/'| sed 's/ASN_UNSIGNED$/Gauge/'| sed 's/ASN_TIMETICKS$/Timeticks/' | grep -v "ASN_" > MIBS.INI

Copy this MIBS.INI file to the Excentis Cable Modem Config File Editor or append the contents to the existing MIBS.INI file, and you can select all name OIDs from the docsIfMib in the dropdown. Also, the MIB name will be displayed in textual mode.

(1 vote(s))
Not helpful

Comments (0)

We to help you!