Re: Juergen

Juergen Schoenwaelder (schoenw@gaertner.de)
Fri, 30 May 1997 19:35:26 +0200

Simon Chow <skchow@cisco.com> said:

Simon> Juergen, are there any documentation regarding how I can use
Simon> the compat.tc file?

The MIB parser has the property to ignore redefinitions. The compat.tc
is loaded quite early and it therefore allows to define things in
advance before the real definition is loaded.

Simon> Specifically, I would like to "cast" a MIB variable from
Simon> "octet string" to DisplayString, however, I do not want to
Simon> build this knowledge into the TCL code itself, and I do not
Simon> want to chang the MIB file either, I am wondering if I can put
Simon> an entry in compat.tc to modify the syntax of any given
Simon> variable.

Should be possible. Just define the MIB object in the compat.tc file
and you are done.

Simon> If this is not possible, I would sugguest that a similar
Simon> mechanism to be inclueded in the new version of Scotty, what
Simon> do you think?

I have mixed feelings about this. Technically, it should be not big
problem to implement a command which changes the type associated with
a MIB node. However, I am not sure if this is the correct way to solve
the problem. Many MIBs simply do not reflect what has been implemented
because many people do not realize how important a proper MIB
definition is in order to build generic management application tools.

(If you compare an agent to a library, than the MIB definition becomes
the include file for this library. It is unbelievable that vendors
sell libraries with include files that do not even pass a compiler.)

By using the analogy, putting additional commands into the Tnm SNMP
code means that you are modifying the program (compiler) which is
supposed to read these include files. This looks a bit strange to
me. I would instead fix the include file.

Anyway, I understand why people ask for it and I will very likely
implement something if it turns out to be doable in a few lines of
code. But I am not sure if I would recommend to use it.

Juergen

-- 
Juergen Schoenwaelder     <schoenw@gaertner.de>     (Tel: +49-531-23873-0)
Gaertner Datensysteme, Hamburger Strasse 273a, 38114 Braunschweig, Germany
--
!! 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.