[SNMP4J] Setting Agent managed object values
Frank Fock
fock at agentpp.com
Sun Oct 21 00:21:26 CEST 2007
Hi Gene,
http://www.snmp4j.org/agent/doc/org/snmp4j/agent/mo/DefaultMOMutableRow2PC.html
has what you are looking for (getValue/setValue methods for row).
Best regards,
Frank
Eugene R. Snider wrote:
> In the TestAgent and ifMIB example code how does the Agent update the
> values of a managed object? For example if I use the static creation
> example to create rows for the ethernet devices how do I update inOctets
> or outOctets from the agent side? For the MOScalar class there is a well
> defined setValue function but I can't find an equivalent function for
> cells in a row. I thought I might need to maintain a copy of the row
> locally but I can't find an update function. Would I need to remove and
> re-add the row whenever a value in one column changed?
>
> Or is there some way to provide a callback function that the agent will
> invoke to manage the object?
>
> Thanks,
> Gene
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list