Thanks, I've had a look, but if I understood well page 321 and following of
the tutorial, in order to programmatically populate my mib I'm forced to use
(hence write) a remote manager... am I correct?
No - but if I remember well you may have to subclass the MIB bean,
and possibly any other intermediate group beans in order to get hold of
the table bean in which you will add your entries.
The relevant section is '16.4 Standalone SNMP Agents' page 283.
In that code the IfTable (TableIfTable.java) is populated in the
the constructor of the Interfaces group (subclassed in
InterfaceImpl.java) which contains it.
So if you have a Mib MX containing a group GX containing a table XTable,
I think you will need to create a subclass of Mib MX (MX_Impl) in
order to instantiate a subclass of group GX (GX_Impl) in order
to either populate directly the table TableXTable from GX_Impl,
or create a subclass of TableXTable (TableXTable_Impl).
I think you should be able to find your way by looking at the
file generated for the MIB, which should contain factory methods
that create instances of the generated group beans (GX in my ex above).
To add an entry, you must create an instance of the XTableEntry bean,
make sure to assign the values that are used as indices, and then
just call TableXTable.addEntry(bean).