Re: MIB unload function?

Buz Owen (ado@BBN.COM)
Fri, 23 Aug 1996 19:46:50 -0400

> It seems as if there may be some contention in my MIB files that is causing
> me to pull up the wrong values in a program. This isn't a problem since I
> only need one mib at a time, however, I dont know how to unload the old MIB.
> Is this possible?
>
> There are 2 MIB files and each has the MIB variable 'baudRate'. When I only
> load the appropriate MIB files i get the correct value, which is 1.4MB.
> When I load both MIB files the baudRate variable for the Low Speed board
> gets called first and I get the value of 'b300', which is incorrect.
>
> All help is greatly appreciated. (I am using scotty 2.0 with Tcl7.4)

You could do something like using foo.baudRate where foo is the
immediately preceeding, i.e. just higher, object in the mib tree.
Normally just one level is sufficient to elimate the ambiguity,
but more levels will work, if needed.

Or if that is awkward, you could set a variable with the oid you
want and use that elsewhere.

set baudrate [mib oid foo.baudRate ]
set value [ $snmp get $baudrate ]

hope this helps/b