Well, my problems are more related to fulfilling SNMP requests than asking requesting information from other hosts.
I've just hit a void of documentation with regards of implementing a Table type of variable in my agent.
For example I have something in my MIB that looks similar to:
...
snmpExampleTable OBJECT-TYPE
SYNTAX SEQUENCE OF TableEntry
MAX-ACCESS not-accessible
STATUS current
::= { parentOID 1 }
tableEntry OBJECT-TYPE
SYNTAX TableEntry
MAX-ACCESS not-accessible
STATUS current
INDEX { tableEntryIndex }
::= { snmpExampleTable 1 }
TableEntry ::= SEQUENCE {
tableEntryIndex DisplayString,
tableEntryName DisplayString,
tableEntryVal DisplayString
}
tableEntryIndex OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
::= { tableEntry 1 }
...
I'm not entirely sure what I need to pass to the
NetSNMP::agent::netsnmp_request_infoPtr->setValue()
method to get this table to work.
|