[tkined] [Q] About agent mode coding

Bae Young Ho (yhbae@rcunix.kotel.co.kr)
Mon, 10 Nov 1997 14:47:30 +0900 (KST)

Hello, Dear scotty users.

I want to write a program which handles SNMP request from management station.

Here, 'Handle' means just showing/modifing the values of requested objects.

So, I instanciated the whole leaf objects using array like follows

mib walk n iso {
.
.
$s instance $n.0 a($n.0)
.
.
}

and bind get and set request like follows

$s bind 1.3 get {
puts stderr "%T from %A:%P"
}

$s bind 1.3 set {
puts stderr "%T from %A:%P with %V and %v"
foreach i "%V" {
set tmp [mib name [lindex $i 0]]
set a($tmp) [lindex $i 2]
puts stderr "a($tmp) = $a($tmp)"
}
}

It looks fine when the request is get.

but It doesn't seem to work sometimes where the request is set.

When I tested setRequest using scotty, it looks fine.

But, When I tested it using my NMS(TeMIP), set bindings didn't seem to work.

SetResponse looks fine, But when I tried Get on same object,
it was not modified.

Could you please help me to solve this problem ?

Thanks in advance.

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