[SNMP4J] right way to update a variable

Guenter Wildmann a8909020 at unet.univie.ac.at
Fri Apr 25 18:46:30 CEST 2008


Hello!

After viewing a variable in SampleAgent i want to update its value.

I did the following and it works, but is it the way it should be done?

SubRequest req ...;
mo.get(req);
Integer32 scalar = (Integer32)vb.getVariable();
scalar.setValue(value);
mo.prepare(req);
mo.commit(req);
mo.cleanup(req);


Ciao, Guenter





More information about the SNMP4J mailing list