Re: SNMPTRAP doesn't work

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGZRa_j_i6w3Q7f2UpLJ24imh17G_1vRHd=Mry1ZC2G6mA@mail.gmail.com>
On 26 July 2012 08:44, mohamad hosein jafari <[email protected]> wrote:
> yes I did
> but I didn't see anything in log file again
> what is problem?

I don't know - that's what we need to work out.

I seem to remember you saying that you have two Linux systems available
(one running CentOS, and one running Debian).   Is that correct?

If so, can you please try the following:

    On the trap receiver system, run the following:
          tail -f /var/log/messages

   On the same system (in another window), run the command
          snmptrap -v 1 -c public 192.168.150.227
NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification "" 6 17 ""
\netSnmpExampleInteger i 123456
   (we know this ought to work - this is just to confirm that you're
seeing the traps)
   What do you see reported by the "tail" command?

   Now on the other (Debian?) system, run the same
          snmptrap -v 1 -c public 192.168.150.227
NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification "" 6 17 ""
\netSnmpExampleInteger i 123456
   command.
   What do you see reported by the "tail" command?


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