[SNMP4J] PDU setNonRepeaters problem?

2011-09-16 Thread Chris Richmond
We have been using the Snmp4j v2.0 library for a while now in testing and have begun to do some error condition handling when I came across something which seems either wrong or confusing to me I noticed that when performing a bulk request and setting the PDU.setNonRepeaters() method that no

Re: [SNMP4J] PDU setNonRepeaters problem?

2011-09-16 Thread Frank Fock
Hi Chris, It's not a bug, it's a feature. The SNMP standard(s) have caused that. The nonRepeaters field is the same as the errorStatus field on the wire (repeaters = error index). That works, because when you send a GETBULK request, an error condition does not make sense (for the agent). The

Re: [SNMP4J] PDU setNonRepeaters problem?

2011-09-16 Thread Chris Richmond
As a followup...I notice by looking through the responsePDU in the source code that the error code is never set to anything but 0 for any response, such as in the Snmp class: protected void sendInformResponse(CommandResponderEvent event) throws MessageException { PDU