We are doing a snmpset using the SNMP4J version 2.6, API Library. with SNMP V3 Authentication.
The same works from command line net-snmp snmpset.
When analyzed with the network traces, we find, snmp4j, sends a single snmpset request to the destination.
But the net-snmp snmpset, everytime does the following:
First sends a getrequest
gets a report.
Second request is the snmpset,
a report is received with a Object Reference with an integer value.
Third request is again a snmpset same as second attempt.
This time, there a get-response, which indicates the varbinds set with the values passed.
It seems like, a session is maintained at the Agent to serve these requests and somehow the snmp4j is failing to connect and do the needful.
Need, support asap.