[AGENT++] agent++ help

Vikram Bhuskute vikrambhuskute at gmail.com
Mon May 25 16:57:07 CEST 2009


Hi,
         I could somehow :) generate SNMPv3 Inform  (not trap)!!
(Did addgroup/addNewAccessEntry ......) But two problems

1. How to set  engine Id of trap receiver ? ( i tried  Following

  usm->add_usm_user("vab",
         SNMPv3_usmHMACMD5AuthProtocol, SNMPv3_usmDESPrivProtocol,
               "passsword", "password","123456");

2. how to generate trap instead of inform ?


Console output Snippet below

v3MP::EngineIdTable: Dont know engine id for (host) (port): (127.0.0.1),
(162
.
.
.
.
EVENT  : NotificationGenerator: sent inform
(vers)(id)(tdomain)(addr)(vbs)(community/secName)(status): (3),
(18.49.46.51.46.51.46.49.46.54.46.51.46.49.53.46.48.46.49), (



(I could generate trap wih snmpTrap console util from snmp++)

regards

Vikram


n Mon, May 25, 2009 at 12:59 PM, Vikram Bhuskute
<vikrambhuskute at gmail.com>wrote:

> Thaks for the mail. Please see inline.
>
> On Fri,
>
>>
>>
>> > 3. I tried v3 trap
>> >
>> >        Vbx* vbs = 0;
>> >        coldStartOid coldOid;
>> >        NotificationOriginator no;
>> >        UdpAddress dest("127.0.0.1/162");
>> >        no.add_v3_trap_destination(dest, "defaultV1Trap", "v3trap",
>> > "public");
>>
>> I doubt, that you have added a v3 user with name "public". So this will
>> not work. Have a look at the example agents that add SNMPv3
>> configuration for MD5DES user.
>
>
> Could you please help me locate this in the code ? i couldnt find .
>
>
>
>>
>> > 4. I have mib browser there i tried to pur protocol preference as snmpv3
>> > and was running examples/dynamic_table/src/agent ... and got error
>> >  RequestList: SNMPv3 auth failure
>>
>> This is also caused by missing or wrong snmpv3 configuration. The text
>> after "SNMPv3 auth failure: " should tell you what's wrong.
>
> I am  little confuse with the snmp configuration  . how to do this inside
> agentpp
>
> regards
>
> Vikram
>



More information about the AGENTPP mailing list