[tkined] Use of snmp# bind {} send [script]

Davide Minervini (honda@sodalia.it)
Mon, 17 May 1999 15:36:41 +0200

Hi,
I am Davide and maybe becouse I'm very green at using scotty
but......
I work with a hp workstation (HP-UX B.10.20 A 9000/712) and with
scotty2.1.10 and tcl8.0
my problem is:
I don't get any answer from the command " snmp# bind {} recv [script] "
while the send command works perfectly. Why ???
This is the simple script which I have used:

#!/bin/sh
# the next line restarts using scotty -*- tcl -*- \
exec scotty2.1.10 "$0" "$@"

package require Tnm 2.1
mib load rfc1213.mib
set address [netdb hosts address $tnm(host)]
set s [snmp session -address $address -port 7000 -agent {} -community
"Dcn.95"]
# don't works.......
$s bind {} recv {puts "recv -> It works properly"}
# works......
$s bind {} send {puts "send -> %T %E %V"}

I thank You in advance for Your help and I ask sorry for my
ignorance.........I will improve.

All the best
Davide

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