string index on bind callback

Bernd Hentig (bernd@finow.snafu.de)
Tue, 10 Jun 1997 22:06:55 +0100 (WET DST)

Hi.
When binding a table/entry oid to a "get" callback, I can read the
index of the child snmp node with the %i substitution variable:
$session bind $table-oid get [list my-callback %V %i]

In this case the index originally is an octet string like "idn" which
will be converted to "105.100.110" on the "get" callback.
Unfortunately I need to know the "real" string, but converting decimal
number strings to "real" strings seems to be rather complicated in tcl.
I tried
mib format table-index $i
(where $i is the replaced %i variable)
but (as I expected) this doesn't work.

Certainly there is some easy method to get at the index name ?

Thanks for any hints
Bernd

-- 
+-----------------------------------------------------------+
|Bernd Hentig		        |email: Bernd.Hentig@guug.de|
|Parkstr. 10			|Fon: +49 3335 3233 0       |
|D-16244 Finowfurt (Germany)    |FAX: +49 3335 3233 1       |
+-----------------------------------------------------------+
--
!! 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.