This page describes how rows with SNMP values can be added to a SNMP4J-Agent table.
To add a row to a DefaultMOTable
Make sure that the
MOTableModelused by the table is an instance of the
Create the row values as an array of
Let the SNMP4J-Agent API create a new row based on the provided values and the index sub-OID for the new row. The new will be created by the
snmpCommunityTable. If the row factory is not set (for example to a DefaultMOFactory instance) then an exception will be thrown:
Add the newly created row to the table: