LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to generate trap USING SNMPSET (https://www.linuxquestions.org/questions/linux-networking-3/how-to-generate-trap-using-snmpset-869137/)

dashang.trivedi 03-17-2011 06:07 AM

How to generate trap USING SNMPSET
 
How to generate SNMP TRAP using SNMPSET

i am using in shell script

my objective is if my condition is true than trap will be generate...

i am trying with
snmpset -r 0 -t 1 -v 1 -c public 127.0.0.1 MYTEST-MIB::highCpuUsage.0 i `date +%s`

but its not working its give

Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: MYTEST-MIB::highCpuUsage.0

PLEASE PROVIDE THE SOLUTION


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