But there are still some errors. this is my configuration in the snmpd.conf *trapsink 192.168.1.57* and this is my configurations in the /var/net-snmp/snmpd.conf *snmpNotifyTable "mytest" "mytest" 1 3 1* *targetAddr mytest .1.3.6.1.6.1.1 0xc0a8013900a2 1500 3 "mytest" mytest 3 1* *targetParams mytest 0 1 public 1 3 1*
by the way I don't know how to set *snmpTargetAddrTAddress* using snmpset but I know it adds lines in the /var/net-snmp/snmpd.conf like I do
then using snmptable or other apps i can see two lines in the Table
when i send trap in my agent it can send 2 packages , one is send to 162(00a2) port. but the other is send to 41472(a200) not the 162.So the first is recongnized to SNMPTRAP, but the second one just a UDP package . why ? I use 0xc0a8013900a2 the tell it the port is 00a2 but I seems as it does not work .
*Have been modified the code thanks Robert Story*
Sugar Li
3 1From: Robert Story (Coders) <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: ___ ______ <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: how to use SNMP-TARGET-MIB Date: Wed, 22 Sep 2004 15:12:28 -0400
On Tue, 21 Sep 2004 13:02:56 +0800 ___ wrote: > I have config all the table ,and I think all the operate > is right .but it can't work. > > I hack the code again. but I found when the trap send from the > agent it will go through the var *sinks*,but the notifiytable store all > the notifies in var *snmpNotifyTableStorage*.
What version are you using? In 5.1.2, it uses both.
> I know when I use *snmpset* creat a new notify\target..It will add
> some thing in the /var/net-snmp/snmpd.conf this is in my snmpd.conf
>
> snmpNotifyTable "himenme" "himenme" 1 3 1
> targetAddr himenme .1.3.6.1.6.1.1 "C0 A8 01 DD 00 A2" 1500 3 "" himenme
> targetParams himenme 0 1 public 1 3 1
There is a bug in the notify code for new entries via snmpset. It has been fixed in cvs. You can try applying this change to your code base:
http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/agent/mibgroup/notification/snmpNotifyTable.c?r1=5.3&r2=5.4
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
--
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive:
You are lost in a twisty maze of little standards, all different.
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
