[AGENT++] Configuring community strings
Gokul Poduval
gokul.poduval at gmail.com
Thu Sep 15 11:16:05 CEST 2005
Hello,
We were using version 3.5.2. I tried upgrading Agent++ to 3.5.23a, and it
Agent++ and SNMP++ compiled without a problem. I upgrade SNMP++ to 3.2.17.
However, now when we try to compile our program, we are getting errors like
this
In file included from
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/mib.h:105,
from ../../include/snmp/DvSnmp.h:53,
from DvSnmpAgent.cpp:12:
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/request.h:154: parse
error before `{'
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/request.h:156: `friend'
can only be specified
inside a class
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/request.h:157: parse
error before `public'
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/request.h:187: parse
error before `const'
/mnt/dvstation/agent++.i586/agent++/include/agent_pp/request.h:192:
destructors must be member
functions
and so on. Line 154 at request.h contains the class declaration for Request,
which is a subclass of Synchronized. Has anyone faced this problem before
while upgrading Agent++ ?
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