Re: [tkined] question re: mib command

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 7 Jul 1998 21:03:03 +0200

>>>>> Michael Landman writes:

Michael> I'm new to the "scotty" package, and am starting to use the
Michael> "mib" command. Using the "mib [-exact] access label" command
Michael> will return the access mode of the object (read, read-write,
Michael> etc.).

Michael> Is there a similar command for returning the "status" of a
Michael> loaded mib object? For example, I'm looking for a quick way
Michael> to identify all "mandatory" (STATUS mandatory) objects.

There are actually two questions here:

1. There is no command option in scotty 2.1.X to access the value of a
STATUS clause. The 3.0.0 development snapshot has such a command:

% puts $tnm(version)
3.0.0
% mib status sysDescr
current

2. The semantics of the STATUS clause changed from SMIv1 to SMIv2. The
status "mandatory" does not exist in SMIv2. So checking for value
"mandatory" will give you false results if you hit a SMIv2 MIB. (In
SMIv2, you have compliance statements which tell you more precisely
what you have to implement and what not.
Juergen

Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany. (Tel. +49 531 / 391 3283)

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