Jason> If the index is not an integer, but a MacAddress (which is an
Jason> octet string of length 6 -- say, A0:A0:A0:A0:A0:A0), how would
Jason> I express this as an instance?
Jason> Something like: $s instance someObject.$MacAddress someObject <value> ??
In this case, you can write someObject:$MacAddress since scotty accept
hexadecimal values in an OID if they are prefixed by `:'. (See the
SNMP manual page.) Note, the next alpha of Tnm 3.0.0 snapshot will
have a Tnm::mib pack and a Tnm::mib unpack command which allow to pack
arbitrary values into an instance identifier without having to write
special code, e.g.
Tnm::mib pack $someObject $MacAddress
(This really helps if you have tables with complex indexes, some of
them (implied) variable length.)
Juergen
-- Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw Technical University Braunschweig, Dept. Operating Systems & Computer Networks Bueltenweg 74/75, 38106 Braunschweig, Germany. (Tel. +49 531 / 391 3289)-- !! 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.