[AGENT++] Configuring community strings

Jochen Katz katz at agentpp.com
Wed Sep 14 14:49:41 CEST 2005


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





More information about the AGENTPP mailing list