Hi Frank,
we are planning to use SNMP4J to build an snmp agent for our product. As a starting point, i tries running the sample agent provided by SNMP4J and i understand that the program (or SNMP4J library in general) is using properties file to load few MIBs data like SNMP COmmunity, VACM entries.
with our current vendor the configuration properties are very minimal like the agent ip address, port number and just the read/write community entries. We would like to implement the new agent with SNMP4J with as minimal as the existing configuration properteis. and i tried removing few entries from “SampleAgentConfig.properties” and when i removed all VACM related entries from the prop file, the agent is not able to process the request and i see the following exception.
java.lang.Exception: Error ‘Authorization error’ generated at: 1.3.6.1.4.1.2552.200.300.1.3.1 = Null
at org.snmp4j.agent.request.SnmpRequest$SnmpSubRequest.requestStatusChanged(SnmpRequest.java:626)
at org.snmp4j.agent.request.RequestStatus.fireRequestStatusChanged(RequestStatus.java:89)
at org.snmp4j.agent.request.RequestStatus.setErrorStatus(RequestStatus.java:52)
at org.snmp4j.agent.CommandProcessor.setAuthorizationError(CommandProcessor.java:506)
at org.snmp4j.agent.CommandProcessor.processRequest(CommandProcessor.java:379)
at org.snmp4j.agent.CommandProcessor.dispatchCommand(CommandProcessor.java:340)
at org.snmp4j.agent.CommandProcessor$Command.run(CommandProcessor.java:566)
at org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:312)
with our current SNMP agent we dont have any entries related to VACM and we want to get the same experience with the new agent as well (so that it will not impact our customers).
So as far as SNM4J implmentaion is considered, is VACM data mandatory? is there any way to avoid these VACM mib so that we can have a minimal mandatory set of configuration properties.