RE: sending trap from a subagent to a specific sink

"Pamidipati Suresh-G20238" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
 
The commands/directives trapsink, trap2sink and informsink can be
specified in snmpd.conf file to let snmpd/agent know where the
traps/informs need to be send to.
 
You can specify trap2sink for sending snmp v2 traps, else specify
trapsink for snmp v1 traps. For sending inform notifications, specify
informsink.
 
Examples: 
 
trapsink HOST [COMMUNITY [PORT]]
trap2sink HOST [COMMUNITY [PORT]]
informsink HOST [COMMUNITY [PORT]]
 
Community and port are optional. If port is not specified, traps will be
sent to port 162 of "HOST" machine. Please see man page of snmpd.conf
for more details.
 
Regards,
Suresh.
 
 
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of DI
BACCO ANTONIO - technolabs
Sent: Wednesday, July 11, 2007 2:19 PM
To: [email protected]
Subject: sending trap from a subagent to a specific sink


Hi,
 
I would like to send a trap from my subagent (connected via agentX to
the net-snmp agent) to a specific sink (receiver) identified by an IP
address and UDP port.
 
How could it be done?
 
If I fill a netsnmp_session object and then I use add_trap_session from
inside the subagent, could it work? How the agent is notified about this
new sink?
 
Bye,
Antonio.

-------------------------------------------------------------------------
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.