snmpd -- > SNMP Agent Daemon which sends the trap
snmptrapd -> SNMP Trap Daemon which recevies the trap
snmptrap -> Application which sends the trap
You need to code to send traps from the agent. Please follow tutorials.
On Thu, Nov 20, 2014 at 11:23 PM, Pushpa Thimmaiah <
pushpa.thimma...@gmail.com> wrote:
> Is there any difference between sending traps through snmpd and snmptrapd
> ? how to make agent to send example traps that are defined by me?
>
> On Thu, Nov 20, 2014 at 6:28 PM, Pranesh Kulkarni <pranes...@gmail.com>
> wrote:
>
>> snmptrap is the command which sends the trap .
>>
>> If your agent wants to send the trap , you need to run the
>> snmpagent(snmpd)
>>
>> On Thu, Nov 20, 2014 at 6:13 PM, Pushpa Thimmaiah <
>> pushpa.thimma...@gmail.com> wrote:
>>
>>> Hi,
>>> Following is the setup:
>>>
>>> On system1: 172.16.1.131, ubuntu
>>> >>>>> stoped snmpd
>>> ps -eaf |grep snmp
>>> user1 28717 3434 0 18:03 pts/5 00:00:00 grep --color=auto snmp
>>> ps -eaf |grep snmpd
>>> user2 28719 3434 0 18:03 pts/5 00:00:00 grep --color=auto snmpd
>>>
>>> >>>>send snmp trap
>>> $ snmptrap -v 2c -c public 172.16.1.122 "" .1.3.6.1.4.1.8072.2.3.1
>>> .1.3.6.1.4.1.8072.2.1.1 i 4455
>>> read_config_store open failure on /var/net-snmp/snmpapp.conf
>>> read_config_store open failure on /var/net-snmp/snmpapp.conf
>>> read_config_store open failure on /var/net-snmp/snmpapp.conf
>>>
>>>
>>> On system2: act as NMS, 172.16.1.122, ubuntu,
>>> >>>> trapreceiver running on same machine (localhost) able to receive
>>> the trap been sent
>>> 2014-11-20 18:09:17 172.16.1.131 [UDP:
>>> [172.16.1.131]:59358->[172.16.1.122]]:
>>> iso.3.6.1.2.1.1.3.0 = Timeticks: (3150010) 8:45:00.10
>>> iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.4.1.8072.2.3.1
>>> iso.3.6.1.4.1.8072.2.1.1 = INTEGER: 4455
>>>
>>>
>>> result: system1, ie172.16.1.131 able to send traps without snmpd
>>>
>>>
>>> On Thu, Nov 20, 2014 at 3:51 PM, Pranesh Kulkarni <pranes...@gmail.com>
>>> wrote:
>>>
>>>>
>>>> please check with
>>>>
>>>> ps -eaf | grep snmpd
>>>>
>>>> The SNMP agent is the one which sends trap.
>>>>
>>>> In case if the agent is not running , the trap receiver may be
>>>> receiving traps from the other agent(other machine) please check the
>>>> ipaddress in the trap PDU.
>>>>
>>>>
>>>>
>>>> On Thu, Nov 20, 2014 at 2:47 PM, Pushpa Thimmaiah <
>>>> pushpa.thimma...@gmail.com> wrote:
>>>>
>>>>> Hello everybody,
>>>>>
>>>>> It seems snmptraps can be sent out without snmpDaemon running
>>>>> background. I have used command 'snmptrap' to send traps without
>>>>> SNMPDaemon
>>>>> running and traps sent out successfully.OS: ubuntu
>>>>> Can anybody let me know why snmpDeamon not necessary while sending
>>>>> traps?
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> 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=157005751&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks,
>>>> Pranesh
>>>>
>>>
>>>
>>
>>
>> --
>> Thanks,
>> Pranesh
>>
>
>
--
Thanks,
Pranesh
------------------------------------------------------------------------------
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=157005751&iu=/4140/ostg.clktrk
_______________________________________________
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