dwz OBJECT-TYPE
SYNTAX dwzList
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "dwz field list"
INDEX { dwzProcName }
::= { dwzTable 1 }
dwzList ::= SEQUENCE
{
dwzProcName DisplayString,
dwzProcTrace DisplayString,
...
}
...
----------------------------------------
The above defines a table dwzTable with rows of dwz, where dwzProcName
is a unique identifier for the current row of dwz.
To create an instance of dwz, I issue the following command line:
set iid "0x[join [split [mib scan $dwzProcName "myproc"] {:}] {.0x}]"
$session instance dwzProcName.$iid myvar "somevalue"
The first line tries to convert the processname into a unique object
identifier - IMO this code looks rather ugly.
Q1: Is there some easier way to convert a string index for an SNMP table ?
Q2: Should I use the IMPLIED keyword if the dwzProcName instances are
of variable length ?
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.