[tkined] Mib parser and (SIZE(10))

David Poole (davep@fortytwo.tierranet.com)
Mon, 26 Jan 1998 09:18:23 -0700

I've been writing some Scotty scripts that test our product's SNMP (v1)
implementation by reading the mib and performing automated tests
for each variable. With range checks on OCTET STRING based
variables, I'd like to automatically test the range checking, same
as with INTEGER based enumerations.

However, the mib parser (tnmMibParser.c) doesn't save the SIZE
constraints. I was thinking of adding the SIZE limitations to the textual
convention similar to the INTEGER enumerations and ReadIntEnums().
Perhaps a lower and upper bound in struct Tnm_MibTC? Such a range
could also be used for subtyped INTEGERs.

The main question is where such information could be returned via the
'mib' command. Part of 'mib tc'?

Would this be useful to anyone else?

--
David Poole                        davep@fortytwo.tierranet.com
Extended Systems, Inc.   http://www.extendsys.com
Not only do I not speak for my company, they don't even know I'm saying this.
--
!! 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.