Hi,

Can“t really say that the RFC helped me but the access entry thing
helped. I was really close yesterday... did a minor fatal mistake when
adding the group (and did not go through the javadocs enough...).

These lines did the trick.
        
        Variable[] com2sec2 = new Variable[] { new OctetString("private"), // 
community name
                new OctetString("cprivate"), // security name
                getAgent().getContextEngineID(), // local engine ID
                new OctetString("private"), // default context name
                new OctetString(), // transport tag
                new Integer32(StorageType.nonVolatile), // storage type
                new Integer32(RowStatus.active) // row status
        };
        
        MOTableRow row = communityMIB.getSnmpCommunityEntry().createRow(
                new OctetString("public").toSubIndex(true), com2sec);
         communityMIB.getSnmpCommunityEntry().addRow(row2);

vacm.addGroup(SecurityModel.SECURITY_MODEL_SNMPv2c, new OctetString(
        "cprivate"), new OctetString("v1v2group"),
        StorageType.nonVolatile);

vacm.addAccess(new OctetString("v1v2group"), new OctetString("private"),
                SecurityModel.SECURITY_MODEL_ANY, SecurityLevel.NOAUTH_NOPRIV,
                MutableVACM.VACM_MATCH_EXACT, new OctetString("fullReadView"),
                new OctetString("fullWriteView"), new OctetString(
                        "fullNotifyView"), StorageType.nonVolatile);


Thanks
/Johan


2008-07-02 Frank Fock  wrote:

Hi John,
>
>RFC 3584 has the details. Probably an access entry
>for your "private" view was missing?
>
>Best regards,
>Frank
>
>[EMAIL PROTECTED] wrote:
>> Hi there,
>> 
>> I am building an Snmp simulator based on the example in TestAgent. It 
is
>> working well but I really cannot figure out how to setup the "private" 
community.
>> 
>> Sending requests with CommunityTarget="private" results in timeout. I 
have tried
>> several approaches with the "protected void addViews(VacmMIB vacm)" 
method
>> as well as "protected void addCommunities(SnmpCommunityMIB 
communityMIB)"
>> method but no luck.
>> 
>> I would really appreciate if someone could point me in the right 
direction here.
>> 
>> Regards / Johan
>> _______________________________________________
>> SNMP4J mailing list
>> [email protected]
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>-- 
>AGENT++
>http://www.agentpp.com
>http://www.mibexplorer.com
>http://www.mibdesigner.com
>
>
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to