snmp agent(s)

Buz Owen (ado@BBN.COM)
Wed, 06 Mar 1996 18:46:24 -0500

If I create several snmp agent sessions in one scotty, they
seem to share the same instance bindings. For example:

# server code
set a [snmp session -port 1701 -agent {}]
set b [snmp session -port 1702 -agent {}]

$a instance sysName.0 na A
$b instance sysName.0 nb B

# client code - in another process on same host...
set s [snmp session -port 1701]
puts "1701 -> [$s get sysName.0]"
$s configure -port 1702
puts "1702 -> [$s get sysName.0]"

I get the following output

1701 -> {1.3.6.1.2.1.1.5.0 {OCTET STRING} B}
1702 -> {1.3.6.1.2.1.1.5.0 {OCTET STRING} B}

Both agents act like they were instanced to variable nb. I suspect
this is somehow related to my configuring -agent {}. But it still
seems like a bug. Anyway, is there any easy way to fix this?

As an aside, I don't see why it is even meaningful for an snmp agent
be able to specify a safe tcl interpreter. An snmp client can't
send a tcl script to an snmp server.

thanks/Buz

ps> set scotty_version
2.0.2