Command to get integer enum values?

Scott Koumjian (sak@eng1.netlink.com)
Tue, 27 Aug 1996 17:41:44 -0400

I am interested in a scotty command that returns a list of
enumerated values for a MIB INTEGER variable and was wondering
if one is available or if anyone has extended the scotty code
to perform this. I know there is a "mib syntax name" command,
but I am looking for something more detailed. I am currently
using scotty 2.0.2 but am considering upgrading to 2.1.1.

For example, given the mib variable ifOperStatus,

ifOperStatus OBJECT-TYPE
SYNTAX INTEGER {
up(1), -- ready to pass packets
down(2),
testing(3) -- in some test mode
}

I would like to use a command "mib <cmd> ifOperStatus" that
returns a Tcl list of values in the form "up down testing".

Any help would be greatly appreciated. Thanks.

Scott Koumjian