[AGENT++] how to change default community?

Jochen Katz katz at agentpp.com
Thu Dec 28 22:39:33 CET 2006


Hi,

>> So if your agent accepts "public" community, then watch out for a
"public"
>> security name with SNMPv1/v2c view and then change that security name. Hope
>> this helps.
> 
> => Because of my poor understanding of AGENT++ , I can't understand what you
> mean "watch out for a "public" security name with SNMPv1/v2c view and then
> change that security name".
>
> Which code in agent++/snmp++ , should I change?

you should change the VACM configuration, there are most likely some
lines like
        vacm->addNewGroup(SecurityModel_v2, "public",
                         "v1v2group", storageType_volatile);
        vacm->addNewGroup(SecurityModel_v1, "public",
                         "v1v2group", storageType_volatile);
These translate/add the v1 and v2c community public to the group
v1v2group. Later this group is given access to the different VACM views.

Regards,
  Jochen




More information about the AGENTPP mailing list