Re: Command to get integer enum values?

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Wed, 28 Aug 1996 15:22:35 +0200

Scott Koumjian <sak@eng1.netlink.com> wrote:

> 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 would like to use a command "mib <cmd> ifOperStatus" that
> returns a Tcl list of values in the form "up down testing".

Try the command

lindex [mib tc ifOperStatus] 3

which should return "{up 1} {down 2} {testing 3}" which is nearly what
you are looking for.

Juergen