Dear Dave and all,
Hi,I am sorry to interrupt you again becuase I have another trouble.I need
to send traps to dynamic destinations which only can be determined when sending
traps on IPV4,so the trap API routines 'send_easy_trap()' or 'send_v2trap' are
not so effective because I am not able to write destinations staticly in the
snmpd.conf file.If i want to change the file dynamicly when apps running,there
will be another problem:it seems like that the changes only can take effect
when snmpd apps restart,which is not expected.
Is there any way to resolve this problem?
I choose using API routines "snmp_pdu_create(SNMP_MSG_TRAP2)" and
"snmp_send(ss,pdu)" to send traps,while the session peername and port can be
specified.But i meet the troulbe:it always send traps on port 161,even through
i use the code"session.remote_port= SNMP_TRAP_PORT;",while the destination IP
can be changed successfully.Therefore,the snmptrapd cant receive the traps.This
situation also occurs when other net-snmp apps using "snmp_send(ss,pdu)" .
How can I resolve this problem?Thank you for your help.
Best regards,
zhou
---------------------------------
Mp3疯狂搜-新歌热歌高速下
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users