Thank you, very much.

If the agent is in charge to send the traps, how can the subagent inform
the agent about new sinks? Probably this info will be also conveyed
through the AgentX. I will try.

Bye,
Antonio.


>Antonio,
>I did not use AgentX subagent, but i addeed sink dynamically as

follows:

>If you see netsnmp_send_traps( ) API, sinks to which traps are

generated are from the structure :

>struct trap_sink {
> netsnmp_session *sesp;
> struct trap_sink *next;
> int pdutype;
> int version;
>};


>struct trap_sink *sinks = NULL;
>
>you can use following API with appropriate parameters for adding a

sink : create_trap_session( )

>I tried this and it worked.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users