and when I use this command :
tail -20 /var/log/messages
I found :
Jul 24 14:09:43 my-pc snmptrapd[5079]: NET-SNMP version 5.3.2.2
as the last line
On Wed, Jul 25, 2012 at 3:09 PM, mohamad hosein jafari <
smhjafar...@gmail.com> wrote:
> Yes I did it and I found this line
> when I type this command : ls -ltr /var/log | tail
>
> -rw-r--r-- 1 root root 25 Jul 24 14:09 snmptraps.log
>
>
>
> On Wed, Jul 25, 2012 at 2:45 PM, Dave Shield
> <d.t.shi...@liverpool.ac.uk>wrote:
>
>> On 25 July 2012 11:04, mohamad hosein jafari <smhjafar...@gmail.com>
>> wrote:
>> > I restart it
>> > and I saw in first window:
>> >
>> > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (97) 0:00:00.97
>> > SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart
>> > SNMPv2-MIB::snmpTrapEnterprise.0 = OID:
>> NET-SNMP-MIB::netSnmpAgentOIDs.10
>>
>> Good - so that's shown that agent -> manual snmptrapd is working
>> properly.
>> The next thing is to look at getting the trap receiver to run as a daemon.
>>
>> Kill off the snmptrapd command that you started earlier (using Ctrl-C
>> should do)
>> and run the command
>>
>> service snmptrapd start
>>
>> (as root). Then immediately afterwards, run the command
>>
>> ls -ltr /var/log | tail
>>
>> You should find that one or more of the files listed there have only just
>> been
>> changed. Have a look at each of these - particularly the end of each
>> file.
>> "tail -20 /var/log/messages" or similar should do the trick.
>>
>>
>> Can you find mention of 'snmptrapd' in any of these files?
>> If so, which?
>>
>> Dave
>>
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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