Hello,
I read about 50 oid per pdu with a snmp get.
(SNMP4J 3.1.0)
response = snmp.send(pdu, target);
processResponse_Synchronous(response);
private boolean processResponse_Synchronous(ResponseEvent event) {
try{
if (event != null) {
responsePDU = event.getResponse();
if (responsePDU != null) {
if (responsePDU.getErrorStatus() == PDU.noError) {
for (VariableBinding varBinding : event.getResponse().getVariableBindings()) {
...
}
}
}
}
...
}
}
With this code, it’s ok if all oid are valid for the device.
If one or more oid are not valid, I ignore the response.
Is it possible to analyse the response and obtain the value for the valid oid ???
During my test, It seems to me that I can’t find all the valid oid value in the response if one or more oid are not valid.