RE: Adding and removing trap sessions from a subagent

"DI BACCO ANTONIO - technolabs" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <F1F6EC0C8B75034F9E3A79FC85122E8E977F9D@aquib01a>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.