[AGENT++] Configuring community strings
Gokul Poduval
gokul.poduval at gmail.com
Tue Sep 20 11:07:14 CEST 2005
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
> http://lists.agentpp.org/mailman/listinfo/agentpp
>
More information about the AGENTPP
mailing list