Sending a test SNMP Trap

Sending a test SNMP Trap to test the functioning of the ICOI SNMP Trap adapter is simple.  You use sm_snmp.  The command syntax is:

 

sm_snmp -c HELLOWORLD -d localhost -p 162 trap 1.1.1.1 .1.3.6.1.4.1.2017.5 1 6 0 .1.3.6.1.4.1.2017.5.1 s HELLOGOODBYE


There are of course more options.  You can use sm_snmp -h to see all the options.