We wish to use a string as the second index to a two dimensional table
in our agent. We have created a mib with the following table defined:

fooTable  OBJECT-TYPE
        SYNTAX SEQUENCE OF FooEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION 
                ""
        ::= { fooConfig 1 }

fooEntry  OBJECT-TYPE
        SYNTAX  FooEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION 
                ""
        INDEX { fooId, 
                fooAttribute }
        ::= { fooTable 1 }

FooEntry ::= SEQUENCE {
        fooId
                Integer32,
        fooName
                DisplayString,
        fooValue
                DisplayString
}

Is this even possible to implement?  The various syntax checkers and mib
compilers we use did not complain.

If this is possible, then how do we specify instances of table members?
For example, lets say the first element in the table had fooId of 123
and fooName of "elementOne".  How would we do an snmpget on fooValue for
this element:

Snmpget -v 2c -c public localhost XXX-SNMP-MIB::fooValue.123.????


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to