Re: [tkined] Accessing variables in the vendor private MIB

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Tue, 9 Dec 1997 13:32:02 -0600

>>> I guess this is really a general SNMP question, so feel free to reply to me
>>> directly and not pollute the tkined list. But I can't firgure how to do it
>>> with Scotty either!
>>>
>>> How can I access the variables in a vendor's (say Bay Networks) private MIB
>>> extensions? I have all of the MIB files from my vendor, but am not yet clue
>-full enough with SNMP to figure this out. If one of you would be willing
>>> to share you wisdom with a novice it would be appreciated.
>>
>>Just like you access any other MIB variable, with $snmp get { ... }. The
>>OIDs of the variable should be somewhere in the private tree:
>>
>> internet.private.enterprises.{your-vendor-here}.{your-variable-path}.
>>
>
>OK. But do I have to use the numbers or can I use the symbolic names? Like
>
> internet.private.enterprises.wellfleet.wfInternet.wfRipGroup
>

Names work fine too. In fact, unlike most toolkits, you can use the last
portion of the name (if it is unique) and that will work time too. i.e.
if wfRipGroup is unique in the entire mib tree, you just have to say
$s get wfRipGroup.<instance#>

>How does tkined/scotty know what values to use for `wellfleet', `wfInternet',
>etc. If I copy the MIB files into the directory that tkined has all the others
>in is that sufficient? Or do they need to be `compiled' somehow?
>

Pretty much. You do have to do one of two things to get them
recognized though.
1) You can load the mib files by hand. (mib load welfleet.mib -- which,
incidentally, is there in the directory already)

2) edit tnm<version>/library/init.tcl and add your mib to the tnm(mibs)
like you see all the rest of them in there. In fact, if you look in this
file the entry for cisco, hp-unix, synoptics, and wellfleet are commented
out. If you uncomment them you may have access to what you need!

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.