Re: SNMP create event

Heiko Boch (boch@lrc.di.epfl.ch)
Wed, 30 Jul 1997 10:12:18 +0200

> [...]
> Mostly. Scotty currently automatically creates a Tcl array variable
> for the new instance, which is called like the object type and indexed
> by the instance identifiert. This is not really very flexible, but I
> never got around to change this behaviour.

But I should get the create event.

> Heiko> Second, I never get a create event. For example does the
> Heiko> test agent given below never print the create me message
> Heiko> when I issue the following request:
>
> Heiko> snmp alias snmpOpt [ list -address $address \
> Heiko> -port $port -community $community -version SNMPv1 ]
> Heiko> set s [ snmp session -alias snmpOpt ]
> Heiko> $s set [ list [ list sysDescr.0 "Heiko's test system" ] ]
>
> Heiko> Am I missing something?
>
> Yes, two things: First, scotty automatically creates an instance
> sysDescr.0 and hence your set will modify the sysDescr.0 variable and
> not create a new one. Second, sysDescr is read-only so setting it or
> even creating it won't work anyway.
> [...]

Hmm, really a pitty. I wanted to create just a simple example rather than
describing my own MIB...
Nevertheless, the same problem rises when I substitute sysDescr
with ipForwarding (and use an integer instead of a string of course).
This variable is read-write and Scotty should not instantiate it by its
own.

Heiko

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