AW: Re: [AGENT++] Configuring community strings

fock at agentpp.com fock at agentpp.com
Tue Sep 20 12:27:49 CEST 2005


This will work for any 3.5 version. Please make sure that
you "change" to code where the "public" community is set.
Adding a new community does not invalidate the old!

Best regards,
Frank

>
>Will the given code work with versions below 3.5.21 ? I am trying this with 
>version 3.5.2, and it does not seem to work. The community is always public 
>with version 3.5.2.
>
>On 9/14/05, Jochen Katz <katz at agentpp.com> wrote:
>> 
>> Hi,
>> 
>> > We are running SNMP v3. Currently, neither are we calling
>> > snmp_community_mib::add_public(), nor are we configuring VACM 
>tables.
>> > However, when we try GETs using SNMP v2c protocol, the only 
>community 
>> string
>> > that works is public.
>> 
>> either you're using agent++ with version lower than 3.5.21, or you're
>> configuring some of these tables.
>> 
>> > Is it possible to change this ?
>> 
>> The code below from the atm_mib example adds a mapping from community
>> PubliC to securityname PubliC (co is used twice in set_row()!):
>> 
>> OctetStr co("PubliC");
>> MibTableRow* row = snmpCommunityEntry::instance->
>> add_row(Oidx::from_string(co, FALSE));
>> OctetStr tag("v1v2cPermittedManagers");
>> snmpCommunityEntry::instance->
>> set_row(row, co, co,
>> reqList->get_v3mp()->get_local_engine_id(),
>> "", tag, 3, 1);
>> 
>> Then you have to configure the VACM to allow access for the PubliC user
>> (vacm->addNewGroup, vacm->addNewAccessEntry, vacm->addNewView)
>> 
>> Regards,
>> Jochen
>> 
>> 
>> _______________________________________________
>> AGENTPP mailing list
>> AGENTPP at agentpp.org
>&gt; <a target="_blank" 
>href="http://lists.agentpp.org/mailman/listinfo/agentpp">http://lists.agentpp.o
>rg/mailman/listinfo/agentpp</a>
>&gt;
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
><a target="_blank" 
>href="http://lists.agentpp.org/mailman/listinfo/agentpp">http://lists.agentpp.o
>rg/mailman/listinfo/agentpp</a>



More information about the AGENTPP mailing list