berlin.setState(IltSNMP.State.Shutdown);
berlin.setState (IltMisc.SecState.TestFailed);
berlin.set (IltSNMP.Interface.InOctets, new Integer (123));
In the SNMP state dictionary, most of the states have numeric
values. In order to set the values for these states you can use
either
IltSNMPObjectState or
IltObject. Both of these APIs provide
methods to set and retrieve the value of a numeric state.
set sets the value of the given state.
get returns the value of the given
state.
Besides the numeric and Boolean states present in the SNMP
state dictionary, there is also a set of information that is
related to the system being managed and that is defined in the
MIB-II System Group. The information in the group is displayed
in a System window (explained in detail in
System window). The graphical
representation of this information is an icon that, when
clicked, opens the System window containing the list of all the
attributes set in the telecom object. For information regarding
the insertion of new attributes, see
Creating a new attribute in the System
group.
The following code extract shows how to
change the values of the attributes defined by the System
Group.