>
> Do not attempt to access snmpTargetAddrTable from the inside.  Are you
> trying to change trap destinations from your subagent?
>

 Yes, In my corporation they take an object IP address in their MIB for the
trap destination.  This field must set by NMS Server. So I must add trap
destinations dynamically from my agent.
But, I read some document and I think in SNMP RFC, removing & changing of
trap destinations not allowed. Is it correct? Therefore now, I'm not
intented to change or remove the trap destinations. I use the internal
structure of agent_trap.h only to check not to insert double trap
destinations.

I think my problem is solved, really appreciate you.


On Wed, Dec 16, 2009 at 11:49 PM, Mike Ayers <[email protected]> wrote:

>
>        [PLEASE send responses to the list, not to me!]
>
> > From: majid namnabat [mailto:[email protected]]
> > Sent: Tuesday, December 15, 2009 4:04 AM
>
> >       I work on main agent. so I  could insert a trap destination by
> > netsnmp_config function. But snmpd_free_trapsinks function doesn't work.
> > ( I think the sinks variable not used at NET SNMP yet)
>
>         That should work, although it's a bit kludgey.  You may want to
> look in agent_trap.h for functions more specifically suited to your needs.
>
> >     how can I remove existing trap destinations? must I use functions
> > at snmpTargetAddrEntry.c, such as snmpTargetAddrTable_dispose function
> > to clear aAddrTable variable. Is it correct? and about
> > create_trap_session function, this was my blunder!
>
>         Do not attempt to access snmpTargetAddrTable from the inside.  Are
> you trying to change trap destinations from your subagent?
>
>
>        HTH,
>
> Mike
>
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to