SNMP get response contains wrong community string

Hi,

My snmpCommunity table looks like this:

SNMP-COMMUNITY-MIB::snmpCommunityTable
index  Name     SecurityName  ContextEngineID  ContextName  TransportTag  StorageType  Status
comr   public   comRead       <local_eid>      ""           ""            nonVolatile  active
comw   private  comWrite      <local_eid>      ""           ""            nonVolatile  active

If I query the agent with community name public, the response will have a community name of “comRead” instead of public. For community private the response will have a community of “comWrite”.
This is with SNMP++ v3.5.2 and Agent++ v4.6.1.

Thanks in advance

Holger

Hi Holger,

This is indeed a bug. I working on a fix.

Best regards,
Frank

The bug has been introduced in AGENT++ 4.5.3. A fix has been implemented but needs to be tested.

Thanks for fixing it. If you have a patch I’d be happy to help testing.