Re: scotty-2.0.2 agent: bugs regarding instances

Robert Premuz (rpremuz@srce.hr)
Fri, 23 Feb 1996 09:56:22 +0100 (MET)

On Thu, 22 Feb 1996, I wrote:

> Second, an agent created in SNMPv2 mode should response to a get
> request with exceptional values for variables which don't have
> instances in the agent. Unfortunately, scotty does not response with
> exceptional values, but with some zero values. (I've tried this case
> only for SNMPv2C session.)

I was wrong. I didn't check the syntax (type) element of a returned
varbind which, in case an exception is returned for a requested
variable, holds the textual representation of the exceptional value.

It's better it's my fault than the source code should be changed :)

BTW, the scotty(1) man page says:

SNMP varbind lists are represented as Tcl lists where each
list element itself is a list describing one varbind ele-
ment. A varbind element is usually a triple of the object
identifier, the associated type and a value.

Here I would add the following sentence:

If there is an exceptional value in the response returned by an
SNMPv2 agent, then the type element of the varbind contains the
textual representation of the exceptional value (e.g.
noSuchInstance).

v
-- rpr. : Robert Premuz
Internet: rpremuz@malik.srce.hr * Voice at home: +385 (0)1 687564