Re: Help: how I try my trap

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Sat, 1 Apr 2006 11:18:55 -0500, "michael liu" <[email protected]> said:

michael> In my code, I used send_easy_trap(SNMP_TRAP_ENTERPREISES, 99)
michael> ,which same is the example.c code, but how do I know this
michael> trap is sent or received?

It's sent to anywhere you have the agent configured to send it to.

Try putting the following line in your snmpd.conf file:

  trap2sink localhost

And then on the same machine run "snmptrapd -f -Le" and watch the
output of snmptrapd as your agent sends a trap.  You should see it.
-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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.