Hi Dave,
Thank you.
Here what I need is to dynamic config the trap receiver's address and
community(ex. By cli), so what I need to do is just passing the required
address as input and call function " snmpd_parse_config_trap2sink () ", or I
need any other consideration?
For dynamic snmp community config, I can use function "
vacm_create_simple("rocommunity", "commmunity&host",
VACM_CREATE_SIMPLE_COMIPV4, VACM_VIEW_READ_BIT); " (in fact it is called by
vacm_parse_rocommunity()), is there any same function for dynamic trap
config?
Thank you very much
Li
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Wednesday, August 23, 2006 4:22 PM
To: Li Gan
Cc: [email protected]
Subject: Re: how to set trap receiver's ip address in code for embedded
system
On 23/08/06, Li Gan <[EMAIL PROTECTED]> wrote:
> Thanks, that's also what I thought, the question is which one is the
> config directive handler for config trap receiver's ip address?
>
> Would you pls. tell me, thanks very much.
Sorry - I don't have immediate access to the code.
(It's on my laptop downstairs!)
Have a look in the agent code (probably agent_trap.c) for where
"trapsink" et al are registered. That call will include the name of
the routine you need to call.
Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders