Re: How to add new (enterprise) MIBs?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 9 Oct 1995 00:08:12 +0100

Hi!

David Carmean <dave@west.net> said:

David> 1:
David> How do I add enterprise MIBs to the MIB browser? Do they
David> have to be compiled first? How? And where is this "mib database"
David> that snmp_browser.tcl mentions? (Need to add the Ascend MIB.)

Doug Hughes <Doug.Hughes@Eng.Auburn.EDU> wrote:

Doug> If you have a new MIB file you want to add, copy it to your
Doug> installed $scotty_lib/mibs directory, then launch scotty. Now
Doug> run mib load on the mib file to create an .idx file. If you
Doug> want it to be loaded on startup edit $scotty_lib/init.tcl and
Doug> add it in with the rest of the mibs. Somewhere near the end is
Doug> probably a better place to put it.

I would suggest to add the mib load command to $scotty_lib/site/init.tcl.
This file will survive if you install a new scotty version.

David> 2:
David> How do I set the SNMP community for the graphical "mibtree"
David> app? Seems to default to "public" and I'd like to use it for
David> read/write access.

The best way is to define snmp aliases for the machines you want to
inspect. You can add something like the following to your ~/.scottyrc
or your $scotty_lib/site/init.tcl:

snmp alias sulu/public "-address 134.169.34.3 -community public"
snmp alias sulu/private "-address 134.169.34.3 -community private"

The mibtree script automatically puts alias definitions into the
Agents menu. You can also define aliases inside of the mibtree script
by using the Add Agents entry of the Agents menu. However, there are
no fancy dialogs right now. You have to enter the SNMP session option
list, e.g. -address 1.2.3.4 -community foobar.

Juergen