this.transportMappings = transportMappings;
createMOs();
}
private void createMOs() {
snmpEngineID = new MOScalar(new OID("1.3.6.1.6.3.10.2.1.1.0"),
MOAccessImpl.ACCESS_READ_ONLY,
null) {
public Variable getValue() {
return new OctetString(getUSM().getLocalEngineID());
}
};
snmpEngineBoots = new MOScalar(new OID("1.3.6.1.6.3.10.2.1.2.0"),
MOAccessImpl.ACCESS_READ_ONLY,
null) {
public Variable getValue() {
return new Integer32(getUSM().getEngineBoots());
}
};
snmpEngineTime = new MOScalar(new OID("1.3.6.1.6.3.10.2.1.3.0"),
MOAccessImpl.ACCESS_READ_ONLY,
null) {
public Variable getValue() {
return new Integer32(getUSM().getEngineTime());
}
};
Integer32 maxMsgSize = new Integer32(getMaxMessageSize());
snmpEngineMaxMessageSize = new MOScalar(new OID("1.3.6.1.6.3.10.2.1.4.0"),
MOAccessImpl.ACCESS_READ_ONLY,
maxMsgSize);
}