[AGENT++] changed default community, but trap not invoke

변정수 jsbyun at samsung.com
Tue Apr 10 11:00:38 CEST 2007


Hi, Jochen,

I asked 'how to change default community' of agent++ agent.
Thank you for the below answer.

But, after I applied below solution I got a trap problem.

I changed default community ( not 'public') At that time, GET and SET was OK with changed community string.
but, I failed to receive trap from manager.

( I could't see the TRAP packet on the ethernet packet capture program)


After , I changed community to 'public' I got a trap from agent.


Is ther any missing point below solution, especially for TRAP ?



Thanks in advance.

Best Regards
JS

--------------------------------

-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org] On
Behalf Of Jochen Katz
Sent: Friday, December 29, 2006 6:40 AM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] how to change default community?

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