Re: Command to get integer enum values?

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Wed, 28 Aug 1996 10:14:00 -0500

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

Does this by default for me on 2.1.1

-
____________________________________________________________________________
Doug Hughes Engineering Network Services
System/Net Admin Auburn University
doug@eng.auburn.edu