I am attempting to send an snmptrap to a server we use to send beep notifications. I have tried serveral times with slightly different syntax and received some errors. I was hoping someone could help me correct the syntax. Below are some of the examples I have tried with the error messages:
[EMAIL PROTECTED] scripts]$ snmptrap -v 1 -c public NotificationManager 1.3.6.1.2.1.11.1 6 1 1.3.6.1.2.1.11.1.1.4 s "text message here"
text message here: Missing type/value for variable
[EMAIL PROTECTED] scripts]$ snmptrap -v 1 -c public NotificationManager 1.3.6.1.2.1.11.1 '' 6 1 '' 1.3.6.1.2.1.11.1.1.4 s "text message here"
1.3.6.1.2.1.11.1.1.4: Bad variable type (Type of attribute is Counter32, not OCTET STRING)
[EMAIL PROTECTED] scripts]$ snmptrap -v 1 -c public NotificationManager c 1.3.6.1.2.1.11.1 '' 6 1 '' 1.3.6.1.2.1.11.1.1.4 s "text message here"
unknown host: 1.3.6.1.2.1.11.1
[EMAIL PROTECTED] scripts]$ snmptrap -v 1 -c public NotificationManager 1.3.6.1.2.1.11.1 '' 6 1 '' 1.3.6.1.2.1.11.1.1.4 c "text message here"
1.3.6.1.2.1.11.1.1.4: Bad value notation (text message here)
[EMAIL PROTECTED] scripts]$ snmptrap -v 1 -c public NotificationManager 1.3.6.1.2.1.11.1 6 1 1.3.6.1.2.1.11.1.1.4 s "text message here"
text message here: Missing type/value for variable
Any help would be greatly appreciated….
Thanks,
Frank Harris