[SNMP4J] Setting up Agent communities
Frank Fock
fock at agentpp.com
Sun Apr 16 23:50:04 CEST 2006
Hi Erik,
No, the com2sec entry refers to the SNMP-COMMUNITY-MIB
not to the VACM-MIB. SNMP4J-Agent now supports the
SNMP-COMMUNITY-MIB in form of the SnmpCommunityMIB
class. You can map a community to a security name there.
Best regards,
Frank
Earle, Erik wrote:
> What little snmp agent experience I have is with net-snmp so I am just
> trying ³to build a bridge² from that to snmp4j agent. Net-snmp defines 4
> vacm configuration directives. I see member methods on the VacmMIB class
> that mirror 3 of the 4 in snmp4j. The only one I don¹t see is Œcom2sec¹
> which is where one would define a community.
>
>
> It appears that to add a ³public² community for v1 security model types, the
> following from the TestAgent class (line 89 in 1.0-beta1) takes care of
> this:
>
> vacm.addGroup(SecurityModel.SECURITY_MODEL_SNMPv1,
> new OctetString("public"),
> new OctetString("v1v2group"),
> StorageType.nonVolatile);
>
> Is this true?
>
>
>
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
More information about the SNMP4J
mailing list