Re: How to include mip's

Juergen Schoenwaelder (schoenw@data)
Thu, 18 Aug 94 13:31:20 +0200

Hi!

Arno> subject says all. I would like to include new mip's in
Arno> tkined/scotty. How can I do that.

The current SNMP module reads MIB information using dbm files that are
installed in /usr/local/lib/scotty. There is a mib.pag and a mib.dir
file (dbm format) and a text file mib.str. The dbm files contain
pointers into the mib.str file.

The mib.* files are created by a tcl script called smic2dbm. It
accepts a MIB description in smic format. The default smic file is
big.smic_z (you will find it in scotty's snmp sources).

To create a smic file, you have to use a MIB compiler called smic (use
archie to look for it). This compiler reads MIB definitions in ASN.1,
does lots of syntax checks, and writes the 'intermediate format' (call
it with the -Z option).

Things get really complicated if you have MIB definitions that are
based on the newer SNMPv2 SMI, since I do not kown of a smic version
that supports SNMPv2 SMI. You can try to use mosy (another MIB
compiler which is part of the isode SNMP implementation) to convert v2
SMI to v1 SMI. I have tried this but I have had no luck with it.

Conclusion: You can do it but it is not very easy (as far as I know).
Has anyone out there done this before? Has anyone written a script
that will convert mosy output to the dbm format? Or any other
solutions? I still use the smic files created by P.H. Kamp because I
have not been able to create my own smic files...

BTW, our SNMPv1/v2 implementation which will replace the current SNMP
module sometimes in the future (dont ask me what this means) reads a
MIB ASN.1 file at runtime. If you can wait, it will become as simple
as typing 'cat my.mib >> scotty.mib'.

Juergen