RE: Adding and removing trap sessions from a subagent
"Madan Mohan Goud" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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.
Thanks,
Madan
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of DI
BACCO ANTONIO - technolabs
Sent: Monday, July 16, 2007 2:39 PM
To: [email protected]
Subject: Adding and removing trap sessions from a subagent
Is it possible to add a new trap sink dinamically (and programmatically,
not via configuration files) from within an AgentX subagent?
-------------------------------------------------------------------------
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