I create an snmp message (SNMP4J) and I need to set the Read Community Public and the Write Community Private.
From an example the community is set:
// Specify receiver
Address targetaddress = new UdpAddress("10.10.10.10/162");
CommunityTarget target = new CommunityTarget();
target.setCommunity(new OctetString("public"));
target.setVersion(SnmpConstants.version2c);
target.setAddress(targetaddress);
But this doesn't specify if it is the write or read community. Is there no way to define them seperatly?