LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   snmp trap not working (https://www.linuxquestions.org/questions/linux-server-73/snmp-trap-not-working-4175490865/)

aliyesami 01-10-2014 04:30 PM

snmp trap not working
 
I am on redhat enterprise linux 5 . iam trying to send snmptrap using linux snmp utility as follows but its not working , can anyone suggest whats wrong?
I am also showing the solaris snmp trap command that do work on the solaris box.


snmptrap -v 1 -c fdot 10.100.10.112 1.3.6.1.4.1.791.2.9.2 10.114.176.10 6 4 -s "snmp testing"

on oralce solaris 10 this works(awtrap is a CA utility) :
awtrap -f 10.200.14.7 -h 10.100.10.112 -p 162 -c fdot 1.3.6.1.4.1.791.2.9.2 6 4 1.3.6.1.4.1.791.2.9.2 -s \"$1 \"

thanks

aliyesami 01-10-2014 04:55 PM

ok i played around and the following command worked , i dont know why though :) can someone explain ?

snmptrap -v 2c -c fdot 10.100.10.112 '' 1.3.6.1.4.1.791.2.9.2 1.3.6.1.4.1.791.2.9.2 s "testing"


All times are GMT -5. The time now is 09:32 PM.