[AGENT++] Changing community for generated traps

Gebhart Richard-P27117 Richard.Gebhart at motorola.com
Tue Nov 23 19:42:18 CET 2004


Hi,

Just to update the interested parties, we ended up writing a function to update the row in the target address table to the community value that we wanted.  This was a quick solution, but it allows us to update it at run time.

Regards,
Richard

-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org]On
Behalf Of Mr. AWD
Sent: Monday, November 22, 2004 2:42 PM
To: katz at agentpp.com; agentpp at agentpp.org
Subject: Re: [AGENT++] Changing community for generated traps


 Hi there,

I included a ZIP-ed version of the files:
- parser.cpp
- parser.h
- parser_values.h
- snmp.conf

Config file is initialized similarly to what is in a typical main.cpp that you can find in the examples. In addition to the user configuration, there is a notification init and part that deals with system group objects.

Hope this will be helpful!

Fedja Jeleskovic


--- On Mon 11/22, Jochen Katz < katz at agentpp.com > wrote:From: Jochen Katz [mailto: katz at agentpp.com]To: agentpp at agentpp.orgDate: Mon, 22 Nov 2004 22:17:55 +0100Subject: Re: [AGENT++] Changing community for generated trapsHi,

> Well, since I had the very same problem to solve, I created a parser
> object that was able to get all of the entered information from the
> SNMP configuration file. The parser is able to get all of the group,
> user, access, and view entries besides those needed for the
> notification support (notify, address, and params entries). The last
> three will allow you to specify your desired community string in the
> case of V1/V2 or use any of the entered groups with specified user in
> the case of the V3.

> Let me know if you are willing to check it out or if it would be
> worth to add it as a part of the Agent++ perhaps.

as nobody else asked on the list: please send it to me or post a URL to 
the list, so we can have a look at it.

Regards,
Jochen
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://agentpp.org/mailman/listinfo/agentpp

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



More information about the AGENTPP mailing list