Re: Can net-snmp listen for traps on 2 different ports?

Ryota YUSHINA <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

How about removing the blanks around a comma.

 > snmpTrapdAddr<snmpagent IP>:<dummy port>  ,<snmpagent IP>:162
                                           ~~~ <-
try

snmpTrapdAddr<snmpagent IP>:<dummy port>,<snmpagent IP>:162



I succeeded on Net-SNMP 5.4.0/CentOS 5.3

snmptrapd.conf:
snmpTrapsAddr udp:161,udp:192.168.0.10:60161


[root@jazz uc7]# ps aux|grep snmptrapd
root     28748  0.0  0.1  15492  2796 pts/0    S+   01:10   0:00 
/usr/sbin/snmptrapd -Le -d -f
root     28781  0.0  0.0   5068   768 pts/1    R+   01:28   0:00 grep 
snmptrapd
[root@jazz uc7]# netstat -aunp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address 
     State       PID/Program name
udp        0      0 192.168.0.10:60162          0.0.0.0:* 
                 28748/snmptrapd
udp        0      0 0.0.0.0:162                 0.0.0.0:* 
                 28748/snmptrapd



regards.


yushina

(2010/10/01 20:52), Shoma S Achar wrote:
> Hi,
>
> I am using the snmptrapd application to receive the snmp traps.
> I tried changing the snmptrapd.conf file as mentioned in this link:
> http://net-snmp.sourceforge.net/docs/man/snmptrapd.conf.html
>
> <http://net-snmp.sourceforge.net/docs/man/snmptrapd.conf.html>But, it did
> not work.
> In this conf file, i added:
> snmpTrapdAddr<snmpagent IP>:<dummy port>  ,<snmpagent IP>:162
>
> Could anyone please let me know if this is the right way, or is there any
> other method?
> But even after this change, I was not able to receive traps on the "dummy
> port".
>
> Thanks in advance.
>
> On Fri, Oct 1, 2010 at 3:27 PM, Shoma S Achar<[email protected]>wrote:
>
>> Hi,
>>
>> Can net-snmp can listen for traps on 2 different ports and process traps
>> that it receives on both these ports?
>> Could anyone please let me know if this is possible? And if yes, how would
>> I configure it to behave in this manner?
>>
>> --
>>
>> Shoma
>>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
>
>
> __________ Information from ESET Smart Security, version of virus signature database 5496 (20101001) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
>
> _______________________________________________
> 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
>
>
>
> __________ Information from ESET Smart Security, version of virus signature database 5496 (20101001) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>

--------------------------------------
Learn more about breast cancer - Pink Ribbon Campaign 2010
http://yj.pn/JAy9L7

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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.