[tkined] Question about object-type DEFVAL

Peder Chr. Norgaard (pcn@tbit.dk)
Mon, 15 Mar 1999 22:07:40 +0100 (MET)

Using the November 1998 beta version of scotty 3.0.0....

I acknowledge that the "Tnm::mib defval" command is not even documented,
so I cannot really expect it to be fully implemented.

Nevertheless, it has been very useful to me, but today I discovered that I
had not thought it all through. The problem is: How do one distinguish,
using this command on an OCTET STRING typed object, between "no default
value" and "default value = ''H"? Until now, I have stupidly just used
the "string length = 0" of the output of "Tnm::mib defval" to mean "no
DEFVAL". But this fails, of course, when the DEFVAL is ''H. And there are
a fair amount of those in the newer std MIBs, in the SNMP-VACM MIB for
instance.

I have looked into the code in tnmMibTcl.c, it really looks as if it
returns the same value (i.e. an empty string) in both cases.

best regards
--peder chr.

Peder Chr. Nørgaard System Developer, M. Sc.
Telebit Communications A/S tel: +45 86 28 81 77 - 49
Fabrikvej 11 fax: +45 86 28 81 86
DK-8260 Viby J Denmark e-mail: pcn@tbit.dk

--
!! 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.