Re: SNMPv2 traps

Dharm S <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAFyUrtaMeWwFRM=U0uZnQ_dLsMcbRnx3Ksip2qWF=_YhTkRSLQ@mail.gmail.com>
Thank You Pushpa.

I had tried that method. But still I am able to receive traps only if the
snmptrapd and  snmpd run on the same system. I want to receive traps sent
from a remote system.



On Thu, Dec 18, 2014 at 12:15 PM, Pushpa Thimmaiah <
[email protected]> wrote:
>
> Hi Dharm,
>
> Do you have issue with receiving traps or logging them ?
> If issue with logging then
> Try  'authCommunity <community-name>' to log received traps else snmptrapd
> simply drop them.
>
> Add 'authCommunity log public' in your /etc/snmp/snmptrapd.conf and
> restart snmptrapd
> snmptrapd -c /etc/snmp/snmptrapd.conf -Lf traps.txt
>
> If issue with receiving traps then check what is  'agentAddress' directive
> been set to? ( snmpd.conf)
> Is it set to ' agentAddress udp:127.0.0.1:161' ?
>
>
> Thanks,
> Pushpa.T
>
> On Wed, Dec 17, 2014 at 5:21 PM, Dharm S <[email protected]> wrote:
>
>> Hi All,
>>
>> I am sending traps from an embedded platform which has the net-snmp agent
>> running in it.
>>
>> I have the following lines in snmpd.conf
>>
>> rocommunity public 192.168.10.57
>> rocommunity public 192.168.10.53
>>
>> trap2sink  192.168.10.53 public
>>
>> The agent address is 192.168.10.57. I can see the traps being received on
>> wireshark. But I am not able to view them on terminal or log in any file
>> using
>>    snmptrapd -f -Lo (or) snmptrapd -f -Lf traps.txt
>>
>> snmptrapd.conf has only following line
>>     disableAuthorization yes
>>
>> I am able to log the traps if the snmp agent runs in localhost (same
>> system for snmpd and snmptrapd) . But the traps from remote system are not
>> logged.
>>
>> Kindly help me on this.
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> 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
>>
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

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