[AGENT++] snmp v1 community

Jochen Katz katz at agentpp.com
Thu Apr 14 23:02:32 CEST 2011


Hi,

> I don't understand this source code of agent.cpp:
> 
>         vacm->addNewGroup(SecurityModel_v2, "public",
>                          "v1v2group", storageType_volatile);
>         vacm->addNewGroup(SecurityModel_v1, "public",
>                          "v1v2group", storageType_volatile);
> 
> Is SecurityModel_v2 any different from SecurityModel_v1?

yes SNMPv1 and SNMPv2 are different things, but...

> Doesn't v1 and v2c share the same communities?

... the code above just states that both, v1 and v2c community "public"
are mapped to VACM group "v1v2group".

> Another question: how to have a write community string that is
> different from the read community string?

You can do this with the VACM. Do not add write access entries for the
v1v2group and add a new group v1v2writegroup for your "secret" community
and give it the needed write access entries. For each used community
name, add an entry to the snmpCommunityEntry.

Regards,
  Jochen



More information about the AGENTPP mailing list